[Haskell-cafe] Cabal Conditional For Detecting GHCi

aditya siram aditya.siram at gmail.com
Thu Feb 9 03:40:26 UTC 2017


Hi all,
I was wondering if Cabal has a predicate which allows me to only enable
options when running GHCi. The use-case is I have a set of `ghc-options`
that I do *not* want enabled when I run `cabal repl` or `stack repl`.
Ideally I'm looking for something along the lines of:

if !repl
  ghc-options: ...

-deech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170208/18318e73/attachment.html>


More information about the Haskell-Cafe mailing list