relude: Custom prelude from Kowainik
Avoid all partial functions (like
head :: [a] -> a). The types of partial functions lie about their behavior and usage of such functions can lead to the unexpected bugs. Though you can still use some unsafe functions from
Relude.Unsafemodule, but they are not exported by default.
Type-safety. We like to make invalid states unrepresantable. And if it's possible to express this concept through the types then we will do it. Example:
whenNotNull :: Applicative f => [a] -> (NonEmpty a -> f ()) -> f ()
String, use spaceleak-free functions (like our custom
Minimalism (low number of dependencies). We don't force users of
reludeto stick to some specific lens or text formatting or logging library.
Convenience (like lifted to
MonadIOfunctions, more reexports). But we want to bring common types and functions (like
bytestrng) into scope because they are used in almost every application anyways.
Provide excellent documentation.
Migration guide from
Haddock with examples for (almost) every function (all examples are tested with `doctest`)
Documentation regarding internal module structure)
User-friendliness. Ability to quickly migrate to
reludeif you're familiar with the common libraries like
Exploration. Experiment with new ideas and proposals without introducing breaking changes.
[Skip to Readme]
|Versions [faq]||0.1.0, 0.1.1, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0.0, 0.7.0.0|
|Dependencies||base (>=4.9 && <5), bytestring, containers, deepseq, ghc-prim (>=0.4.0.0), hashable, mtl, stm, text, transformers, unordered-containers, utf8-string [details]|
|Copyright||2016 Stephen Diehl, 2016-2018 Serokell, 2018 Kowainik|
|Author||Stephen Diehl, @serokell, Kowainik|
|Revised||Revision 1 made by vrom911 at 2018-08-20T10:12:30Z|
|Source repo||head: git clone email@example.com:kowainik/relude.git|
|Uploaded||by shersh at 2018-08-19T06:25:39Z|
|Distributions||Arch:0.7.0.0, LTSHaskell:0.4.0, NixOS:0.7.0.0, Stackage:0.5.0|
|Downloads||6488 total (212 in the last 30 days)|
|Rating||2.0 (votes: 1) [estimated by Bayesian average]|
Docs available [build log]
Last success reported on 2018-08-19 [all 1 reports]
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
For package maintainers and hackage trustees