From bd44a8cbd7dc72878894b2e303f1450059da1351 Mon Sep 17 00:00:00 2001 From: "Patrick M. Niedzielski" Date: Wed, 20 Mar 2024 05:06:49 +0000 Subject: [PATCH] Bump Stackage LTS version Template Haskell 2.18.0 introduces the ability to add Haddock documentation to declarations that are generated within the `Q` monad. We tried adding this as an `extra-dep` within the `stack.yaml` file, but because the Stackage LTS version is so old (over three years!), and because several of our dependency packages specify incorrect and unnecessary upper bounds on the Template Haskell version they work with, doing so would involve pinning many more dependencies than we already do. This patch takes the route instead of bumping the Stackage LTS version to the minimum version that includes Template Haskell 2.18. --- README.md | 2 +- rdf4h.cabal | 4 ++-- stack.yaml | 13 +------------ 3 files changed, 4 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 4187148..8affe44 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ For details see the GitHub project page: http://robstewart57.github.io/rdf4h/ -Supports GHC versions from 8.0.2 (stackage lts-9) to 8.8.3 (stackage lts-16.0). +Supports GHC versions from 9.2.5 (stackage lts-20.11). ### Development with Nix and direnv diff --git a/rdf4h.cabal b/rdf4h.cabal index 51851c2..f61183a 100644 --- a/rdf4h.cabal +++ b/rdf4h.cabal @@ -21,7 +21,7 @@ cabal-version: >= 1.10 build-type: Simple category: RDF stability: stable -tested-with: GHC==8.0.2, GHC==8.2.2, GHC==8.4.3, GHC==8.6.5, GHC==8.8.3 +tested-with: GHC==9.2.5 extra-tmp-files: test extra-source-files: examples/ParseURLs.hs , examples/ESWC.hs @@ -97,7 +97,7 @@ library , selective , html-entities , xeno - , template-haskell + , template-haskell >= 2.18.0 other-modules: Text.RDF.RDF4H.XmlParser.Xmlbf , Text.RDF.RDF4H.XmlParser.Xeno if impl(ghc < 7.6) diff --git a/stack.yaml b/stack.yaml index cd37b64..21378ed 100644 --- a/stack.yaml +++ b/stack.yaml @@ -1,18 +1,7 @@ -resolver: lts-16.6 +resolver: lts-20.11 packages: - '.' extra-deps: -- algebraic-graphs-0.5 -- unordered-containers-0.2.10.0 -- selective-0.3 -- html-entities-1.1.4.3 -- mmorph-1.1.3 -- exceptions-0.10.4 -- semigroups-0.18.3 -- xeno-0.3.5.2 -- Cabal-3.2.0.0@sha256:d0d7a1f405f25d0000f5ddef684838bc264842304fd4e7f80ca92b997b710874,27320 -- parsec-3.1.14.0 -- text-1.2.4.0 # for weeder tool # https://github.com/ndmitchell/weeder