[Haskell-beginners] Sandbox Confusion

Bob Ippolito bob at redivi.com
Fri Aug 15 18:42:52 UTC 2014


On Fri, Aug 15, 2014 at 6:46 AM, Karolis Velicka <karolis.velicka at gmail.com>
wrote:

> Hi. What you can do is run
>
> cabal exec bash
>
>
$ cabal exec --help
Usage: cabal exec [FLAGS] COMMAND [-- [ARGS...]]

according to the Usage, you should probably do this instead:

$ cabal exec ghc -- -threaded site.hs

It's a common unix convention to have `--` separate flags from arguments,
for example:

$ echo '--not-a-flag' | grep --not-a-flag
grep: unrecognized option `--not-a-flag'

$ echo '--not-a-flag' | grep -- --not-a-flag
--not-a-flag


-bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20140815/45864774/attachment.html>


More information about the Beginners mailing list