On Mon, May 14, 2007 at 08:37:52AM +0100, Simon Peyton-Jones wrote:
> | The main point about the error message is that it says that 'main' is
> | not defined, while it is typechecking 'main' - but I thought it only
> | typechecks things which are defined? So that makes me think that the
> | type is
| The main point about the error message is that it says that 'main' is
| not defined, while it is typechecking 'main' - but I thought it only
| typechecks things which are defined? So that makes me think that the
| type is somehow wrong, it is a red herring. It would be better not to
| say anythin
On Sat, May 12, 2007 at 07:37:57PM -0700, Jeremy Shaw wrote:
> > 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.
actually, it is implicitly
module Main(main) where
gt; to say that you have failed to define 'main' in module 'Main'?
> >
> > Thanks
> >
> > Simon
> >
> > | -Original Message-
> > | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-
> > | [EMAIL PROTECTED] On Behalf Of Frederik
o define 'main' in module 'Main'?
>
> Thanks
>
> Simon
>
> | -Original Message-
> | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-
> | [EMAIL PROTECTED] On Behalf Of Frederik Eaton
> | Sent: 12 May 2007 22:14
> | To: glasgow-haskell
lf Of Frederik Eaton
| Sent: 12 May 2007 22:14
| To: glasgow-haskell-bugs@haskell.org
| Subject: main main main main main
|
| Hello,
|
| I'm suddenly getting the following error when I compile a program:
|
| bayesian-sets.hs:1:0:
| The main function `main' is not defined in module `
> Regardless of whether you can reproduce the error, you can also file
> another bug suggestion that the wording of that message is
> incomprehensible.
OK, well I sent something to the mailing list, I don't really know
what would go in a bug report since I can't reproduce it. Next time I
will reme
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 the
Hello,
No, that is not the case, all imported modules are from packages which
are already compiled and functional.
I found that removing the .o and .hi files and recompiling the source
made it work.
However, should either of these things be necessary? I think users
oughtn't have to memorize and
Hello,
If one of the modules you are importing (for example, Fu.NewLogging),
does *not* contain a line at the top like:
> module Fu.NewLogging where
then I think you will get an error that looks something like that. I
am not sure if this is your problem, but if it is, it is an easy fix
:)
hope
Hello,
I'm suddenly getting the following error when I compile a program:
bayesian-sets.hs:1:0:
The main function `main' is not defined in module `Main'
When checking the type of the main function `main'
I don't know what that means. Perhaps the error could be made more
human-friendly? H
11 matches
Mail list logo