git.iko.soy/typeable/validationt
on 6609fb0 help sign in
4 files changed+15−22
since splitsnapshots
unifiedsplit
.travis.yml+4−4 src/Control/Monad/Validation.hs+2−5 stack.yaml+1−1 validationt.cabal+8−12
.travis.yml+4−4
@@ -12,12 +12,12 @@ cache:
1212
1313jobs:
1414 include:
15− - ghc: 8.10.2
16− env: SNAPSHOT="nightly-2020-11-03"
17− - ghc: 8.8.4
18− env: SNAPSHOT="lts-16.20"
1915 - ghc: 8.6.5
2016 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"
2121 - ghc: 8.4.4
2222 env: SNAPSHOT="lts-12.26"
2323
src/Control/Monad/Validation.hs+2−5
@@ -38,14 +38,11 @@ import Data.Foldable as F
3838import Data.Functor
3939import Data.List as L
4040import Data.Map.Strict as M
41+import Data.Monoid
4142import Data.Text as T
4243import Data.Vector as V
4344import Test.QuickCheck
4445
45−#if MIN_VERSION_mtl(2,3,0)
46−import Control.Monad
47−import Control.Monad.Fix
48−#endif
4946
5047-- | Collects all thrown warnings in 'StateT' and errors
5148-- in 'ExceptT' into a single value using 'Monoid'.
@@ -89,7 +86,7 @@ instance (Ord k, Semigroup v) => Semigroup (MonoidMap k v) where
8986
9087instance (Ord k, Monoid v) => Monoid (MonoidMap k v) where
9188 mempty = MonoidMap M.empty
92− mappend = (<>)
89+ mappend = mmAppend
9390
9491instance (ToJSON k, ToJSON v) => ToJSON (MonoidMap k v) where
9592 toJSON (MonoidMap m) = toJSON $ L.map toObj $ M.toList m
stack.yaml+1−1
@@ -15,7 +15,7 @@
1515# resolver:
1616# name: custom-snapshot
1717# location: "./custom-snapshot.yaml"
18−resolver: lts-22.4
18+resolver: lts-14.21
1919
2020# User packages to be built.
2121# Various formats can be used as shown in the example below.
validationt.cabal+8−12
@@ -2,11 +2,10 @@
22-- documentation, see http://haskell.org/cabal/users-guide/
33
44name: validationt
5−version: 0.3.0
5+version: 0.3.1
66synopsis: Straightforward validation monad
7−description:
8− A simple data validation library. The main idea is to provide an easy way to validate web form data by aggregating errors for each field.
9− .
7+description: A simple data validation library. The main idea is to provide an easy way to
8+validate web form data by aggregating errors for each field.
109homepage: https://github.com/typeable/validationt
1110license: BSD3
1211license-file: LICENSE
@@ -16,12 +15,9 @@ maintainer: makeit@typeable.io
1615category: Control
1716build-type: Simple
1817extra-source-files: ChangeLog.md
19− , README.md
2018cabal-version: >=1.10
2119tested-with: GHC == 8.4.4
2220 , GHC == 8.6.5
23− , GHC == 8.8.4
24− , GHC == 8.10.2
2521
2622source-repository head
2723 type: git
@@ -29,14 +25,14 @@ source-repository head
2925
3026library
3127 exposed-modules: Control.Monad.Validation
32− build-depends: base >=4.10 && < 5
33− , aeson >=1.0
28+ build-depends: base >=4.8 && < 5
29+ , aeson >= 1.0
3430 , containers
35− , exceptions >=0.9
31+ , exceptions
3632 , lens
3733 , monad-control
38− , mtl <2.3 || >2.3
39− , QuickCheck >=2.8.2
34+ , mtl
35+ , QuickCheck
4036 , text
4137 , transformers
4238 , transformers-base