packages feed

uniform-pair 0.1.9 → 0.1.10

raw patch · 2 files changed

+8/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

src/Data/UniformPair.hs view
@@ -15,6 +15,11 @@ -- morphism principle. ---------------------------------------------------------------------- +-- TODO: Consider more lazy patterns so that we don't force the argument pair+-- structure before revealing the result pair structure. Candidates: toP, fromP,+-- update, mappend, (<*>), joinP, reverse, onElemP, and compareSwap. The mappend+-- on (a,b) look like it has this same eager in base 4.8.+ module Data.UniformPair   ( Pair(..), fstP,sndP, firstP, secondP, getP, onElemP, compareSwap   ) where@@ -48,8 +53,8 @@ sndP (_ :# b) = b  firstP, secondP :: (a -> a) -> (Pair a -> Pair a)-firstP  f (a :# b) = f a :# b-secondP g (a :# b) = a :# g b+firstP  f ~(a :# b) = f a :# b+secondP g ~(a :# b) = a :# g b  -- unzipP :: Functor f => f (Pair a) -> Pair (f a) -- unzipP ps = (fstP <$> ps) :# (sndP <$> ps)
uniform-pair.cabal view
@@ -1,5 +1,5 @@ Name:                uniform-pair-Version:             0.1.9+Version:             0.1.10 Cabal-Version:       >= 1.6 Synopsis:            Uniform pairs with class instances Category:            Data