Add -Wno-redundant-constraints
commit008f2434ee652f904a9fbb260ec16b875538c141
authorOleg Grenrus <oleg.grenrus@iki.fi>
dateFri 22 Apr 2016, 09:32 (10 years ago)
parentfd19694
servant-client/servant-client.cabal+2
@@ -56,6 +56,8 @@ library
5656 hs-source-dirs: src
5757 default-language: Haskell2010
5858 ghc-options: -Wall
59+ if impl(ghc >= 8.0)
60+ ghc-options: -Wno-redundant-constraints
5961 include-dirs: include
6062
6163test-suite spec
servant-client/test/Servant/ClientSpec.hs+4
@@ -15,7 +15,11 @@
1515{-# LANGUAGE TypeFamilies #-}
1616{-# LANGUAGE TypeOperators #-}
1717{-# LANGUAGE UndecidableInstances #-}
18+#if __GLASGOW_HASKELL__ >= 800
19+{-# OPTIONS_GHC -freduction-depth=100 #-}
20+#else
1821{-# OPTIONS_GHC -fcontext-stack=100 #-}
22+#endif
1923{-# OPTIONS_GHC -fno-warn-orphans #-}
2024{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
2125
servant-docs/servant-docs.cabal+2
@@ -50,6 +50,8 @@ library
5050 hs-source-dirs: src
5151 default-language: Haskell2010
5252 ghc-options: -Wall
53+ if impl(ghc >= 8.0)
54+ ghc-options: -Wno-redundant-constraints
5355 include-dirs: include
5456
5557executable greet-docs
servant-foreign/servant-foreign.cabal+2
@@ -37,6 +37,8 @@ library
3737 hs-source-dirs: src
3838 default-language: Haskell2010
3939 ghc-options: -Wall
40+ if impl(ghc >= 8.0)
41+ ghc-options: -Wno-redundant-constraints
4042 include-dirs: include
4143 default-extensions: CPP
4244 , ConstraintKinds
servant-server/servant-server.cabal+2
@@ -74,6 +74,8 @@ library
7474 hs-source-dirs: src
7575 default-language: Haskell2010
7676 ghc-options: -Wall
77+ if impl(ghc >= 8.0)
78+ ghc-options: -Wno-redundant-constraints
7779 include-dirs: include
7880
7981executable greet
servant/servant.cabal+2
@@ -88,6 +88,8 @@ library
8888 , TypeSynonymInstances
8989 , UndecidableInstances
9090 ghc-options: -Wall
91+ if impl(ghc >= 8.0)
92+ ghc-options: -Wno-redundant-constraints
9193 include-dirs: include
9294
9395test-suite spec