Awesome
Batteries
:battery: A PureScript prelude with more features.
PureScript is a powerful language. Unfortunately the package ecosystem is excessively granular. That means it can take tens of lines of imports to accomplish trivial tasks. Batteries makes things better by giving you more functionality from a single import.
import Batteries
That's all there is to it!
If you want to see exactly what Batteries exports, check out the source. If it's missing something or including something it shouldn't, please open an issue!
The other way to use Batteries is to not import it. Instead, simply add it as a dependency and use the packages that it includes. In this way it is similar to purescript-base.
Batteries includes the following packages:
- aff
- arrays
- assert
- bifunctors
- catenable-lists
- console
- const
- contravariant
- control
- datetime
- debug
- distributive
- eff
- either
- enums
- exceptions
- exists
- foldable-traversable
- foreign
- free
- functions
- functor-coproducts
- generics
- globals
- identity
- inject
- integers
- invariant
- lazy
- lens
- lists
- maps
- math
- maybe
- monoid
- nullable
- parallel
- prelude
- profunctor
- proxy
- random
- refs
- semirings
- <s>sequences</s>
- sets
- st
- strings
- tailrec
- these
- transformers
- tuples
- unfoldable
- unsafe-coerce
- validation
To see the exact versions that Batteries depends on, look at the
bower.json
.