[Haskell-cafe] Modules and a main function
nowgate at yahoo.com
Sat Aug 27 22:57:10 CEST 2011
I was trying to use --main-is. I even man-ed ghc and thought I saw a double dash there.
As they say, believing is seeing.
From: Daniel Fischer <daniel.is.fischer at googlemail.com>
To: haskell-cafe at haskell.org; michael rice <nowgate at yahoo.com>
Sent: Saturday, August 27, 2011 4:39 PM
Subject: Re: [Haskell-cafe] Modules and a main function
On Saturday 27 August 2011, 22:24:03, michael rice wrote:
> I'm not sure how to do that. Please demonstrate.
ghc -O -main-is StateGame --make StateGame
ghc -O -main-is Foo.bar --make Foo
if the desired main is function bar in module Foo.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe