Dubious behavior in TH pretty printer
simonpj at microsoft.com
Mon Apr 2 04:52:09 EDT 2007
| I already sent a patch to the libraries list:
| This also fixes the printign of tilde-patterns.
| I didn't know about isSymOcc (indeed I never saw an OccName.lhs in
| template-haskell); I implemented it myself with dropWhile and isAlpha.
Ah yes, of course. OccName is for GHC's syntax, not TH's. Still, you might want to look in compiler/basicTypes/OccName.lhs, if only to check that your impl and GHC's agree about what an operator is.
More information about the Libraries