Dubious behavior in TH pretty printer

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


| I already sent a patch to the libraries list:
| http://haskell.org/pipermail/libraries/2007-April/007317.html
|
| This also fixes the printign of tilde-patterns.

Great, thanks.

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

Simon


More information about the Libraries mailing list