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.
269
269
270
270
Backwards co-Kleisli composition.
271
271
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
+
272
280
#### ` duplicate `
273
281
274
282
``` purescript
Original file line number Diff line number Diff line change @@ -35,6 +35,10 @@ instance extendArr :: (Semigroup w) => Extend ((->) w) where
35
35
(=<=) :: forall b a w c . (Extend w ) => (w b -> c ) -> (w a -> b ) -> w a -> c
36
36
(=<=) f g w = f (g <<= w)
37
37
38
+ -- | An alias for `(<<=)`.
39
+ extend :: forall b a w . (Extend w ) => (w a -> b ) -> w a -> w b
40
+ extend = (<<=)
41
+
38
42
-- | Duplicate a comonadic context.
39
43
-- |
40
44
-- | `duplicate` is dual to `Control.Bind.join`.
You can’t perform that action at this time.
0 commit comments