[Haskell-cafe] Cabal: defaultMainNoRead and source file location

Mauricio briqueabraque at yahoo.com
Mon Dec 8 11:49:22 EST 2008


Hi,

I've just seen this from Distribution.ModuleName (ghc 6.10):

toFilePath $ ( simple "A.B.C" )

to which ghci answers: "A.B.C".

Shouldn't it say  "A/B/C"? The reason why I'm  asking is that I've
just  created  a  Setup.hs  with 'defaultMainNoRead',  and  'Setup
build' complains  it can't find  A.B.C. When I copy  (move doesn't
work)  C.hs from <src_dir>/A/B  to <src_dir>/A.B.C.hs,  it doesn't
complain, although it fails to generate my library saying:

[1 of 1] Compiling A.B.C ( src/A/B/C.hs, dist/build/A/B/C.o)
/usr/bin/ar: creating dist/build/libHSabc-0.a
/usr/bin/ar: dist/build/A.B.C.o: No such file or directory

Thanks for your tips,
Maurício



More information about the Haskell-Cafe mailing list