[Haskell-cafe] Code from Haskell School of Expression hanging.
Daniel Fischer
daniel.is.fischer at googlemail.com
Mon Jan 31 00:48:09 CET 2011
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 at localhost ~]$ cd ./SOE/SOE/src
> [michael at localhost src]$ ghc --make SimpleGraphics.lhs
> [2 of 2] Compiling SimpleGraphics ( SimpleGraphics.lhs,
> SimpleGraphics.o ) [michael at 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
More information about the Haskell-Cafe
mailing list