From c887f2b3b40fcc35305048248b39d566ab614aa4 Mon Sep 17 00:00:00 2001 From: Joe Nelson Date: Thu, 28 Jan 2016 14:03:44 -0800 Subject: [PATCH] Move ghc-options in stack config and out of cabal file --- postgrest.cabal | 14 -------------- stack.yaml | 2 +- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/postgrest.cabal b/postgrest.cabal index 14352ed33..5374944d4 100644 --- a/postgrest.cabal +++ b/postgrest.cabal @@ -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 diff --git a/stack.yaml b/stack.yaml index 010ef7e76..1774ffffa 100644 --- a/stack.yaml +++ b/stack.yaml @@ -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: - '.'