Thanks all.

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.

Michael


From: Daniel Fischer <daniel.is.fischer@googlemail.com>
To: haskell-cafe@haskell.org; michael rice <nowgate@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.
>
> 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.