[Haskell-cafe] Get "cabal repl" to dump ghc options?
Herbert Valerio Riedel
hvr at gnu.org
Wed May 14 09:52:03 UTC 2014
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
More information about the Haskell-Cafe
mailing list