packages feed

lists 0.4.0 → 0.4.1

raw patch · 2 files changed

+2/−2 lines, 2 files

Files

lists.cabal view
@@ -1,5 +1,5 @@ name:                lists-version:             0.4.0+version:             0.4.1 synopsis:            Functions for dealing with lists description:         Functions for dealing with lists license:             BSD3
src/Lists.hs view
@@ -45,7 +45,7 @@ -- | When a list is non-null, pass it to a function, otherwise use the -- default. list :: b -> ([a] -> b) -> [a] -> b-list nil cons = cond (const nil) cons null+list nil cons = cond (const nil) cons (not . null)  -- | Get the union of the given lists. unionOf :: (Eq a) => [[a]] -> [a]