Safe wrappers for partial list functions, supporting MonadThrow.

LTS Haskell 22.29:
Stackage Nightly 2024-07-19:
Latest on Hackage:

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-,1111

Module documentation for

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.