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
This commit is contained in:
hololeap 2021-09-18 22:05:39 -06:00
parent 1c36d9c077
commit b7073c18f0
No known key found for this signature in database
GPG Key ID: 06B97EDD7A3D1E83

View File

@ -61,6 +61,10 @@ library
default-language: Haskell2010
flag executable
descritption: Build the gen-hie executable
default: True
executable gen-hie
main-is: Main.hs
other-modules: Paths_implicit_hie
@ -84,6 +88,9 @@ executable gen-hie
, yaml
default-language: Haskell2010
if !flag(executable)
buildable: False
test-suite implicit-hie-test
type: exitcode-stdio-1.0