Package Main
Simon Marlow
simonmar at microsoft.com
Thu Jun 5 06:45:43 EDT 2003
> 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
More information about the Glasgow-haskell-bugs
mailing list