forked from orion/obsidian
445 B
445 B
Adds the pure
Functions to Apply, allowing arbitrary values to be wrapped in a Functor.
class Apply f <= Applicative f where
pure :: forall a. a -> f a
Examples
pure a
in various types:
type | equivalent to |
---|---|
Array | [a] |
List | Cons a |
Maybe | Just a |
Either | Right a |
Effect | () => a more or less |
Aff | Promise.resolve(a) more or less |