logo       

RE: Package Main: msg#00028

lang.haskell.glasgow.bugs

Subject: RE: Package Main


> I'm running into a strange problem when I build the X11
> library using current
> ghc (built from repository yesterday using gcc 3.2). The
> error message I get
> is:
>
> ghc-6.1: unknown package name: Main
>
> The puzzling bit here is that I am compiling a part of a
> library using -c, I
> don't mention a package called Main and package.conf doesn't
> mention the word
> Main. So why does the error message mention Main?

'Main' is the name of the default package. That is, when you don't give
a -package-name flag, the module being compiled is assumed to belong to
package 'Main'. The 'Main' package usually contains the 'Main' module.

I can't tell exactly what's gone wrong, but perhaps you managed to
compile a module without a -package-name flag somewhere?

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise