[Haskell-cafe] ANNOUNCE: Haddock 2.10.0

Sergei Trofimovich slyich at gmail.com
Sun Mar 4 10:41:10 CET 2012


On Sat, 3 Mar 2012 21:12:26 +0100
David Waern <david.waern at gmail.com> wrote:

> 2012/3/3 Sergei Trofimovich <slyich at gmail.com>:
> 
> > 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Kruskal.hs
Type: text/x-haskell
Size: 820 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120304/ff322b2b/attachment.hs>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120304/ff322b2b/attachment.pgp>


More information about the Haskell-Cafe mailing list