Haddock fails with "Module defined in multiple files"
|Reported by:||mietek||Owned by:|
|Operating System:||MacOS X||Architecture:||x86_64 (amd64)|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||Differential Revisions:|
Description (last modified by mietek)
Haddock fails to cooperate with OS X clang CPP:
<no location info>: module ‘pkgid-pkgversion:Main’ is defined in multiple files: dist/build/tmp-#####/Stuff
A workaround is to pass --ghc-options=-optP-P to cabal haddock.
This prevents cabal-install from bootstrapping, unless --no-doc is specified.
The original Haddock ticket and the corresponding Cabal issue were both closed as invalid, but there appears to be no GHC ticket to track the underlying cause. http://trac.haskell.org/haddock/ticket/284 https://github.com/haskell/cabal/issues/1740
Change History (6)
comment:2 Changed 14 months ago by carter
- Resolution set to duplicate
- Status changed from new to closed
comment:4 Changed 13 months ago by mietek
- Resolution duplicate deleted
- Status changed from closed to new