Removing GHC 7.8 support.

It never really existed.
This commit is contained in:
Julian K. Arni 2016-08-28 20:50:42 -03:00
parent 86d99239bb
commit 343f55f61a
4 changed files with 19 additions and 22 deletions

View File

@ -3,7 +3,6 @@ sudo: false
language: c
env:
- GHCVER=7.8.4
- GHCVER=7.10.2
addons:
@ -11,7 +10,6 @@ addons:
sources:
- hvr-ghc
packages:
- ghc-7.8.4
- ghc-7.10.2
- cabal-install-1.22
- libgmp-dev

View File

@ -27,30 +27,28 @@ library
, Servant.QuickCheck.Internal.QuickCheck
, Servant.QuickCheck.Internal.Equality
, Servant.QuickCheck.Internal.ErrorTypes
build-depends: base >=4.7 && <4.9
build-depends: base >=4.8 && <4.9
, base-compat == 0.9.*
, QuickCheck == 2.8.*
, aeson > 0.8 && < 0.12
, bytestring == 0.10.*
, aeson > 0.10 && < 0.12
, mtl == 2.2.*
, case-insensitive == 1.2.*
, data-default-class == 0.0.*
, hspec == 2.2.*
, http-client == 0.4.*
, http-types == 0.9.*
, http-media == 0.6.*
, http-types > 0.8 && < 0.10
, mtl > 2.1 && < 2.3
, pretty == 1.1.*
, process == 1.2.*
, QuickCheck > 2.7 && < 2.9
, servant > 0.6 && < 0.9
, servant-client > 0.6 && < 0.9
, servant-server > 0.6 && < 0.9
, string-conversions == 0.4.*
, data-default-class == 0.0.*
, servant > 0.6 && < 0.9
, warp >= 3.2.4 && < 3.3
, process == 1.2.*
, temporary == 1.2.*
, split == 0.2.*
, case-insensitive == 1.2.*
, hspec == 2.2.*
, string-conversions > 0.3 && < 0.5
, temporary == 1.2.*
, text == 1.*
, pretty == 1.1.*
if impl(ghc < 7.10)
build-depends: bifunctors == 5.*
, warp >= 3.2.4 && < 3.3
hs-source-dirs: src
default-extensions: TypeOperators
@ -68,7 +66,7 @@ library
, OverloadedStrings
, FunctionalDependencies
, NoImplicitPrelude
, AutoDeriveTypeable
, DeriveDataTypeable
default-language: Haskell2010
test-suite spec

View File

@ -4,6 +4,7 @@ import Control.Exception (Exception (..))
import qualified Data.ByteString.Lazy as LBS
import Data.String.Conversions (cs)
import qualified Data.Text as T
import Data.Typeable (Typeable)
import GHC.Generics (Generic)
import qualified Network.HTTP.Client as C
import Network.HTTP.Types (Header, statusCode)
@ -12,7 +13,7 @@ import Text.PrettyPrint
data PredicateFailure
= PredicateFailure T.Text (Maybe C.Request) (C.Response LBS.ByteString)
deriving (Generic)
deriving (Typeable, Generic)
instance Exception ServerEqualityFailure where
@ -22,7 +23,7 @@ instance Show PredicateFailure where
data ServerEqualityFailure
= ServerEqualityFailure C.Request (C.Response LBS.ByteString) (C.Response LBS.ByteString)
deriving (Generic)
deriving (Typeable, Generic)
instance Show ServerEqualityFailure where
show = render . prettyServerEqualityFailure

View File

@ -1,7 +1,7 @@
module Servant.QuickCheck.Internal.Predicates where
import Control.Exception (catch, throw)
import Control.Monad.Reader
import Control.Monad (when, unless, liftM2)
import Data.Aeson (Object, decode)
import qualified Data.ByteString as SBS
import qualified Data.ByteString.Char8 as SBSC