[Haskell-beginners] Weird compilation error while doing Euler problems?

Brandon S. Allbery KF8NH allbery at ece.cmu.edu
Mon Oct 20 23:46:50 EDT 2008

On 2008 Oct 20, at 23:36, Ian Duncan wrote:
> 'm trying to compile my file that has my Euler problems in it to  
> output the solution to problem four, but I'm getting a compile  
> error. Here's my .hs file:
> -------------------------
> module Euler1 where

If you're not using the standard module Main, you need to tell ghc  
which module you put your main function in:

     ghc --main-is Euler1 ...

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university    KF8NH

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20081020/d5ea5eb7/attachment.htm

More information about the Beginners mailing list