Move ghc-options in stack config and out of cabal file
This commit is contained in:
@@ -22,11 +22,6 @@ Flag CI
|
|||||||
Default: False
|
Default: False
|
||||||
|
|
||||||
executable postgrest
|
executable postgrest
|
||||||
if flag(ci)
|
|
||||||
ghc-options: -Wall -W -Werror
|
|
||||||
else
|
|
||||||
ghc-options: -Wall -W -O2
|
|
||||||
|
|
||||||
main-is: PostgREST/Main.hs
|
main-is: PostgREST/Main.hs
|
||||||
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes, LambdaCase
|
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes, LambdaCase
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
@@ -80,11 +75,6 @@ executable postgrest
|
|||||||
, PostgREST.Types
|
, PostgREST.Types
|
||||||
|
|
||||||
library
|
library
|
||||||
if flag(ci)
|
|
||||||
ghc-options: -Wall -W -Werror
|
|
||||||
else
|
|
||||||
ghc-options: -Wall -W -O2
|
|
||||||
|
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes
|
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes
|
||||||
build-depends: aeson
|
build-depends: aeson
|
||||||
@@ -136,10 +126,6 @@ Test-Suite spec
|
|||||||
Default-Language: Haskell2010
|
Default-Language: Haskell2010
|
||||||
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes, LambdaCase
|
default-extensions: OverloadedStrings, ScopedTypeVariables, QuasiQuotes, LambdaCase
|
||||||
Hs-Source-Dirs: test, src
|
Hs-Source-Dirs: test, src
|
||||||
if flag(ci)
|
|
||||||
ghc-options: -Wall -W -Werror
|
|
||||||
else
|
|
||||||
ghc-options: -Wall -W -O2
|
|
||||||
Main-Is: Main.hs
|
Main-Is: Main.hs
|
||||||
Other-Modules: Feature.AuthSpec
|
Other-Modules: Feature.AuthSpec
|
||||||
, Feature.CorsSpec
|
, Feature.CorsSpec
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ extra-deps:
|
|||||||
- Ranged-sets-0.3.0
|
- Ranged-sets-0.3.0
|
||||||
- packdeps-0.4.2.1
|
- packdeps-0.4.2.1
|
||||||
ghc-options:
|
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:
|
packages:
|
||||||
- '.'
|
- '.'
|
||||||
|
|||||||
Reference in New Issue
Block a user