Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .weeder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
- ghc-boot-th
- ghc-boot
- bytestring
- ghc-lib-parser
- section:
- name: test:ghc-lib-parser-ex-test
- message:
- name: Redundant build-depends entry
- depends:
- ghc
- ghc-boot-th
- ghc-lib-parser
23 changes: 11 additions & 12 deletions ghc-lib-parser-ex.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ source-repository head
type: git
location: https://github.com/shayne-fletcher/ghc-lib-parser-ex

flag ghc-lib
flag no-ghc-lib
default: False
manual: True
description: Force dependency on ghc-lib-parser even if GHC API in the ghc package is supported
description: Force dependency on native ghc-libs

library
exposed-modules:
Expand All @@ -50,15 +50,14 @@ library
uniplate >= 1.5,
bytestring >= 0.10.8.2,
containers >= 0.5.8.1
-- Unless explicitly told to link ghc-lib-parser, assume ghc native.
if !flag(ghc-lib)
build-depends:
ghc,
ghc-boot-th,
ghc-boot
if flag(no-ghc-lib)
build-depends:
ghc,
ghc-boot-th,
ghc-boot
else
build-depends:
ghc-lib-parser
build-depends:
ghc-lib-parser
include-dirs:
cbits
install-includes:
Expand All @@ -84,9 +83,9 @@ test-suite ghc-lib-parser-ex-test
, filepath >= 1.4.2
, extra >=1.6
, ghc-lib-parser-ex
if !flag(ghc-lib) && impl(ghc >= 8.10.0) && impl(ghc < 8.11.0)
if flag(no-ghc-lib)
build-depends:
ghc == 8.10.*,
ghc,
ghc-boot-th
else
build-depends:
Expand Down
2 changes: 1 addition & 1 deletion stack-0.20200102.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ghc-options:
"$locals": -Wall -Wno-name-shadowing
flags:
ghc-lib-parser-ex:
ghc-lib: true
no-ghc-lib: false

# Packages MUST go at the end, since we append to it during execution
# of CI.hs.
Expand Down
2 changes: 1 addition & 1 deletion stack-8.8.1.20191204.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ghc-options:
"$locals": -Wall -Wno-name-shadowing
flags:
ghc-lib-parser-ex:
ghc-lib: true
no-ghc-lib: false

# Packages MUST go at the end, since we append to it during execution
# of CI.hs.
Expand Down
2 changes: 1 addition & 1 deletion stack-808-808-ghc-lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ghc-options:
"$locals": -Wall -Wno-name-shadowing
flags:
ghc-lib-parser-ex:
ghc-lib: true
no-ghc-lib: false

# Packages MUST go at the end, since we append to it during execution
# of CI.hs.
Expand Down
2 changes: 1 addition & 1 deletion stack-808-808-no-ghc-lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ghc-options:
"$locals": -Wall -Wno-name-shadowing
flags:
ghc-lib-parser-ex:
ghc-lib: false
no-ghc-lib: true

# Packages MUST go at the end, since we append to it during execution
# of CI.hs.
Expand Down
2 changes: 1 addition & 1 deletion stack-810-808-ghc-lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ghc-options:
"$locals": -Wall -Wno-name-shadowing
flags:
ghc-lib-parser-ex:
ghc-lib: true
no-ghc-lib: false

# Packages MUST go at the end, since we append to it during execution
# of CI.hs.
Expand Down
2 changes: 1 addition & 1 deletion stack-810-808-no-ghc-lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ghc-options:
"$locals": -Wall -Wno-name-shadowing
flags:
ghc-lib-parser-ex:
ghc-lib: true
no-ghc-lib: true

# Packages MUST go at the end, since we append to it during execution
# of CI.hs.
Expand Down
2 changes: 1 addition & 1 deletion stack-da-8.8.1.20200122.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ghc-options:
"$locals": -Wall -Wno-name-shadowing
flags:
ghc-lib-parser-ex:
ghc-lib: true
no-ghc-lib: false

# Packages MUST go at the end, since we append to it during execution
# of CI.hs.
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ghc-options:
"$locals": -ddump-to-file -ddump-hi -Wall -Wno-name-shadowing
flags:
ghc-lib-parser-ex:
ghc-lib: true
no-ghc-lib: false

# Packages MUST go at the end, since we append to it during execution
# of CI.hs.
Expand Down