Dubious behavior in TH pretty printer

Simon Peyton-Jones simonpj at microsoft.com
Mon Apr 2 04:02:41 EDT 2007


| I am trying to use the Template Haskell AST system for internal
| representation of terms in a derivation library that can output
| Haskell or feed directly into a splice.  This "bug", unfixed, would
| force me to fork the TH pretty printer.  What would people think of a
| patch changing the behavor to "Always produce parsable output"?  (Yes,
| I'm offering to implement it.)

Good plan.  You may find the function isSymOcc :: OccName -> Bool
in OccName.lhs useful

Send us a patch, by all means.

Thanks for offering to help.

Simon


More information about the Libraries mailing list