protolude-0.3.0: A small prelude.
Safe Haskell Safe
Language Haskell2010

Protolude.Safe

Documentation

headDef :: a -> [a] -> a Source #

initDef :: [a] -> [a] -> [a] Source #

tailDef :: [a] -> [a] -> [a] Source #

lastDef :: a -> [a] -> a Source #

foldr1May :: (a -> a -> a) -> [a] -> Maybe a Source #

foldl1May :: (a -> a -> a) -> [a] -> Maybe a Source #

foldl1May' :: (a -> a -> a) -> [a] -> Maybe a Source #

maximumDef :: Ord a => a -> [a] -> a Source #

minimumDef :: Ord a => a -> [a] -> a Source #

atDef :: a -> [a] -> Int -> a Source #