added test script for stack files (and fixed stack for ghc-7.8)
commit3c27ff5a32462899c6968f5c6e170ea3d61dc51c
authorSönke Hahn <soenkehahn@gmail.com>
dateWed 11 May 2016, 16:51 (10 years ago)
parent778ec34
scripts/test-stack.shnew file+11
@@ -0,0 +1,11 @@
1+#!/usr/bin/env bash
2+
3+set -o nounset
4+set -o errexit
5+
6+for stack_file in stack*.yaml ; do
7+ echo testing $stack_file...
8+ export STACK_YAML=$stack_file
9+ stack setup
10+ stack test --fast --ghc-options="-Werror"
11+done
servant-server/servant-server.cabal+1−1
@@ -67,7 +67,7 @@ library
6767 , transformers >= 0.3 && < 0.6
6868 , transformers-compat>= 0.4
6969 , wai >= 3.0 && < 3.3
70− , wai-app-static >= 3.0 && < 3.2
70+ , wai-app-static >= 3.1 && < 3.2
7171 , warp >= 3.0 && < 3.3
7272 , word8 == 0.1.*
7373
servant/servant.cabal+1
@@ -104,6 +104,7 @@ test-suite spec
104104 Servant.Utils.LinksSpec
105105 build-depends:
106106 base == 4.*
107+ , base-compat
107108 , aeson
108109 , attoparsec
109110 , bytestring
servant/src/Servant/API/Alternative.hs−2
@@ -1,9 +1,7 @@
11{-# LANGUAGE CPP #-}
22{-# LANGUAGE DeriveDataTypeable #-}
33{-# LANGUAGE DeriveFunctor #-}
4−#if !MIN_VERSION_base(4,8,0)
54{-# LANGUAGE DeriveFoldable #-}
6−#endif
75{-# LANGUAGE DeriveTraversable #-}
86{-# LANGUAGE TypeOperators #-}
97{-# OPTIONS_HADDOCK not-home #-}
servant/src/Servant/Utils/Enter.hs−3
@@ -11,9 +11,6 @@
1111module Servant.Utils.Enter where
1212
1313import qualified Control.Category as C
14−#if MIN_VERSION_mtl(2,2,1)
15−import Control.Monad.Except
16−#endif
1714import Control.Monad.Identity
1815import Control.Monad.Morph
1916import Control.Monad.Reader
servant/test/Servant/API/ContentTypesSpec.hs+3−4
@@ -8,10 +8,9 @@
88{-# OPTIONS_GHC -fno-warn-orphans #-}
99module Servant.API.ContentTypesSpec where
1010
11−#if !MIN_VERSION_base(4,8,0)
12−import Control.Applicative
13−import Data.Monoid
14−#endif
11+import Prelude ()
12+import Prelude.Compat
13+
1514import Control.Arrow
1615import Data.Aeson
1716import Data.ByteString.Char8 (ByteString, append, pack)
stack-ghc-7.8.4.yaml+15−11
@@ -8,17 +8,21 @@ packages:
88- servant-mock/
99- servant-server/
1010extra-deps:
11−- base-compat-0.9.0
12−- hspec-2.2.0
13−- hspec-core-2.2.0
14−- hspec-discover-2.2.0
15−- hspec-expectations-0.7.2
16−- doctest-0.10.1
17−- engine-io-1.2.10
18−- engine-io-wai-1.0.3
19−- socket-io-1.3.3
20−- stm-delay-0.1.1.1
11+- base-compat-0.9.1
2112- control-monad-omega-0.3.1
22−- http-api-data-0.1.1.1
13+- cryptonite-0.6
14+- doctest-0.11.0
15+- hspec-2.2.3
16+- hspec-core-2.2.3
17+- hspec-discover-2.2.3
18+- hspec-expectations-0.7.2
19+- http-api-data-0.2.2
20+- primitive-0.6.1.0
21+- servant-0.7.1
22+- servant-client-0.7.1
23+- servant-docs-0.7.1
24+- servant-server-0.7.1
2325- should-not-typecheck-2.1.0
26+- time-locale-compat-0.1.1.1
27+- wai-app-static-3.1.5
2428resolver: lts-2.22
stack.yaml+1−3
@@ -1,6 +1,4 @@
1−flags:
2− servant-js:
3− example: false
1+flags: {}
42packages:
53- servant/
64- servant-client/