<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>I'm not sure how to do that. Please demonstrate.</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> Brandon Allbery &lt;allbery.b@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> michael rice &lt;nowgate@yahoo.com&gt;<br><b><span style="font-weight: bold;">Cc:</span></b> "haskell-cafe@haskell.org" &lt;haskell-cafe@haskell.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Saturday, August 27, 2011 3:53 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [Haskell-cafe] Modules and a main
 function<br></font><br><div id="yiv1992391067"><div dir="ltr">On Sat, Aug 27, 2011 at 15:31, michael rice <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:nowgate@yahoo.com" target="_blank" href="mailto:nowgate@yahoo.com">nowgate@yahoo.com</a>&gt;</span> wrote:<br><div class="yiv1992391067gmail_quote"><blockquote class="yiv1992391067gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "><div><div><font face="'times new roman', 'new york', times, serif">W/r/t the code below, would somebody please explain the sense of having a main function in a module that is not named Main.hs?</font></div>
</div></div></div></blockquote><div><br></div><div>It's embedded test code; you can build a test program for the StateGame monad by using the --main-is parameter to GHC, or leave that off and get a library.</div></div>
<div><br></div>-- <br>brandon s allbery &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a rel="nofollow" ymailto="mailto:allbery.b@gmail.com" target="_blank" href="mailto:allbery.b@gmail.com">allbery.b@gmail.com</a><br>wandering unix systems administrator (available) &nbsp; &nbsp; (412) 475-9364 vm/sms<br>
<br>
</div>
</div><br><br></div></div></div></body></html>