[Haskell] non-ASCII characters in Haddock documentation

Wolfgang Jeltsch wolfgang at jeltsch.net
Fri Feb 13 17:12:46 EST 2004

Am Freitag, 13. Februar 2004 01:23 schrieben Sie:
> wolfgang:
> > Hello,
> >
> > how do I insert non-ASCII and maybe even non-Latin-1 characters in
> > Haddock documentation?
> >
> > Wolfgang
> Looks like it might be difficult. The haddock lexer src has:
>         $alphanum = [A-Za-z0-9]
> So, non-ascii might not be lexed.


I meant non-ASCII characters in source code comments like this:
        The execution time of this function is /n³/.
Currently, Haddock seems to copy the bytes making up the non-ASCII character 
verbatim to the HTML file.  But since the HTML file doesn't contain a 
character set specification, it is illformed and it depends on the browser 
how this situation is handled.

> -- Don


More information about the Haskell mailing list