|
Re: "ghc-6.2.2: unknown package name: Main" when using --make: msg#00035lang.haskell.glasgow.bugs
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> |
|---|---|---|
| Previous by Date: | "ghc-6.2.2: unknown package name: Main" when using --make, Volker Wysk |
|---|---|
| Next by Date: | Re: "ghc-6.2.2: unknown package name: Main" when using --make, Volker Wysk |
| Previous by Thread: | "ghc-6.2.2: unknown package name: Main" when using --make, Volker Wysk |
| Next by Thread: | Re: "ghc-6.2.2: unknown package name: Main" when using --make, Volker Wysk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |