ekmett / free

free monads
http://hackage.haskell.org/package/free
Other
161 stars 65 forks source link

Weird haddock error #50

Closed ekmett closed 10 years ago

ekmett commented 10 years ago

Attempting to build the haddocks for the gh-pages branch, but I'm getting something I've never seen before.

Macintosh:free ekmett$ cabal haddock
Running Haddock for free-4.6...
Preprocessing library free-4.6...
Warning: The documentation for the following packages are not installed. No
links will be generated to these packages: bifunctors-4.1.1, comonad-4.0,
contravariant-0.4.4, distributive-0.4, hashable-1.2.1.0, mtl-2.1.2,
nats-0.1.2, profunctors-4.0.2, semigroupoids-4.0, semigroups-0.12.2,
tagged-0.7, text-1.1.0.1, transformers-compat-0.1.1.1,
unordered-containers-0.2.3.3

<no location info>:
    module ‘free-4.6:Main’ is defined in multiple files: dist/build/tmp-92156/src/Control/Applicative/Free.hs
                                                         dist/build/tmp-92156/src/Control/Alternative/Free.hs
                                                         dist/build/tmp-92156/src/Control/Comonad/Cofree.hs
                                                         dist/build/tmp-92156/src/Control/Comonad/Cofree/Class.hs
                                                         dist/build/tmp-92156/src/Control/Comonad/Trans/Cofree.hs
                                                         dist/build/tmp-92156/src/Control/Comonad/Trans/Coiter.hs
                                                         dist/build/tmp-92156/src/Control/Monad/Free.hs
                                                         dist/build/tmp-92156/src/Control/Monad/Free/Church.hs
                                                         dist/build/tmp-92156/src/Control/Monad/Free/Class.hs
                                                         dist/build/tmp-92156/src/Control/Monad/Free/TH.hs
                                                         dist/build/tmp-92156/src/Control/Monad/Trans/Free.hs
                                                         dist/build/tmp-92156/src/Control/Monad/Trans/Free/Church.hs
                                                         dist/build/tmp-92156/src/Control/Monad/Trans/Iter.hs
                                                         dist/build/tmp-92156/src/Control/MonadPlus/Free.hs
fizruk commented 10 years ago

I've got documentation built without any warnings/errors for HEAD:

$ cabal --version
cabal-install version 1.18.0.3
using version 1.18.1.2 of the Cabal library
$ cabal configure && cabal haddock
Resolving dependencies...
Configuring free-4.6...
Running Haddock for free-4.6...
Preprocessing library free-4.6...
Haddock coverage:
 100% (  6 /  6) in 'Control.Monad.Free.TH'
 100% (  4 /  4) in 'Control.Monad.Free.Class'
 100% ( 22 / 22) in 'Control.Monad.Trans.Iter'
 100% (  8 /  8) in 'Control.MonadPlus.Free'
 100% ( 21 / 21) in 'Control.Monad.Trans.Free'
 100% ( 23 / 23) in 'Control.Monad.Trans.Free.Church'
 100% ( 11 / 11) in 'Control.Monad.Free'
 100% (  9 /  9) in 'Control.Monad.Free.Church'
 100% (  2 /  2) in 'Control.Comonad.Cofree.Class'
 100% ( 10 / 10) in 'Control.Comonad.Trans.Cofree'
 100% ( 14 / 14) in 'Control.Comonad.Trans.Coiter'
 100% ( 10 / 10) in 'Control.Comonad.Cofree'
 100% (  5 /  5) in 'Control.Alternative.Free'
 100% (  7 /  7) in 'Control.Applicative.Free'
Documentation created: dist/doc/html/free/index.html
ekmett commented 10 years ago

Strange. I'm still getting the problem. I've tried to reinstall haddock but the package has bitrotted to where it won't build on my mac on 7.8.1.

fizruk commented 10 years ago

Just in case it matters, here are versions of Mac OS X, GHC, Cabal and haddock I use:

$ sw_vers -productVersion
10.9.2
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
$ cabal --version
cabal-install version 1.18.0.3
using version 1.18.1.2 of the Cabal library
$ haddock --version
Haddock version 2.13.2, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
ekmett commented 10 years ago

Here's my config:

Macintosh:linear ekmett$ sw_vers -productVersion
10.9
Macintosh:linear ekmett$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.0.20140228
Macintosh:linear ekmett$ cabal --version
cabal-install version 1.18.0.3
using version 1.18.1.3 of the Cabal library 
Macintosh:linear ekmett$ haddock --version
Haddock version 2.14.0, (c) Simon Marlow 2006
Ported to use the GHC API by David Waern 2006-2008
ekmett commented 10 years ago

I had no problem producing documentation on 7.6.3 before switching to 7.8.1rc2.

ekmett commented 10 years ago

This appears to be a general problem on 7.8.1rc2 with haddock