purescript-control
purescript-control copied to clipboard
Common control classes and utility functions
Comonad has Monoid function instance to match instance for Semigroups in Control.Extend
```purescript instance lazyEffect :: Lazy (Effect a) where defer = (u >>= _) where u = pure unit ```
Alternative has this distributivity law: * `(f g) x == (f x) (g x)` However, this law rules out a few instances, most notably "effectful" ones like Effect or Aff....
The Alt documentation says: > The Alt type class identifies an associative operation on a type constructor. It is similar to Semigroup, except that it applies to types of kind...
Seems like taking the optional array argument in the map callback is unnecessary (unless there's some performance reason for writing it this way). @i-am-tom for clarification. I think this simplified...