On Sat, 3 Mar 2012 21:12:26 +0100 David Waern <[email protected]> wrote:
> 2012/3/3 Sergei Trofimovich <[email protected]>: > > > 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
module Kruskal where
{- |
'gameLeastScore' can be written in terms of a matrix power.
For n pips we need a n² à n² matrix.
Using symmetries, we reduce it to a square matrix with size n·(n+1)/2.
/ p[n+1,(n+1,n+1)] \ / p[n,(n+0,n+0)] \
| p[n+1,(n+1,n+2)] | | p[n,(n+0,n+1)] |
| p[n+1,(n+1,n+3)] | | p[n,(n+0,n+2)] |
| ... | | ... |
| p[n+1,(n+1,n+6)] | = M/6 · | p[n,(n+0,n+5)] |
| p[n+1,(n+2,n+2)] | | p[n,(n+1,n+1)] |
| ... | | ... |
| p[n+1,(n+2,n+6)] | | p[n,(n+1,n+5)] |
| ... | | ... |
\ p[n+1,(n+6,n+6)] / \ p[n,(n+5,n+5)] /
M[(n+1,(x,y)),(n,(x,y))] = 6
M[(n+1,(min y (n+d), max y (n+d))), (n,(n,y))] = 1
M[(n+1,(x1,y1)),(n,(x0,y0))] = 0
-}
foo = foo
signature.asc
Description: PGP signature
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
