Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/minad/intro
Safe and minimal Haskell Prelude
https://github.com/minad/intro
haskell prelude safe
Last synced: 10 days ago
JSON representation
Safe and minimal Haskell Prelude
- Host: GitHub
- URL: https://github.com/minad/intro
- Owner: minad
- License: mit
- Created: 2016-12-22T14:40:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T11:52:52.000Z (about 4 years ago)
- Last Synced: 2024-05-02T00:31:10.233Z (6 months ago)
- Topics: haskell, prelude, safe
- Language: Haskell
- Homepage:
- Size: 311 KB
- Stars: 10
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Intro: Safe and minimal Haskell Prelude
[![Hackage](https://img.shields.io/hackage/v/intro.svg)](https://hackage.haskell.org/package/intro)
[![Build Status](https://secure.travis-ci.org/minad/intro.png?branch=master)](http://travis-ci.org/minad/intro)Intro is a modern Prelude which provides safe alternatives
for most of the partial functions and follows other
best practices, e.g., Text is preferred over String.
For String overloading the extension 'OverloadedStrings' should be used.
Container types and Monad transformers are provided.Most important - this Prelude tries to keep things simple and minimal.
This means it just reexports from base and commonly used libraries
and adds only very few additional functions.List of design decisions:
* Keep everything at one place
* Conservative extension over the base Prelude
* Rely only on common additional libraries
* Avoid writing custom functions
* Export everything explicitly to provide a stable interface and good documentation
* Export only total functions or provide safe alternatives (Very few exceptions like div etc.)
* Prefer Text over String, provide ConvertString and EncodeString
* Provide monad transformers
* Provide container types
* Prefer generic functions
* Debugging functions, like 'Intro.Trustworthy.trace' and 'undefined' are available but produce compile time warnings
* Replace error with panic
* Compatibility with unqualified import of Control.Lens and Optics