Skip to content

Commit

Permalink
Bump Stackage LTS version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pniedzielski committed Mar 20, 2024
1 parent ff04a09 commit bd44a8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions rdf4h.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
13 changes: 1 addition & 12 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit bd44a8c

Please sign in to comment.