[Haskell-cafe] Get "cabal repl" to dump ghc options?
Carlo Hamalainen
carlo at carlo-hamalainen.net
Thu May 15 11:01:55 UTC 2014
On 14/05/14 11:52, Herbert Valerio Riedel wrote:
> 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
Thanks, I think that this will be useful for my needs.
--
Carlo Hamalainen
http://carlo-hamalainen.net
More information about the Haskell-Cafe
mailing list