extensions 0.1.0.1 → 0.1.0.2
raw patch · 3 files changed
+20/−4 lines, 3 filesdep ~Cabaldep ~basedep ~containersPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: Cabal, base, containers, filepath, ghc-boot-th, optparse-applicative
API changes (from Hackage documentation)
Files
- CHANGELOG.md +6/−0
- extensions.cabal +4/−3
- src/Extensions/Cabal.hs +10/−1
CHANGELOG.md view
@@ -3,6 +3,12 @@ `extensions` uses [PVP Versioning][1]. The changelog is available [on GitHub][2]. +## 0.1.0.2 — Apr 29, 2024++* Add support for GHC-9.8++* Support `Cabal` `3.12` (only)+ ## 0.1.0.1 — Oct 15, 2023 * Add support for GHC-9.6
extensions.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: extensions-version: 0.1.0.1+version: 0.1.0.2 synopsis: Parse Haskell Language Extensions description: Parse Haskell Language Extensions. See [README.md](https://github.com/kowainik/extensions#extensions) for more details.@@ -21,6 +21,7 @@ GHC == 9.2.4 GHC == 9.4.2 GHC == 9.6.3+ GHC == 9.8.1 flag executable description: Build the extensions executable@@ -92,7 +93,7 @@ -- this causes problems in practice let's -- revisit this decision and come up with -- another approach.- , Cabal ^>= 3.10+ , Cabal ^>= 3.12 , containers ^>= 0.6 , directory ^>= 1.3 , filepath ^>= 1.4@@ -131,7 +132,7 @@ , ghc-boot-th , hedgehog >= 1.0 && < 1.5 , hspec- , hspec-hedgehog ^>= 0.0.1+ , hspec-hedgehog >= 0.0.1 && < 0.2 , text ghc-options: -threaded -rtsopts
src/Extensions/Cabal.hs view
@@ -393,13 +393,22 @@ Cabal.DeepSubsumption -> Nothing Cabal.TypeData -> Nothing #endif+#if __GLASGOW_HASKELL__ >= 908+ Cabal.TypeAbstractions -> Just TypeAbstractions+#else+ Cabal.TypeAbstractions -> Nothing+#endif #if __GLASGOW_HASKELL__ >= 910 -- This branch cannot be satisfied yet but we're including it so- -- we don't forget to enablel RequiredTypeArguments when it+ -- we don't forget to enable RequiredTypeArguments when it -- becomes available. Cabal.RequiredTypeArguments -> Just RequiredTypeArguments+ Cabal.ExtendedLiterals -> Just ExtendedLiterals+ Cabal.ListTuplePuns -> Just ListTuplePuns #else Cabal.RequiredTypeArguments -> Nothing+ Cabal.ExtendedLiterals -> Nothing+ Cabal.ListTuplePuns -> Nothing #endif -- GHC extensions, parsed by both Cabal and GHC, but don't have an Extension constructor Cabal.Safe -> Nothing