packages feed

validation 1.1.3 → 1.1.4

raw patch · 3 files changed

+12/−1 lines, 3 filesdep +selectivedep ~deepseq

Dependencies added: selective

Dependency ranges changed: deepseq

Files

changelog view
@@ -1,3 +1,8 @@+1.1.4++* Remove nix build+* Add `Selective` instance+ 1.1.3  * Fix CI for older GHC
src/Data/Validation.hs view
@@ -50,6 +50,7 @@ #endif import Control.Lens.Prism(Prism, _Left, _Right) import Control.Lens.Review(( # ))+import Control.Selective(Selective(..)) import Data.Bifoldable(Bifoldable(bifoldr)) import Data.Bifunctor(Bifunctor(bimap)) import Data.Bifunctor.Swap(Swap(..))@@ -117,6 +118,10 @@   Success a <!> _ =     Success a   {-# INLINE (<!>) #-}++instance Semigroup err => Selective (Validation err) where+  select (Failure e) _ = Failure e+  select (Success x) f = either (\a -> ($ a) <$> f) Success x  instance Foldable (Validation err) where   foldr f x (Success a) =
validation.cabal view
@@ -1,5 +1,5 @@ name:               validation-version:            1.1.3+version:            1.1.4 license:            BSD3 license-file:       LICENCE author:             Tony Morris <ʇǝu˙sıɹɹoɯʇ@ןןǝʞsɐɥ> <dibblego>, Nick Partridge <nkpart>@@ -49,6 +49,7 @@                       base          >= 4.11   && < 5                     , assoc         >= 1      && < 2                     , deepseq       >= 1.4.3  && < 1.5+                    , selective     >= 0.6    && < 1                     , semigroups    >= 0.18.2 && < 1                     , semigroupoids >= 5.2.2  && < 7                     , bifunctors    >= 5.5    && < 6