Skip to content
Snippets Groups Projects
Commit 909db4cd authored by Oleg Grenrus's avatar Oleg Grenrus
Browse files

Use base-orphans, update .travis.yml and tested-with

parent 600f1532
No related branches found
No related tags found
No related merge requests found
......@@ -18,10 +18,10 @@ matrix:
addons: {apt: {packages: [cabal-install-1.24,ghc-8.0.2], sources: [hvr-ghc]}}
- env: CABALVER=1.24 GHCVER=8.2.2
addons: {apt: {packages: [cabal-install-1.24,ghc-8.2.2], sources: [hvr-ghc]}}
- env: CABALVER=1.24 GHCVER=8.4.3
addons: {apt: {packages: [cabal-install-1.24,ghc-8.4.3], sources: [hvr-ghc]}}
- env: CABALVER=2.4 GHCVER=8.6.1
addons: {apt: {packages: [cabal-install-2.4,ghc-8.6.1], sources: [hvr-ghc]}}
- env: CABALVER=1.24 GHCVER=8.4.4
addons: {apt: {packages: [cabal-install-1.24,ghc-8.4.4], sources: [hvr-ghc]}}
- env: CABALVER=2.4 GHCVER=8.6.5
addons: {apt: {packages: [cabal-install-2.4,ghc-8.6.5], sources: [hvr-ghc]}}
- env: CABALVER=head GHCVER=head
addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
......
......@@ -18,7 +18,7 @@ category: Data, Parsing
stability: provisional
build-type: Simple
cabal-version: >= 1.8
tested-with: GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2
tested-with: GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2, GHC ==8.2.2, GHC == 8.4.4, GHC == 8.6.5
extra-source-files:
README.md changelog.md docs/hcar/binary-Lb.tex tools/derive/*.hs
......@@ -76,6 +76,7 @@ test-suite qc
Data.Binary.Put
build-depends:
base >= 4.5.0.0 && < 5,
base-orphans >=0.8.1 && <0.9,
bytestring >= 0.10.4,
random>=1.0.1.0,
test-framework,
......
......@@ -24,6 +24,8 @@ import Data.Ratio
import Data.Typeable
import System.IO.Unsafe
import Data.Orphans ()
#ifdef HAS_NATURAL
import Numeric.Natural
#endif
......@@ -43,6 +45,7 @@ import Data.Binary.Get
import Data.Binary.Put
import qualified Data.Binary.Class as Class
------------------------------------------------------------------------
roundTrip :: (Eq a, Binary a) => a -> (L.ByteString -> L.ByteString) -> Bool
......@@ -499,10 +502,6 @@ genNaturalBig = do
genFingerprint :: Gen Fingerprint
genFingerprint = liftM2 Fingerprint arbitrary arbitrary
#if !MIN_VERSION_base(4,7,0)
instance Show Fingerprint where
show (Fingerprint x1 x2) = show (x1,x2)
#endif
------------------------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment