This plugin gives an example of defining a compiler plugin for
GHC. You mark functions with the
Strictify annotation and GHC makes
the function strict (by recursively expanding non-recursive let
bindings into case bindings.)
Install the latest version of the plugin from Hackage (requires GHC 7.4.1):
$ cabal install strict-ghc-plugin
File bugs in the GitHub issue tracker.
Master git repository:
git clone https://github.com/thoughtpolice/strict-ghc-plugin.git
There's also a BitBucket mirror:
git clone https://bitbucket.org/thoughtpolice/strict-ghc-plugin.git
LICENSE.txt for terms of copyright and redistribution.