Skip to content

Commit 008f243

Browse files
committed
Add -Wno-redundant-constraints
1 parent fd19694 commit 008f243

File tree

6 files changed

+14
-0
lines changed

6 files changed

+14
-0
lines changed

servant-client/servant-client.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

6163
test-suite spec

servant-client/test/Servant/ClientSpec.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

5557
executable greet-docs

servant-foreign/servant-foreign.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

7981
executable greet

servant/servant.cabal

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

9395
test-suite spec

0 commit comments

Comments
 (0)