"ghc-6.2.2: unknown package name: Main" when using --make
Lemmih
lemmih at gmail.com
Tue Jan 11 15:45:21 EST 2005
On Tue, 11 Jan 2005 21:19:49 +0100, Volker Wysk <post at volker-wysk.de> 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
More information about the Glasgow-haskell-bugs
mailing list