Skip to content

Instantly share code, notes, and snippets.

@brendanhay
Last active October 29, 2015 09:28
Show Gist options
  • Select an option

  • Save brendanhay/8d76eceede2de7219671 to your computer and use it in GitHub Desktop.

Select an option

Save brendanhay/8d76eceede2de7219671 to your computer and use it in GitHub Desktop.

Revisions

  1. brendanhay renamed this gist Oct 29, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt → optimise.cabal
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    flag optimise
    flag optimise
    Description: Turns on -O2 optimizations
    Default: False

  2. brendanhay created this gist Oct 29, 2015.
    10 changes: 10 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    flag optimise
    Description: Turns on -O2 optimizations
    Default: False

    library
    ...
    if flag(optimise)
    ghc-options: -O2 -Wall -Werror
    else
    ghc-options: -O1 -Wall