command line options using ghc -e

26 Dec
2010
26 Dec
'10
2:22 p.m.
Hi, for example : ghc -e main foo.hs these should be treated as args for argv I'm wondering if there is a magic option to indicate that everything after this option is an arg option. Thanks Brian P.S. yes I know about :main args in ghci.

26 Dec
26 Dec
2:35 p.m.
On Sun, 26 Dec 2010, briand@aracnet.com wrote:
for example :
ghc -e main foo.hs these should be treated as args for argv
I'm wondering if there is a magic option to indicate that everything after this option is an arg option.
Use 'runghc' or 'runhaskell' instead? This is the way Cabal starts its Setup programs.
5261
Age (days ago)
5261
Last active (days ago)
1 comments
2 participants
participants (2)
-
briand@aracnet.com
-
Henning Thielemann