[Haskell-beginners] "module Main" from hitchhikers guide cd fit example

Johann Bach johann.bach1127 at gmail.com
Wed Jul 28 04:55:25 EDT 2010


On Wed, Jul 28, 2010 at 1:42 AM,  <skip at pobox.com> wrote:
> I'm trying to work my way through the hitchhikers guide, knowing nothing
> about Haskell (my day-to-day programming is in Python with a sprinkling of
> C).  I've installed a binary distribution of Haskell Platform on my Mac.
> GHCi reports version 6.12.3.  I'm currently in "3 Chapter 2: Parsing the
> input".  I'm stuck on the module Main definition.  In hello.hs it works as
> expected:
>

The "module Main were" has to be the first line in the file.


More information about the Beginners mailing list