audreyt / interpolatedstring-perl6

QuasiQuoter for Perl6-style multi-line interpolated strings with q, qq and qc support.
http://hackage.haskell.org/package/interpolatedstring-perl6/
Creative Commons Zero v1.0 Universal
25 stars 8 forks source link

oops #2

Closed erratic-pattern closed 12 years ago

erratic-pattern commented 12 years ago

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.

erratic-pattern commented 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.

erratic-pattern commented 12 years ago

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.