packages feed

pointless-haskell 0.0.2 → 0.0.3

raw patch · 2 files changed

+27/−1 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

+ Generics.Pointless.Combinators: and :: (Bool, Bool) -> Bool
+ Generics.Pointless.Combinators: andf :: (a -> Bool, a -> Bool) -> (a -> Bool)
+ Generics.Pointless.Combinators: eq :: (Eq a) => (a, a) -> Bool
+ Generics.Pointless.Combinators: neq :: (Eq a) => (a, a) -> Bool
+ Generics.Pointless.Combinators: or :: (Bool, Bool) -> Bool
+ Generics.Pointless.Combinators: orf :: (a -> Bool, a -> Bool) -> (a -> Bool)

Files

pointless-haskell.cabal view
@@ -1,5 +1,5 @@ Name:            pointless-haskell-Version:         0.0.2+Version:         0.0.3 License:         BSD3 License-file:    LICENSE Author:          Alcino Cunha <alcino@di.uminho.pt>, Hugo Pacheco <hpacheco@di.uminho.pt>
src/Generics/Pointless/Combinators.hs view
@@ -18,6 +18,8 @@  module Generics.Pointless.Combinators where +import Prelude hiding (or,and)+ -- * Terminal object  -- | The bottom value for any type.@@ -124,6 +126,30 @@ -- | The uncurried composition combinator. comp :: (b -> c, a -> b) -> (a -> c) comp = curry (app . (id >< app) . assocr)++-- | Binary @or@ of boolean functions.+orf :: (a -> Bool,a -> Bool) -> (a -> Bool)+orf = curry (or . (app . (fst >< id) /\ app . (snd >< id)))++-- | Binary @and@ of boolean functions.+andf :: (a -> Bool,a -> Bool) -> (a -> Bool)+andf = curry (and . (app . (fst >< id) /\ app . (snd >< id)))++-- | Binary @or@ point-free combinator.+or :: (Bool,Bool) -> Bool+or = uncurry (||)++-- | Binary @and@ point-free combinator.+and :: (Bool,Bool) -> Bool+and = uncurry (&&)++-- | Binary equality point-free combinator.+eq :: Eq a => (a,a) -> Bool+eq = uncurry (==)++-- | Binary inequality point-free combinator.+neq :: Eq a => (a,a) -> Bool+neq = not . eq  -- * Point-free isomorphic combinators