On Sat, Aug 27, 2011 at 16:24, michael rice <[email protected]> wrote:
> I'm not sure how to do that. Please demonstrate.
>
If you just compile it normally you have an unexported binding called "main"
which is effectively (and actually, when compiled with optimization)
discarded. If you do
ghc --make --main-is GameState GameState.hs
then GHC will use GameState.main as the entry point (instead of Main.main)
and build a program instead of a library.
http://www.haskell.org/ghc/docs/latest/html/users_guide/options-phases.html#options-linker
--
brandon s allbery [email protected]
wandering unix systems administrator (available) (412) 475-9364 vm/sms
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe