logo       

Re: "ghc-6.2.2: unknown package name: Main" when using --make: msg#00035

lang.haskell.glasgow.bugs

Subject: Re: "ghc-6.2.2: unknown package name: Main" when using --make

On Tue, 11 Jan 2005 21:19:49 +0100, Volker Wysk <post@xxxxxxxxxxxxxx> wrote:
> Hello
>
> I'm trying to
>
> ghc --make -package hsshellscript Main.hs
>
> and get this:
>
> Chasing modules from: Main.hs
> Compiling Main ( Main.hs, Main.o )
> Linking ...
> ghc-6.2.2: unknown package name: Main
>
> The program is this:
>
> import HsShellScript
>
> main = putStrLn "hello"
>
> The error only occurs with "-package hsshellscript", which is a library of
> mine, in conjunction with "--make".

>From the GHC users guide:
"To compile a module which is to be part of a new package, use the
-package-name option:

-package-name foo

This option is added to the command line when compiling a module
that is destined to be part of package foo. If this flag is omitted
then the default package Main is assumed."
It sounds like you forgot that flag when you compiled hsshellscript.

--
Friendly,
Lemmih


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

News | FAQ | advertise