Skip to content

Commit a19ccaf

Browse files
authored
Some versions of stylish-haskell do need the ghc-lib flag (#3868)
* Some versions of stylish-haskell do need the ghc-lib flag * Set it in the stack config not the cabal config
1 parent fb11328 commit a19ccaf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

cabal.project

+4
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ constraints:
5454
text -simdutf,
5555
ghc-check -ghc-check-use-package-abis,
5656
ghc-lib-parser-ex -auto,
57+
-- This is only present in some versions, and it's on by default since
58+
-- 0.14.5.0, but there are some versions we allow that need this
59+
-- setting
60+
stylish-haskell +ghc-lib,
5761
-- Centos 7 comes with an old gcc version that doesn't know about
5862
-- the flag '-fopen-simd', which blocked the release 2.2.0.0.
5963
-- We want to be able to benefit from the performance optimisations

stack-lts21.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ configure-options:
6565
flags:
6666
haskell-language-server:
6767
pedantic: true
68+
stylish-haskell:
69+
ghc-lib: true
6870
retrie:
6971
BuildExecutable: false
7072

0 commit comments

Comments
 (0)