[Haskell] lhs2TeX: lazy pattern "~" formatting

Conal Elliott conal at conal.net
Wed Apr 19 21:17:34 EDT 2006


Does anyone have a nice way to format the "~" of a lazy pattern in
lhs2TeX?  I use

  %format ~ = "{} ^\sim "

but the result isn't as pretty as I'd like.  For one thing, no space
is inserted before the "~" after a lambda, "do", or whatever.

Thanks,  - Conal


More information about the Haskell mailing list