[Haskell-cafe] Re: Strange Haddock output

David Waern david.waern at gmail.com
Tue Feb 9 14:17:58 EST 2010


2010/2/9 Sean Leather <leather at cs.uu.nl>:
> I was browsing Hackage pointlessly and came across what appears to be
> strange Haddock formatting here:
>
> http://hackage.haskell.org/packages/archive/pointless-haskell/0.0.3/doc/html/Generics-Pointless-Functors.html#v%3Afmap
>
> 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
>  Methods
>    fmap
>      ::
>      => 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.

I think this is an instance of a bug introduced when implementing
cross-package documentation. It has been fixed already and will be in
the next minor release.

David


More information about the Haskell-Cafe mailing list