summaryrefslogtreecommitdiff
path: root/GF.cabal
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@chalmers.se>2008-05-23 15:16:28 +0000
committerkr.angelov <kr.angelov@chalmers.se>2008-05-23 15:16:28 +0000
commit53bfa43a5820e0ac6cceb01b57776ae01b3b92f1 (patch)
treee29707cb9f68f09d457ec18394183b8e487d43f6 /GF.cabal
parent0b80bf17d97fe5410c4e6697b6325c777dfee5b0 (diff)
allow Ctrl+Break in the shell. Works on Windows too.
Diffstat (limited to 'GF.cabal')
-rw-r--r--GF.cabal9
1 files changed, 9 insertions, 0 deletions
diff --git a/GF.cabal b/GF.cabal
index e94646b08..99b331748 100644
--- a/GF.cabal
+++ b/GF.cabal
@@ -11,6 +11,9 @@ flag readline
Description: Enable Readline in the shell
Default: True
+flag interrupt
+ Description: Enable Ctrl+Break in the shell
+ Default: True
library
build-depends: base,
@@ -174,3 +177,9 @@ executable gf3
other-modules: GF.System.UseReadline
else
other-modules: GF.System.NoReadline
+
+ if flag(interrupt)
+ ghc-options: -DUSE_INTERRUPT
+ other-modules: GF.System.UseSignal
+ else
+ other-modules: GF.System.NoSignal