Haskell library for safe (pattern match free) functions
Haskell
47
233 commits
updated Feb 4, 2024
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 [].Nothing.[] in 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.Haskell
100.0%
Haskell library for safe (pattern match free) functions
Haskell
47
233 commits
updated Feb 4, 2024
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 [].Nothing.[] in 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.Haskell
100.0%