Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Data.List.Extra
Description
Auxiliary functions for working with values of type '[]'.
Synopsis
- headEither :: [a] -> Either String a
- toHead :: (a -> a) -> [a] -> [a]
- toTail :: (a -> a) -> [a] -> [a]
- stripSuffix :: String -> String -> String
Documentation
headEither :: [a] -> Either String a Source #
Safely extract the head of a list.