> 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.
> 
> Hello,
> 
> 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.

It shouldn't be too hard to fix this, at least for Latin-1 (full Unicode would be 
somewhat harder).  I'll add it to the TODO list.

Cheers,
        Simon
_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to