
On Sat, 3 Mar 2012 21:12:26 +0100
David Waern
2012/3/3 Sergei Trofimovich
: It seems to fail to generate buildwrapper documentation. The minimal example:
-- Base.hs: module Base where
-- | component in cabal file data CabalComponent = CCLibrary -- ^ library { cc_buildable :: Bool -- ^ is the library buildable }
You can't stick a doc comment between a constructor and its arguments. Try putting the comment after the record closing bracket instead (or tell the author of the code).
Thanks! Fixed upstream. Let me bother you with another example (looks like a regression this time). Example comes from probability-0.2.3.1 package (selfcontained example attached). Haddock seems to have stopped liking utf-8 special chars in comments like: n² × n² n·(n+1)/2 $ haddock-2.10.0 -v3 Kruskal.hs Creating interfaces... Haddock coverage: Checking module Kruskal... Creating interface... haddock: internal error: lexical error $ haddock-2.9.2 -v3 Kruskal.hs haddock -v3 Kruskal.hs Creating interfaces... Checking module Kruskal... Creating interface... haddock coverage for Kruskal.hs: 0/1 0% Attaching instances... Building cross-linking environment... Renaming interfaces... -- Sergei