<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Thanks all.</span></div><div><span><br></span></div><div><span>I was trying to use --main-is. I even man-ed ghc and thought I saw a double dash there.</span></div><div><span>As they say, believing is seeing.</span></div><div><span><br></span></div><div>Michael</div><div><br></div><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><font size="2" face="Arial"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Daniel Fischer &lt;daniel.is.fischer@googlemail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> haskell-cafe@haskell.org; michael rice &lt;nowgate@yahoo.com&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Saturday, August 27, 2011 4:39 PM<br><b><span
 style="font-weight: bold;">Subject:</span></b> Re: [Haskell-cafe] Modules and a main function<br></font><br>On Saturday 27 August 2011, 22:24:03, michael rice wrote:<br>&gt; I'm not sure how to do that. Please demonstrate.<br>&gt; <br>&gt; Michael<br><br>ghc -O -main-is StateGame --make StateGame<br><br>more generally,<br><br>ghc -O -main-is Foo.bar --make Foo<br><br>if the desired main is function bar in module Foo.<br><br><br></div></div></div></body></html>