Move ghc-options in stack config and out of cabal file

This commit is contained in:
Joe Nelson
2016-01-28 14:03:44 -08:00
parent 1a3c54793d
commit c887f2b3b4
2 changed files with 1 additions and 15 deletions
-14
View File
@@ -22,11 +22,6 @@ Flag CI
Default: False
executable postgrest
if flag(ci)
ghc-options: -Wall -W -Werror
else
ghc-options: -Wall -W -O2
main-is: PostgREST/Main.hs
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes, LambdaCase
default-language: Haskell2010
@@ -80,11 +75,6 @@ executable postgrest
, PostgREST.Types
library
if flag(ci)
ghc-options: -Wall -W -Werror
else
ghc-options: -Wall -W -O2
default-language: Haskell2010
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes
build-depends: aeson
@@ -136,10 +126,6 @@ Test-Suite spec
Default-Language: Haskell2010
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes, LambdaCase
Hs-Source-Dirs: test, src
if flag(ci)
ghc-options: -Wall -W -Werror
else
ghc-options: -Wall -W -O2
Main-Is: Main.hs
Other-Modules: Feature.AuthSpec
, Feature.CorsSpec
+1 -1
View File
@@ -4,7 +4,7 @@ extra-deps:
- Ranged-sets-0.3.0
- packdeps-0.4.2.1
ghc-options:
postgrest: -Werror -Wall -fwarn-monomorphism-restriction -fwarn-missing-exported-sigs -fwarn-identities
postgrest: -O2 -Werror -Wall -fwarn-monomorphism-restriction -fwarn-missing-exported-sigs -fwarn-identities
packages:
- '.'