relude is a safe, performant, user-friendly and lightweight Haskell standard library. The default Prelude is not perfect and doesn’t always satisfy one’s needs. At this stage, you may want to try an alternative prelude library. relude has some strong goals and principles that it sticks to. That principles define the library's decisions and might tell you more about the priorities of the library. You can be more productive with a “non-standard” standard library, and relude helps you with writing safer and more efficient code faster. Usage of partial functions can lead to unexpected bugs and runtime exceptions in pure code. The types of partial functions lie about their behaviour. And even if it is not always possible to rely only on total functions, relude strives to encourage best-practices and reduce the chances of introducing a bug.
Features
- We prefer Text over String, use space-leaks-free functions
- We do not force users of relude to stick to any specific lens or text formatting or logging library
- We want to bring commonly used types and functions into scope, and make available functions easier to use
- Anyone should be able to quickly migrate to relude
- Haddock for every function with examples tested by doctest
- Functions like liftIO, fromMaybe, sortWith are available by default as well