Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 4.2% on hackage.haskell.org
Top 0.5% downloads on hackage.haskell.org
Top 0.3% dependent packages on hackage.haskell.org
Top 0.3% dependent repos on hackage.haskell.org
Top 1.3% docker downloads on hackage.haskell.org

hackage.haskell.org : safe

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 :: [a] -> [a], raises an error on tail []. tailMay :: [a] -> Maybe [a], turns errors into Nothing. tailDef :: [a] -> [a] -> [a], takes a default to return on errors. tailNote :: String -> [a] -> [a], takes an extra argument which supplements the error message. tailSafe :: [a] -> [a], returns some sensible default if possible, [] 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.

Registry - Source - Homepage - JSON
purl: pkg:hackage/safe
Keywords: bsd3, library, unclassified
License: BSD-3-Clause
Latest release: 3 months ago
First release: almost 16 years ago
Dependent packages: 94
Dependent repositories: 1,812
Downloads: 209,895 total
Stars: 45 on GitHub
Forks: 11 on GitHub
Docker dependents: 1
Docker downloads: 16
Total Commits: 204
Committers: 14
Average commits per author: 14.571
Development Distribution Score (DDS): 0.103
More commit stats: commits.ecosyste.ms
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago

    Loading...
    Readme
    Loading...