listsafe

Safe wrappers for partial list functions, supporting MonadThrow.

https://github.com/ombocomp/listsafe

LTS Haskell 22.41:0.1.0.1
Stackage Nightly 2024-11-10:0.1.0.1
Latest on Hackage:0.1.0.1

See all snapshots listsafe appears in

Apache-2.0 licensed by Janos Tapolczai
Maintained by [email protected]
This version can be pinned in stack with:listsafe-0.1.0.1@sha256:066b02e56926b5bbdb68dec7e2f3b84c62c91898246abed3eb08006d94a41338,1111

Module documentation for 0.1.0.1

Depends on 2 packages(full list with versions):

Data.List includes a handful of partial functions that throw uncatchable exceptions when given empty lists. This package provides safe alternatives for such functions based on MonadThrow which can provide a variety of failure cases: Nothing, IOException, Left, etc.