<div dir="ltr">On Sat, Aug 27, 2011 at 15:31, michael rice <span dir="ltr">&lt;<a href="mailto:nowgate@yahoo.com">nowgate@yahoo.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, 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&#39;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                                      <a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a><br>wandering unix systems administrator (available)     (412) 475-9364 vm/sms<br>
<br>
</div>