literate comments

Udo Stenzel u.stenzel at
Thu Oct 16 13:02:28 EDT 2003

begin  ajb at  quote:
> Quoting Steffen Mazanek <steffen.mazanek at>:
> > Would it make sense, to add a xml like code environment
> > as well, e.g., <code>...</code>?
> It's hard to say.  The problem is that some Haskell characters are also
> important for XML (e.g. <, &) and so you can't just cut and paste valid
> Haskell inside a <code>...</code> wrapper and expect it to work without
> some additional markup.

You could use a CDATA section:

...haskell code goes here...

This way the only character sequence you have to avoid in the code is
]]>, which isn't really a restriction.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
Url :

More information about the Haskell mailing list