Ticket #284 (closed defect: invalid)
Haddock fails with "Module defined in multiple files"
|Reported by:||jhenahan||Owned by:||Fūzetsu|
I've been mucking around with 7.8 RC2, and I've been hitting some issues of the form
<no location info>: module ‘pkgid-pkgversion:Main’ is defined in multiple files: dist/build/tmp-#####/Stuff
I asked about this on IRC, and Brandon Allbery (geekosaur) suggested
18:38 <geekosaur>| I suspect there's a different Main for different platforms with some trickery to make the right one be used; haddock doesnt handle that kind of thing very well, IIRC 18:40 <geekosaur>| that, or you somehow have two different builds of the same version of Cabal, but then why does it have a Main module since it's a library. unless it's actually a test program and haddock probably shouldn't even be looking at it... that would be a bug to report, I think 18:40 <geekosaur>| not really enough information to say
This has been causing some builds to fail for me when documentation generation fails. Some libraries generate documentation correctly, but a number of (for instance) cabal-install dependencies fail to.
CPU: 8-core 64-bit sandybridge OS X: 10.9.2-x86_64 Xcode: 5.0.2 CLT: 220.127.116.11.1.1382131676 Clang: 5.0 build 500 GHC: 18.104.22.16840228 Haddock: 2.14.0
Libraries known to fail building documentation with this error:
Cabal 1.19.2 (github) parsec-3.1.5 (hackage) network-22.214.171.124 (hackage) zlib-0.5.4.1 (hackage)
random-126.96.36.199 (hackage) fails with
System/Random.hs:2:2: parse error on input ‘#’
but I'll file a separate issue if this is not already known.