on master help sign in
Test on ghc 7.8

We officially support 7.8 and 7.10. The tests actually weren't compiling on 7.8 without CPP.

commit9a3ad9ea5502e2a2995493f1cdbfa224618efebe authorMichael Xavier <michael@michaelxavier.net> dateMon 4 Apr 2016, 09:15 (11 years ago) parente108a3d
5 files changed+12
.travis.yml+1 katip-elasticsearch/katip-elasticsearch.cabal+1 katip/katip.cabal+1 katip/test/Katip/Tests.hs+4 stack.yaml+5
.travis.yml+1
@@ -14,6 +14,7 @@ addons:
1414# change flags or use --stack-yaml to point to a different file.
1515env:
1616- ARGS=""
17+- ARGS="--resolver lts-2.22 --flag time-locale-compat:-old-locale"
1718- ARGS="--resolver lts-3"
1819- ARGS="--resolver lts"
1920- ARGS="--resolver nightly"
katip-elasticsearch/katip-elasticsearch.cabal+1
@@ -15,6 +15,7 @@ extra-source-files:
1515 changelog.md
1616 bench/Main.hs
1717 test/Main.hs
18+tested-with: GHC == 7.8.4, GHC== 7.10.3
1819
1920flag lib-Werror
2021 default: False
katip/katip.cabal+1
@@ -23,6 +23,7 @@ extra-source-files:
2323 test/Main.hs
2424 test/Katip/Tests.hs
2525 test/Katip/Tests/Scribes/Handle.hs
26+tested-with: GHC == 7.8.4, GHC== 7.10.3
2627
2728source-repository head
2829 type: git
katip/test/Katip/Tests.hs+4
@@ -1,3 +1,4 @@
1+{-# LANGUAGE CPP #-}
12{-# LANGUAGE GeneralizedNewtypeDeriving #-}
23{-# LANGUAGE OverloadedStrings #-}
34{-# LANGUAGE RecordWildCards #-}
@@ -122,6 +123,9 @@ deriving instance Arbitrary Namespace
122123deriving instance Arbitrary Environment
123124deriving instance Arbitrary ThreadIdText
124125deriving instance Arbitrary CPid
126+#if !MIN_VERSION_base(4, 8, 0)
127+deriving instance Eq Loc
128+#endif
125129deriving instance Eq LogStr
126130deriving instance (Eq a) => Eq (Item a)
127131
stack.yaml+5
@@ -13,6 +13,11 @@ extra-deps:
1313 - tasty-0.11.0.2
1414 - tagged-0.8.3
1515 - fail-4.9.0.0
16+ # just for 7.8/lts-2
17+ - microlens-th-0.3.0.1
18+ - microlens-0.4.2.0
19+ - time-1.5.0.1
20+ - lens-aeson-1.0.0.5
1621flags:
1722 katip:
1823 lib-Werror: true