Skip to content

Commit b7073c1

Browse files
committed
Add executable flag to toggle building the executable
This package is a transient dependency of [haskell-language-server][1]. However, only the library is needed. This flag gives the option for those who do not need the executable to disable it. The flag is enabled by default. [1]: https://hackage.haskell.org/package/haskell-language-server
1 parent 1c36d9c commit b7073c1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

implicit-hie.cabal

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ library
6161

6262
default-language: Haskell2010
6363

64+
flag executable
65+
descritption: Build the gen-hie executable
66+
default: True
67+
6468
executable gen-hie
6569
main-is: Main.hs
6670
other-modules: Paths_implicit_hie
@@ -84,6 +88,9 @@ executable gen-hie
8488
, yaml
8589

8690
default-language: Haskell2010
91+
92+
if !flag(executable)
93+
buildable: False
8794

8895
test-suite implicit-hie-test
8996
type: exitcode-stdio-1.0

0 commit comments

Comments
 (0)