[Haskell-beginners] What's wrong with Haddock?!

Sylvain Henry sylvain at haskus.fr
Thu Oct 26 10:31:58 UTC 2017


Just remove the `^` character. `|` and `^` (attaching the comment to the 
next/previous entity) can't be used everywhere.


On 26/10/2017 12:03, Baa wrote:
> I often hit such errors:
>
>    parse error on input ‘-- ^ my doc-string is here’
>
> when generate Haddock documentation. This happens on line like:
>
>    instance Something UTCTime where
>      some a = blahBlah -- ^ my doc-string is here
>
> Sometimes such doc-strings are passing, sometimes - not. I can
> understand what is the reason. Is there some rule how to format such
> kind of doc-strings?
>
>
> ===
> Cheers, Paul
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners



More information about the Beginners mailing list