safe-foldable

Safe wrappers for null-partial Foldable operations https://github.com/tejon/safe-foldable#readme

Version on this page:0.1.0.0
LTS Haskell 12.24:0.1.0.0
Stackage Nightly 2018-12-18:0.1.0.0
Latest on Hackage:0.1.0.0

See all snapshots safe-foldable appears in

MIT licensed by Theodore Lief Gannon
Maintained by tanuki@gmail.com

Module documentation for 0.1.0.0

There are no documented modules for this package.

safe-foldable

Provides defaulting and mayhap to safely wrap functions on Foldables that are partial with null data.

λ. minimum []
*** Exception: Prelude.minimum: empty list
λ. minimum [3,1,2]
1

λ. defaulting 0 minimum []
0
λ. defaulting 0 minimum [3,1,2]
1

λ. mayhap minimum []
Nothing
λ. mayhap minimum [3,1,2]
Just 1
Depends on 1 package:
Used by 1 package:
comments powered byDisqus