Skip to content

Commit e88e07a

Browse files
authored
Merge pull request #40 from hololeap/master
Add `executable` flag to toggle building the executable
2 parents 1c36d9c + 8c5e504 commit e88e07a

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+
description: 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)