[Haskell-cafe] Strange Haddock output

Sean Leather leather at cs.uu.nl
Tue Feb 9 11:40:47 EST 2010

I was browsing Hackage pointlessly and came across what appears to be
strange Haddock formatting here:


The following source

-- | Polytypic 'Prelude.Functor' class for functor representations
class Functor (f :: * -> *) where
  fmap :: Fix f                          -- ^ For desambiguation
purposes, the type of the functor must be passed as an explicit
paramaeter to 'fmap'
       -> (x -> y) -> Rep f x -> Rep f y -- ^ The mapping over representations

produces the following view from the browser

class Functor f where
 Polytypic Prelude.Functor class for functor representations
     => Fix f
     -> x -> y
     -> Rep f x    The mapping over representations
     -> Rep f y

with the Haddock 2.6.0 on Hackage. There seems to be an extraneous =>
in the signature of fmap, and the comment on Fix f does not show up.


More information about the Haskell-Cafe mailing list