Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- invalidArg' :: Show a => String -> [a] -> Either String b
- invalidArg :: Show a => String -> [a] -> b
Documentation
invalidArg' :: Show a => String -> [a] -> Either String b Source #
Function to return an error case when an unappropriate arguemnt is passed to some function or when some pattern match issue occurs
invalidArg :: Show a => String -> [a] -> b Source #
Function to throw an error when an unappropriate arguemnt is passed to some function or when some pattern match issue occurs