mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 16:42:51 -06:00
readline configuration for Cabal
This commit is contained in:
15
GF.cabal
15
GF.cabal
@@ -7,6 +7,11 @@ license-file: LICENSE
|
|||||||
synopsis: Grammatical Framework
|
synopsis: Grammatical Framework
|
||||||
|
|
||||||
|
|
||||||
|
flag readline
|
||||||
|
Description: Enable Readline in the shell
|
||||||
|
Default: True
|
||||||
|
|
||||||
|
|
||||||
library
|
library
|
||||||
build-depends: base,
|
build-depends: base,
|
||||||
array,
|
array,
|
||||||
@@ -159,7 +164,13 @@ executable gf3
|
|||||||
GF.Compile.GetGrammar
|
GF.Compile.GetGrammar
|
||||||
GF.Compile
|
GF.Compile
|
||||||
GF.Command.Importing
|
GF.Command.Importing
|
||||||
GFC
|
|
||||||
GF.System.NoReadline
|
|
||||||
GF.System.Readline
|
GF.System.Readline
|
||||||
|
GFC
|
||||||
GFI
|
GFI
|
||||||
|
|
||||||
|
if flag(readline)
|
||||||
|
build-depends: readline
|
||||||
|
ghc-options: -DUSE_READLINE
|
||||||
|
other-modules: GF.System.UseReadline
|
||||||
|
else
|
||||||
|
other-modules: GF.System.NoReadline
|
||||||
|
|||||||
Reference in New Issue
Block a user