on 62f5774 help sign in
4 files changed+43−27
since splitsnapshots
unifiedsplit
.travis.yml+27−14 ChangeLog.md−6 test/Doc.hs+1−1 validationt.cabal+15−6
.travis.yml+27−14
@@ -4,35 +4,48 @@ language: haskell
44git:
55 depth: 5
66
7+cabal: "2.4"
8+
79cache:
810 directories:
911 - "$HOME/.cabal/store"
1012 - "$HOME/.stack"
1113 - "$TRAVIS_BUILD_DIR/.stack-work"
1214
13−jobs:
15+matrix:
1416 include:
15− - ghc: 8.6.5
16− env: SNAPSHOT="lts-14.22"
17− - ghc: 8.6.4
18− env: SNAPSHOT="lts-13.19"
19− - ghc: 8.6.3
20− env: SNAPSHOT="lts-13.11"
17+
18+ # Cabal
2119 - ghc: 8.4.4
22− env: SNAPSHOT="lts-12.26"
20+ - ghc: 8.6.5
21+
22+ # Stack
23+ - ghc: 8.6.5
24+ env: STACK_YAML="$TRAVIS_BUILD_DIR/stack.yaml"
2325
2426install:
2527 - |
26− # install stack
27− curl -sSL https://get.haskellstack.org/ | sh
28+ if [ -z "$STACK_YAML" ]; then
29+ ghc --version
30+ cabal --version
31+ cabal new-update
32+ cabal new-build --enable-tests --enable-benchmarks
33+ else
34+ # install stack
35+ curl -sSL https://get.haskellstack.org/ | sh
2836
29− # build project with stack
30− stack --version
31− stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --resolver=$SNAPSHOT
37+ # build project with stack
38+ stack --version
39+ stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
40+ fi
3241
3342script:
3443 - |
35− stack test --system-ghc
44+ if [ -z "$STACK_YAML" ]; then
45+ cabal new-test --enable-tests
46+ else
47+ stack test --system-ghc
48+ fi
3649
3750notifications:
3851 email: false
ChangeLog.md−6
@@ -1,11 +1,5 @@
11# Revision history for validationt
22
3−## 0.3.0
4−
5−* Added documentation.
6−* Fixed `textErrors` behaviour.
7−* Dropped `transformers-lift` dependency.
8−
93## 0.2.1.0
104
115* GHC 8.4 support
test/Doc.hs+1−1
@@ -3,4 +3,4 @@ module Main (main) where
33import Test.DocTest
44
55main :: IO ()
6−main = doctest [ "-XOverloadedStrings", "-isrc", "src" ]
6+main = doctest [ "-XOverloadedStrings", "src" ]
validationt.cabal+15−6
@@ -2,7 +2,7 @@
22-- documentation, see http://haskell.org/cabal/users-guide/
33
44name: validationt
5−version: 0.3.0
5+version: 0.2.1.0
66synopsis: Straightforward validation monad.
77description: Convenient solution for validating web forms and APIs.
88homepage: https://github.com/typeable/validationt
@@ -50,12 +50,21 @@ library
5050 -Wmissing-export-lists
5151
5252test-suite doctest
53− default-language: Haskell2010
5453 type: exitcode-stdio-1.0
5554 hs-source-dirs: test
5655 ghc-options: -Wall
5756 main-is: Doc.hs
58− build-depends:
59− base >= 4.10.0.0
60− , doctest >= 0.11.4
61− , validationt
57+ build-depends: base >=4.8 && < 5
58+ , aeson >= 1.0
59+ , doctest
60+ , containers
61+ , exceptions
62+ , lens
63+ , monad-control
64+ , mtl
65+ , QuickCheck
66+ , text
67+ , transformers
68+ , transformers-base
69+ , vector
70+ , doctest