[Haskell-cafe] Modules and a main function

Daniel Fischer daniel.is.fischer at googlemail.com
Sat Aug 27 22:39:40 CEST 2011

On Saturday 27 August 2011, 22:24:03, michael rice wrote:
> I'm not sure how to do that. Please demonstrate.
> Michael

ghc -O -main-is StateGame --make StateGame

more generally,

ghc -O -main-is Foo.bar --make Foo

if the desired main is function bar in module Foo.

More information about the Haskell-Cafe mailing list