removed
This commit is contained in:
parent
2540010192
commit
d48ae1c063
1 changed files with 0 additions and 20 deletions
|
@ -1,20 +0,0 @@
|
|||
[[!comment format=mdwn
|
||||
username="https://www.google.com/accounts/o8/id?id=AItOawnq-RfkVpFN15SWvQ2lpSGAi0XpNQuLxKM"
|
||||
nickname="Yuval"
|
||||
subject="What about safe?"
|
||||
date="2014-07-06T10:44:05Z"
|
||||
content="""
|
||||
https://hackage.haskell.org/package/safe
|
||||
|
||||
> A library wrapping Prelude/Data.List functions that can throw exceptions, such as head and !!. Each unsafe function has up to four variants, e.g. with tail:
|
||||
>
|
||||
> tail :: [a] -> [a], raises an error on tail [].
|
||||
|
||||
> tailMay :: [a] -> Maybe [a], turns errors into Nothing.
|
||||
|
||||
> tailDef :: [a] -> [a] -> [a], takes a default to return on errors.
|
||||
|
||||
> tailNote :: String -> [a] -> [a], takes an extra argument which supplements the error message.
|
||||
|
||||
> tailSafe :: [a] -> [a], returns some sensible default if possible, [] in the case of tail.
|
||||
"""]]
|
Loading…
Add table
Reference in a new issue