https://github.com/ndmitchell/safe
Last synced: about 1 month ago
Repository metadata:
Haskell library for safe (pattern match free) functions
- Host: GitHub
- URL: https://github.com/ndmitchell/safe
- Owner: ndmitchell
- License: other
- Created: 2013-10-11T10:27:15.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-02-04T16:44:09.000Z (11 months ago)
- Last Synced: 2024-09-06T22:11:49.079Z (4 months ago)
- Language: Haskell
- Size: 153 KB
- Stars: 45
- Watchers: 4
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.txt
- License: LICENSE
Owner metadata:
- Name: Neil Mitchell
- Login: ndmitchell
- Email:
- Kind: user
- Description: Haskell programmer. All code is open source and licensed by me, not my employer. All views are my own.
- Website: https://ndmitchell.com
- Location: Cambridge, UK
- Twitter: ndm_haskell
- Company:
- Icon url: https://avatars.githubusercontent.com/u/1651197?u=2a7f401a0bc6c1e722d5fbecc923715861c4567c&v=4
- Repositories: 135
- Last Synced at: 2023-04-10T06:01:38.293Z
- Profile URL: https://github.com/ndmitchell
- Sponsor URL:
Committers metadata
Last synced: about 1 month ago
Total Commits: 217
Total Committers: 14
Avg Commits per committer: 15.5
Development Distribution Score (DDS): 0.097
Commits in past year: 7
Committers in past year: 1
Avg Commits per committer in past year: 7.0
Development Distribution Score (DDS) in past year: 0.0
Name | Commits | |
---|---|---|
Neil Mitchell | n****l@g****m | 196 |
Daniel Mendler | m****l@d****e | 4 |
Tebello Thejane | z****s@g****m | 4 |
TAKAHASHI Yuto | y****v@g****m | 2 |
rbasso | r****o@s****t | 2 |
Adam Bergmark | a****m@b****l | 1 |
Andrés Sicard-Ramírez | a****r@e****o | 1 |
Ben Boeckel | m****f@g****m | 1 |
Christopher League | l****e@c****t | 1 |
Daniel Schüssler | d****s@c****g | 1 |
William Yao | w****h@g****m | 1 |
Yuval Langer | y****r@g****m | 1 |
jxv | j****s@h****m | 1 |
Felix Yan | f****s@a****g | 1 |
Issue and Pull Request metadata
Last synced: about 1 month ago
Package metadata
- Total packages: 1
-
Total downloads:
- hackage: 212,725 total
- Total docker downloads: 89
- Total dependent packages: 111
- Total dependent repositories: 1,812
- Total versions: 23
- Total maintainers: 1
hackage: 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.
- Homepage: https://github.com/ndmitchell/safe#readme
- Licenses: BSD-3-Clause
- Latest release: 0.3.21 (published 11 months ago)
- Last Synced: 2024-11-11T03:11:18.010Z (about 1 month ago)
- Versions: 23
- Dependent Packages: 111
- Dependent Repositories: 1,812
- Downloads: 212,725 Total
- Docker Downloads: 89
-
Rankings:
- Dependent repos count: 0.288%
- Dependent packages count: 0.328%
- Downloads: 0.458%
- Docker downloads count: 1.288%
- Average: 4.244%
- Forks count: 11.263%
- Stargazers count: 11.84%
- Maintainers (1)
Dependencies
- base >=4.8 && <5
- QuickCheck * test
- base * test
- deepseq * test
- safe * test
- actions/cache v2 composite
- actions/checkout v2 composite
- haskell/actions/setup v2 composite
- ndmitchell/neil master composite