data-extra 2.5.0 → 2.5.1
raw patch · 2 files changed
+3/−3 lines, 2 files
Files
- data-extra.cabal +1/−1
- src/Data/Bool/Extra.hs +2/−2
data-extra.cabal view
@@ -1,5 +1,5 @@ name: data-extra-version: 2.5.0+version: 2.5.1 synopsis: Extra utilities for working on Data.* types. description: Extra utilities for working on Data.* types. license: BSD3
src/Data/Bool/Extra.hs view
@@ -5,10 +5,10 @@ ,cond) where --- | An if/else condition on the given value.+-- | bool false true p = if p then true else false bool :: a -> a -> Bool -> a bool false true p = if p then true else false --- | An if/else condition on the given value.+-- | cond false true p v = if p v then true v else false v cond :: (a -> b) -> (a -> b) -> (a -> Bool) -> a -> b cond false true p v = if p v then true v else false v