main main main main main

Jeremy Shaw jeremy at n-heptane.com
Sat May 12 22:37:57 EDT 2007


At Sun, 13 May 2007 02:49:13 +0100,
Frederik Eaton wrote:
> 
> Hello,

> However, should either of these things be necessary? 

no.

> I think users oughtn't have to memorize and execute a list of
> haphazard tricks, for instance like reading the modules they import
> and visually checking that they start with 'module'

Currently, if a module does not have an explicit

> module _______ where

then, implicity, it starts with:

> module Main where

I, for one, would not mind if the 'module Main where' clause was
mandatory; I am not sure why or when it was made optional -- perhaps
that can be changed.

> or removing output files which shouldn't be considered part of the
> compiler's input in the first place, to get valid code to compile.

If you can reproduce the situation, definitely file a bug report at:

http://haskell.org/ghc/reportabug

Regardless of whether you can reproduce the error, you can also file
another bug suggestion that the wording of that message is
incomprehensible.

Fixing these types of bugs, and improving the error messages are both
considered important.

j.


_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs at haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs



More information about the Glasgow-haskell-bugs mailing list