logo       

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

lang.haskell.glasgow.bugs

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

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".

I can't find anything unusual about the hsshellscript package, but here's the
package definition:

Package {
name = "hsshellscript",
auto = False,
import_dirs = ["${DEST_IMPORTS}"],
source_dirs = [],
library_dirs = ["${DEST_LIB}"],
hs_libraries = ["hsshellscript"],
extra_libraries = [],
include_dirs = ["${DEST_IMPORTS}"],
c_includes = ["hsshellscript.h"],
package_deps = ["base", "haskell98", "parsec", "unix"],
extra_ghc_opts = ["-fglasgow-exts"],
extra_cc_opts = [],
extra_ld_opts = []
}

I have no clue what goes wrong, or how to find out. First of all, where does
GHC get the idea that Main is a package? This looks like a GHC bug to me.

I've attached the output of "ghc -v ...", but it doesn't seem to reveal
anything. Any help would be appreciated.

I'm using ghc-6.2.2 on Linux.

Greetings,
V.W.
--
http://www.volker-wysk.de

Attachment: bugrep
Description: Text document

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@xxxxxxxxxxx
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise