Closed erratic-pattern closed 12 years ago
Also, hold off on a release, as I can rewrite the dubious typeclass magic with much safer REWRITE pragmas. I'll experiment with that later this weekend.
I tried to use RULES pragmas, but I can't seem to get GHC to fire them. I suspect that other optimizations are happening before the rules have a chance to fire. Also, I made sure that the text and bytestring packages don't already perform the optimization I wanted; A look at the Core output suggests that they don't. So, I've left the code as it was before, using the typeclass hack to optimize away unnecessary string conversions.
The code should be ready for release, assuming you don't wish to make any changes.
I accidentally nuked a comment in the readme. Luckily I'm an expert at Haskell comments, and managed to fix the bug before the release.