added test script for stack files (and fixed stack for ghc-7.8)
This commit is contained in:
parent
778ec34156
commit
3c27ff5a32
8 changed files with 32 additions and 24 deletions
11
scripts/test-stack.sh
Executable file
11
scripts/test-stack.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -o nounset
|
||||
set -o errexit
|
||||
|
||||
for stack_file in stack*.yaml ; do
|
||||
echo testing $stack_file...
|
||||
export STACK_YAML=$stack_file
|
||||
stack setup
|
||||
stack test --fast --ghc-options="-Werror"
|
||||
done
|
|
@ -67,7 +67,7 @@ library
|
|||
, transformers >= 0.3 && < 0.6
|
||||
, transformers-compat>= 0.4
|
||||
, wai >= 3.0 && < 3.3
|
||||
, wai-app-static >= 3.0 && < 3.2
|
||||
, wai-app-static >= 3.1 && < 3.2
|
||||
, warp >= 3.0 && < 3.3
|
||||
, word8 == 0.1.*
|
||||
|
||||
|
|
|
@ -104,6 +104,7 @@ test-suite spec
|
|||
Servant.Utils.LinksSpec
|
||||
build-depends:
|
||||
base == 4.*
|
||||
, base-compat
|
||||
, aeson
|
||||
, attoparsec
|
||||
, bytestring
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
{-# LANGUAGE CPP #-}
|
||||
{-# LANGUAGE DeriveDataTypeable #-}
|
||||
{-# LANGUAGE DeriveFunctor #-}
|
||||
#if !MIN_VERSION_base(4,8,0)
|
||||
{-# LANGUAGE DeriveFoldable #-}
|
||||
#endif
|
||||
{-# LANGUAGE DeriveTraversable #-}
|
||||
{-# LANGUAGE TypeOperators #-}
|
||||
{-# OPTIONS_HADDOCK not-home #-}
|
||||
|
|
|
@ -11,9 +11,6 @@
|
|||
module Servant.Utils.Enter where
|
||||
|
||||
import qualified Control.Category as C
|
||||
#if MIN_VERSION_mtl(2,2,1)
|
||||
import Control.Monad.Except
|
||||
#endif
|
||||
import Control.Monad.Identity
|
||||
import Control.Monad.Morph
|
||||
import Control.Monad.Reader
|
||||
|
|
|
@ -8,10 +8,9 @@
|
|||
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
||||
module Servant.API.ContentTypesSpec where
|
||||
|
||||
#if !MIN_VERSION_base(4,8,0)
|
||||
import Control.Applicative
|
||||
import Data.Monoid
|
||||
#endif
|
||||
import Prelude ()
|
||||
import Prelude.Compat
|
||||
|
||||
import Control.Arrow
|
||||
import Data.Aeson
|
||||
import Data.ByteString.Char8 (ByteString, append, pack)
|
||||
|
|
|
@ -8,17 +8,21 @@ packages:
|
|||
- servant-mock/
|
||||
- servant-server/
|
||||
extra-deps:
|
||||
- base-compat-0.9.0
|
||||
- hspec-2.2.0
|
||||
- hspec-core-2.2.0
|
||||
- hspec-discover-2.2.0
|
||||
- hspec-expectations-0.7.2
|
||||
- doctest-0.10.1
|
||||
- engine-io-1.2.10
|
||||
- engine-io-wai-1.0.3
|
||||
- socket-io-1.3.3
|
||||
- stm-delay-0.1.1.1
|
||||
- base-compat-0.9.1
|
||||
- control-monad-omega-0.3.1
|
||||
- http-api-data-0.1.1.1
|
||||
- cryptonite-0.6
|
||||
- doctest-0.11.0
|
||||
- hspec-2.2.3
|
||||
- hspec-core-2.2.3
|
||||
- hspec-discover-2.2.3
|
||||
- hspec-expectations-0.7.2
|
||||
- http-api-data-0.2.2
|
||||
- primitive-0.6.1.0
|
||||
- servant-0.7.1
|
||||
- servant-client-0.7.1
|
||||
- servant-docs-0.7.1
|
||||
- servant-server-0.7.1
|
||||
- should-not-typecheck-2.1.0
|
||||
- time-locale-compat-0.1.1.1
|
||||
- wai-app-static-3.1.5
|
||||
resolver: lts-2.22
|
||||
|
|
|
@ -1,6 +1,4 @@
|
|||
flags:
|
||||
servant-js:
|
||||
example: false
|
||||
flags: {}
|
||||
packages:
|
||||
- servant/
|
||||
- servant-client/
|
||||
|
|
Loading…
Add table
Reference in a new issue