Skip to content

Commit

Permalink
Use ghc API directly if >= 9.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jaspervdj committed Mar 17, 2022
1 parent a95e50f commit 196e6bc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 12 deletions.
4 changes: 2 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ resolver: lts-18.18
compiler: ghc-9.0.1

extra-deps:
- 'ghc-lib-parser-9.2.1.20211101'
- 'ghc-lib-parser-ex-9.2.0.1'
- 'ghc-lib-parser-9.2.2.20220307'
- 'ghc-lib-parser-ex-9.2.0.3'

save-hackage-creds: false
nix:
Expand Down
14 changes: 7 additions & 7 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@

packages:
- completed:
hackage: ghc-lib-parser-9.2.1.20211101@sha256:c7f5649391acb4ceec6770acce3b77dea8aad3fd442b2a32a1d0dbaede080c0b,12705
hackage: ghc-lib-parser-9.2.2.20220307@sha256:384755a514a42fe1615862ff6ef5c995a9ed71904360b4b212f9526f80fb214c,12705
pantry-tree:
size: 27578
sha256: 445b7dd1908b8187dfdab87673a68f1ca42e2bcfd7dd68f04a3ad91a2215e3e2
sha256: 1e7884111d2ef9d7132719f9d04a16873a9c479100f2be310e5880805d9787dc
original:
hackage: ghc-lib-parser-9.2.1.20211101
hackage: ghc-lib-parser-9.2.2.20220307
- completed:
hackage: ghc-lib-parser-ex-9.2.0.1@sha256:37444e3274afd4daaa96819bb4e05835524c2e16021a56861d6f8f014584992d,3605
hackage: ghc-lib-parser-ex-9.2.0.3@sha256:a90c3a6aa85f59848d9f8c3928ab7203299a4b560db6f300976d9b1f7da127ee,3655
pantry-tree:
size: 2121
sha256: 8cf2d2a4fa196121c7faef816474038d8a82b8ff8a8480ecf4a5cf256c380c4c
size: 2212
sha256: 940793b79e8c37f8a46f3c5747ecf1e7534ba0d998b4e2da573744f1ac2927d0
original:
hackage: ghc-lib-parser-ex-9.2.0.1
hackage: ghc-lib-parser-ex-9.2.0.3
snapshots:
- completed:
size: 586296
Expand Down
16 changes: 13 additions & 3 deletions stylish-haskell.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ Common depends
directory >= 1.2.3 && < 1.4,
filepath >= 1.1 && < 1.5,
file-embed >= 0.0.10 && < 0.1,
ghc-lib-parser >= 9.2 && < 9.3,
ghc-lib-parser-ex >= 9.2 && < 9.3,
mtl >= 2.0 && < 2.3,
syb >= 0.3 && < 0.8,
text >= 1.2 && < 1.3,
Expand All @@ -46,7 +44,19 @@ Common depends

if impl(ghc < 8.0)
Build-depends:
semigroups >= 0.18 && < 0.20
semigroups >= 0.18 && < 0.20

if impl(ghc >= 9.2.2)
Build-depends:
ghc >= 9.2 && < 9.3,
ghc-boot,
ghc-boot-th
else
Build-depends:
ghc-lib-parser >= 9.2 && < 9.3

Build-depends:
ghc-lib-parser-ex >= 9.2.0.3 && < 9.3

Library
Import: depends
Expand Down

0 comments on commit 196e6bc

Please # to comment.