Skip to content

Commit 8157482

Browse files
Add example of f <$> arg1 <*> arg2 <*> ... <*> argN to Apply docs
1 parent 7f4e169 commit 8157482

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Control/Apply.purs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ import Control.Category (identity)
2626
-- | the function application operator `($)` to arguments wrapped with the
2727
-- | type constructor `f`.
2828
-- |
29+
-- | Put differently...
30+
-- | ```
31+
-- | foo =
32+
-- | functionTakingNArguments <$> computationProducingArg1
33+
-- | <*> computationProducingArg2
34+
-- | <*> ...
35+
-- | <*> computationProducingArgN
36+
-- | ```
37+
-- |
2938
-- | Instances must satisfy the following law in addition to the `Functor`
3039
-- | laws:
3140
-- |

0 commit comments

Comments
 (0)