Safe wrappers for partial list functions, supporting MonadThrow.

LTS Haskell 16.3:
Stackage Nightly 2020-06-29:
Latest on Hackage:

See all snapshots listsafe appears in

Apache-2.0 licensed by Janos Tapolczai
Maintained by [email protected]

Module documentation for

This version can be pinned in stack with:[email protected]:066b02e56926b5bbdb68dec7e2f3b84c62c91898246abed3eb08006d94a41338,1111

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.

Depends on 2 packages(full list with versions):
Used by 1 package in lts-12.26(full list with versions):