
14 May
2014
14 May
'14
9:52 a.m.
Hi, On 2014-05-14 at 07:34:44 +0200, Carlo Hamalainen wrote: [...]
The cabal repl command works out a bunch of GHC options. Is there any way to dump these options without actually starting the repl?
Here's a hack I sometimes use to that effect: create a script 'fakeghc.sh' with the following contents (or a similiar program): ,---- | #!/bin/sh | | case "$1" in | --interactive) | echo "$*" | exit | ;; | esac | | exec ghc $* `---- and then invoke cabal like so | cabal repl --with-ghc=./fakeghci.sh HTH, hvr