xdg-desktop-entry 0.1.1.2 → 0.1.1.3
raw patch · 3 files changed
+12/−6 lines, 3 filesdep ~iniPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: ini
API changes (from Hackage documentation)
Files
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Revision history for xdg-desktop-entry +## 0.1.1.3 -- 2026-02-09++* Relax `ini` upper bound to support 0.5.x (fixes Stackage compatibility)+* Fix partial `head` usage for GHC 9.12 compatibility+* Tested with GHC 9.8.4, 9.10.3, 9.12.3+ ## 0.1.0.0 -- YYYY-mm-dd * First version. Released on an unsuspecting world.
src/System/Environment/XDG/DesktopEntry.hs view
@@ -118,9 +118,9 @@ deLocalisedAtt langs de att = let localeMatches = mapMaybe (\l -> lookup (att ++ "[" ++ l ++ "]") (deAttributes de)) langs- in if null localeMatches- then lookup att $ deAttributes de- else Just $ head localeMatches+ in case localeMatches of+ [] -> lookup att $ deAttributes de+ (x:_) -> Just x -- | Return the proper comment of the desktop entry, depending on the list of -- preferred languages.
xdg-desktop-entry.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: xdg-desktop-entry-version: 0.1.1.2+version: 0.1.1.3 synopsis: Parse files conforming to the xdg desktop entry spec description: Parse files conforming to the xdg desktop entry spec. bug-reports: https://github.com/taffybar/xdg-desktop-entry/issues@@ -12,7 +12,7 @@ -- copyright: category: System extra-doc-files: CHANGELOG.md-tested-with: GHC == 8.8.4 || == 8.10.7 || == 9.0.2 || == 9.2.8 || == 9.4.8 || == 9.6.4 || == 9.8.1+tested-with: GHC == 8.8.4 || == 8.10.7 || == 9.0.2 || == 9.2.8 || == 9.4.8 || == 9.6.4 || == 9.8.4 || == 9.10.3 || == 9.12.3 source-repository head type: git@@ -24,7 +24,7 @@ directory >= 1.3.6 && < 1.4, either >= 5.0.1.1 && < 5.1, filepath >= 1.4.2 && < 1.6,- ini >= 0.4.1 && < 0.4.3,+ ini >= 0.4.1 && < 0.6, multimap >= 1.2.1 && < 1.3, safe >= 0.3.19 && < 0.4, text >= 1.2.4 && < 2.2,