const-math-ghc-plugin: Compiler plugin for constant math elimination

[ bsd3, compiler-plugin, library ] [ Propose Tags ]
Dependencies base (<5), containers, ghc (>=7.4) [details]
License BSD-3-Clause
Author Conrad Parker, John Lato
Maintainer Conrad Parker <>
Category Compiler Plugin
Home page
Source repo head: git clone git://
Uploaded by ConradParker at Fri Oct 12 07:02:50 UTC 2012
Distributions NixOS:
Downloads 1994 total (17 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

This plugin evaluates constant math expressions at compile-time.

For details and full usage information, see;

To use it to compile foo.hs:

$ cabal install const-math-ghc-plugin
$ ghc -fplugin ConstMath.Plugin foo.hs

To use it to build a cabal package packagename:

$ cabal install --ghc-options="-package const-math-ghc-plugin -fplugin ConstMath.Plugin" packagename

Math should run faster.




Maintainer's Corner

For package maintainers and hackage trustees