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.
the case of 'tail'.
This package is divided into three modules:
"Safe" contains safe variants of 'Prelude' and 'Data.List' functions.
"Safe.Foldable" contains safe variants of 'Foldable' functions.
"Safe.Exact" creates crashing versions of functions like 'zip' (errors if the
lists are not equal) and 'take' (errors if there are not enough elements), then wraps them to provide safe variants.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
0.3.21-150500.3.3.1 info | SUSE-SLE-Module-Packagehub-Subpackages-15-SP5-2024-572 | 2024-02-21 | 15 SP5 Subpackages Updates |
|
|
0.3.19-bp154.1.12 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
0.3.18-bp153.1.20 info | GA Release | 2021-04-08 | 15 SP3 |
|
|
0.3.18-bp152.1.16 info | GA Release | 2020-06-16 | 15 SP2 |
|
|
0.3.17-bp151.2.2 info | GA Release | 2019-07-17 | 15 SP1 |
|
|
0.3.17-bp151.1.12 info | GA Release | 2019-05-31 | 15 SP1 |
|
|
0.3.15-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|
0.3.9-2.5 info | 5585 | 2016-09-14 | 12 GA-SP5 |
|
|
0.3.9-2.12 info | 5585 | 2016-09-14 | 12 GA-SP5 |
|
|