Skip to content

Commit e3c5a78

Browse files
committed
Merge pull request #473 from phadej/travis-ghc-8.0
Add ghc-8.0.1 to travis matrix
2 parents 1955c5a + a5cf899 commit e3c5a78

File tree

13 files changed

+202
-24
lines changed

13 files changed

+202
-24
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,25 @@ sudo: false
33
language: c
44

55
env:
6-
- GHCVER=7.8.4
7-
- GHCVER=7.10.2
6+
- GHCVER=7.8.4 CABALVER=1.22
7+
- GHCVER=7.10.3 CABALVER=1.22
8+
- GHCVER=8.0.1 CABALVER=1.24
89

910
addons:
1011
apt:
1112
sources:
1213
- hvr-ghc
1314
packages:
1415
- ghc-7.8.4
15-
- ghc-7.10.2
16+
- ghc-7.10.3
17+
- ghc-8.0.1
1618
- cabal-install-1.22
19+
- cabal-install-1.24
1720
- libgmp-dev
1821

1922
install:
2023
- (mkdir -p $HOME/.local/bin && cd $HOME/.local/bin && wget https://zalora-public.s3.amazonaws.com/tinc && chmod +x tinc)
21-
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.22/bin:$PATH
24+
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
2225
- ghc --version
2326
- cabal --version
2427
- travis_retry cabal update

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-mock/servant-mock.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ library
2929
http-types >= 0.8 && <0.10,
3030
servant == 0.7.*,
3131
servant-server == 0.7.*,
32-
transformers >= 0.3 && <0.5,
32+
transformers >= 0.3 && <0.6,
3333
QuickCheck >= 2.7 && <2.9,
3434
wai >= 3.0 && <3.3
3535
hs-source-dirs: src

servant-server/servant-server.cabal

Lines changed: 6 additions & 2 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
@@ -99,9 +101,11 @@ test-suite spec
99101
other-modules:
100102
Servant.Server.ErrorSpec
101103
Servant.Server.Internal.ContextSpec
102-
Servant.ServerSpec
104+
Servant.Server.RouterSpec
105+
Servant.Server.StreamingSpec
103106
Servant.Server.UsingContextSpec
104107
Servant.Server.UsingContextSpec.TestCombinators
108+
Servant.ServerSpec
105109
Servant.Utils.StaticFilesSpec
106110
build-depends:
107111
base == 4.*
@@ -122,7 +126,7 @@ test-suite spec
122126
, servant
123127
, servant-server
124128
, string-conversions
125-
, should-not-typecheck == 2.*
129+
, should-not-typecheck == 2.1.*
126130
, temporary
127131
, text
128132
, transformers

servant-server/src/Servant/Server/Internal/Context.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ instance (Eq a, Eq (Context as)) => Eq (Context (a ': as)) where
5959
--
6060
-- >>> getContextEntry (True :. False :. EmptyContext) :: String
6161
-- ...
62-
-- No instance for (HasContextEntry '[] [Char])
62+
-- ...No instance for (HasContextEntry '[] [Char])
6363
-- ...
6464
class HasContextEntry (context :: [*]) (val :: *) where
6565
getContextEntry :: Context context -> val

servant/servant.cabal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ library
4949
Servant.Utils.Links
5050
Servant.Utils.Enter
5151
build-depends:
52-
base >= 4.7 && < 4.9
52+
base >= 4.7 && < 4.10
5353
, base-compat >= 0.9
5454
, aeson >= 0.7
5555
, attoparsec >= 0.12
@@ -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

servant/src/Servant/Utils/Links.hs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,8 @@
7272
-- >>> let bad_link = Proxy :: Proxy ("hello" :> Delete '[JSON] ())
7373
-- >>> safeLink api bad_link
7474
-- ...
75-
-- Could not deduce (Or
76-
-- (IsElem' (Verb 'DELETE 200 '[JSON] ()) (Verb 'GET 200 '[JSON] Int))
77-
-- (IsElem'
78-
-- ("hello" :> Delete '[JSON] ())
79-
-- ("bye" :> (QueryParam "name" String :> Delete '[JSON] ()))))
80-
-- arising from a use of ‘safeLink’
81-
-- In the expression: safeLink api bad_link
82-
-- In an equation for ‘it’: it = safeLink api bad_link
75+
-- ...Could not deduce...
76+
-- ...
8377
--
8478
-- This error is essentially saying that the type family couldn't find
8579
-- bad_link under api after trying the open (but empty) type family

0 commit comments

Comments
 (0)