File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,14 @@ Forwards co-Kleisli composition.
269269
270270Backwards co-Kleisli composition.
271271
272+ #### ` extend `
273+
274+ ``` purescript
275+ extend :: forall b a w. (Extend w) => (w a -> b) -> w a -> w b
276+ ```
277+
278+ An alias for ` (<<=) ` .
279+
272280#### ` duplicate `
273281
274282``` purescript
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ instance extendArr :: (Semigroup w) => Extend ((->) w) where
3535(=<=) :: forall b a w c . (Extend w ) => (w b -> c ) -> (w a -> b ) -> w a -> c
3636(=<=) f g w = f (g <<= w)
3737
38+ -- | An alias for `(<<=)`.
39+ extend :: forall b a w . (Extend w ) => (w a -> b ) -> w a -> w b
40+ extend = (<<=)
41+
3842-- | Duplicate a comonadic context.
3943-- |
4044-- | `duplicate` is dual to `Control.Bind.join`.
You can’t perform that action at this time.
0 commit comments