Hacker News new | ask | show | jobs
by dbaupp 3844 days ago
Haskell's GHC offers optimisations-in-libraries via its RULES pragma[1], which allows specifying rewrite rules. These are an important part of the deforestation[2] that makes, for instance, lists and vectors fast.

[1]: https://wiki.haskell.org/Playing_by_the_rules

[2]: http://hackage.haskell.org/package/vector-0.7.1/docs/src/Dat...

1 comments

Yeah, that's actually mentioned in the article ;)