On Monday 31 January 2011 00:27:41, michael rice wrote:
> And here's the same with GHC. It never gets to linking and creating an
> executable the way the GLFW sample program does.
>
> Michael
>
> ===============
>
> [michael@localhost ~]$ cd ./SOE/SOE/src
> [michael@localhost src]$ ghc --make SimpleGraphics.lhs
> [2 of 2] Compiling SimpleGraphics   ( SimpleGraphics.lhs,
> SimpleGraphics.o ) [michael@localhost src]$

The module name is not Main, so to get an executable, you have to tell ghc 
what the Main module is.
Assuming SimpleGraphics.lhs contains a main function,

$ ghc --make SimpleGraphics -main-is SimpleGraphics

should do it.

Cheers,
Daniel



_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to