Skip to content

Commit 196e6bc

Browse files
committed
Use ghc API directly if >= 9.2.2
1 parent a95e50f commit 196e6bc

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

stack.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ resolver: lts-18.18
22
compiler: ghc-9.0.1
33

44
extra-deps:
5-
- 'ghc-lib-parser-9.2.1.20211101'
6-
- 'ghc-lib-parser-ex-9.2.0.1'
5+
- 'ghc-lib-parser-9.2.2.20220307'
6+
- 'ghc-lib-parser-ex-9.2.0.3'
77

88
save-hackage-creds: false
99
nix:

stack.yaml.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55

66
packages:
77
- completed:
8-
hackage: ghc-lib-parser-9.2.1.20211101@sha256:c7f5649391acb4ceec6770acce3b77dea8aad3fd442b2a32a1d0dbaede080c0b,12705
8+
hackage: ghc-lib-parser-9.2.2.20220307@sha256:384755a514a42fe1615862ff6ef5c995a9ed71904360b4b212f9526f80fb214c,12705
99
pantry-tree:
1010
size: 27578
11-
sha256: 445b7dd1908b8187dfdab87673a68f1ca42e2bcfd7dd68f04a3ad91a2215e3e2
11+
sha256: 1e7884111d2ef9d7132719f9d04a16873a9c479100f2be310e5880805d9787dc
1212
original:
13-
hackage: ghc-lib-parser-9.2.1.20211101
13+
hackage: ghc-lib-parser-9.2.2.20220307
1414
- completed:
15-
hackage: ghc-lib-parser-ex-9.2.0.1@sha256:37444e3274afd4daaa96819bb4e05835524c2e16021a56861d6f8f014584992d,3605
15+
hackage: ghc-lib-parser-ex-9.2.0.3@sha256:a90c3a6aa85f59848d9f8c3928ab7203299a4b560db6f300976d9b1f7da127ee,3655
1616
pantry-tree:
17-
size: 2121
18-
sha256: 8cf2d2a4fa196121c7faef816474038d8a82b8ff8a8480ecf4a5cf256c380c4c
17+
size: 2212
18+
sha256: 940793b79e8c37f8a46f3c5747ecf1e7534ba0d998b4e2da573744f1ac2927d0
1919
original:
20-
hackage: ghc-lib-parser-ex-9.2.0.1
20+
hackage: ghc-lib-parser-ex-9.2.0.3
2121
snapshots:
2222
- completed:
2323
size: 586296

stylish-haskell.cabal

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ Common depends
3636
directory >= 1.2.3 && < 1.4,
3737
filepath >= 1.1 && < 1.5,
3838
file-embed >= 0.0.10 && < 0.1,
39-
ghc-lib-parser >= 9.2 && < 9.3,
40-
ghc-lib-parser-ex >= 9.2 && < 9.3,
4139
mtl >= 2.0 && < 2.3,
4240
syb >= 0.3 && < 0.8,
4341
text >= 1.2 && < 1.3,
@@ -46,7 +44,19 @@ Common depends
4644

4745
if impl(ghc < 8.0)
4846
Build-depends:
49-
semigroups >= 0.18 && < 0.20
47+
semigroups >= 0.18 && < 0.20
48+
49+
if impl(ghc >= 9.2.2)
50+
Build-depends:
51+
ghc >= 9.2 && < 9.3,
52+
ghc-boot,
53+
ghc-boot-th
54+
else
55+
Build-depends:
56+
ghc-lib-parser >= 9.2 && < 9.3
57+
58+
Build-depends:
59+
ghc-lib-parser-ex >= 9.2.0.3 && < 9.3
5060

5161
Library
5262
Import: depends

0 commit comments

Comments
 (0)