File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -95,11 +95,11 @@ Just f <*> Just x == Just (f x)
95
95
` Nothing ` values are left untouched:
96
96
97
97
``` purescript
98
- Just f <$ > Nothing == Nothing
99
- Nothing <$ > Just x == Nothing
98
+ Just f <* > Nothing == Nothing
99
+ Nothing <* > Just x == Nothing
100
100
```
101
101
102
- Combining ` Functor ` 's' ` <$> ` with ` Apply ` 's ` <*> ` can be used transform a
102
+ Combining ` Functor ` 's ` <$> ` with ` Apply ` 's ` <*> ` can be used transform a
103
103
pure function to take ` Maybe ` -typed arguments so ` f :: a -> b -> c `
104
104
becomes ` f :: Maybe a -> Maybe b -> Maybe c ` :
105
105
@@ -131,7 +131,7 @@ pure x :: Maybe _ == Just x
131
131
return x :: Maybe _ == Just x
132
132
```
133
133
134
- Combining ` Functor ` 's' ` <$> ` with ` Apply ` 's ` <*> ` and ` Applicative ` 's
134
+ Combining ` Functor ` 's ` <$> ` with ` Apply ` 's ` <*> ` and ` Applicative ` 's
135
135
` pure ` can be used to pass a mixture of ` Maybe ` and non-` Maybe ` typed
136
136
values to a function that does not usually expect them, by using ` pure `
137
137
for any value that is not already ` Maybe ` typed:
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ instance functorMaybe :: Functor Maybe where
68
68
-- | `Nothing` values are left untouched:
69
69
-- |
70
70
-- | ``` purescript
71
- -- | Just f <$ > Nothing == Nothing
72
- -- | Nothing <$ > Just x == Nothing
71
+ -- | Just f <* > Nothing == Nothing
72
+ -- | Nothing <* > Just x == Nothing
73
73
-- | ```
74
74
-- |
75
- -- | Combining `Functor`'s' `<$>` with `Apply`'s `<*>` can be used transform a
75
+ -- | Combining `Functor`'s `<$>` with `Apply`'s `<*>` can be used transform a
76
76
-- | pure function to take `Maybe`-typed arguments so `f :: a -> b -> c`
77
77
-- | becomes `f :: Maybe a -> Maybe b -> Maybe c`:
78
78
-- |
@@ -101,7 +101,7 @@ instance applyMaybe :: Apply Maybe where
101
101
-- | return x :: Maybe _ == Just x
102
102
-- | ```
103
103
-- |
104
- -- | Combining `Functor`'s' `<$>` with `Apply`'s `<*>` and `Applicative`'s
104
+ -- | Combining `Functor`'s `<$>` with `Apply`'s `<*>` and `Applicative`'s
105
105
-- | `pure` can be used to pass a mixture of `Maybe` and non-`Maybe` typed
106
106
-- | values to a function that does not usually expect them, by using `pure`
107
107
-- | for any value that is not already `Maybe` typed:
You can’t perform that action at this time.
0 commit comments