Skip to content

Instantly share code, notes, and snippets.

@brendanhay
Last active October 29, 2015 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brendanhay/8d76eceede2de7219671 to your computer and use it in GitHub Desktop.
Save brendanhay/8d76eceede2de7219671 to your computer and use it in GitHub Desktop.
Cabal O1/O2
flag optimise
Description: Turns on -O2 optimizations
Default: False
library
...
if flag(optimise)
ghc-options: -O2 -Wall -Werror
else
ghc-options: -O1 -Wall
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment