@@ -54,12 +54,10 @@ traversed = wander traverse
54
54
55
55
-- | Turn a pure profunctor `Traversal` into a `lens`-like `Traversal`.
56
56
traverseOf
57
- :: forall f s t a b
58
- . Applicative f
59
- => Optic (Star f ) s t a b -> (a -> f b ) -> s -> f t
57
+ :: forall f s t a b . Optic (Star f ) s t a b -> (a -> f b ) -> s -> f t
60
58
traverseOf = under Star
61
59
62
- -- | Sequence the foci of a `Traversal` , pulling out an `Applicative` effect.
60
+ -- | Sequence the foci of an optic , pulling out an " effect" .
63
61
-- | If you do not need the result, see `sequenceOf_` for `Fold`s.
64
62
-- |
65
63
-- | `sequenceOf traversed` has the same result as `Data.Traversable.sequence`:
@@ -83,11 +81,8 @@ traverseOf = under Star
83
81
-- | [0.15556037108154985,0.28500369615270515]
84
82
-- | unit
85
83
-- | ```
86
-
87
84
sequenceOf
88
- :: forall f s t a
89
- . Applicative f
90
- => Optic (Star f ) s t (f a ) a -> s -> f t
85
+ :: forall f s t a . Optic (Star f ) s t (f a ) a -> s -> f t
91
86
sequenceOf t = traverseOf t identity
92
87
93
88
-- | Tries to map over a `Traversal`; returns `empty` if the traversal did
@@ -134,8 +129,7 @@ elementsOf tr pr = iwander \f ->
134
129
-- | Turn a pure profunctor `IndexedTraversal` into a `lens`-like `IndexedTraversal`.
135
130
itraverseOf
136
131
:: forall f i s t a b
137
- . Applicative f
138
- => IndexedOptic (Star f ) i s t a b
132
+ . IndexedOptic (Star f ) i s t a b
139
133
-> (i -> a -> f b )
140
134
-> s
141
135
-> f t
@@ -144,8 +138,7 @@ itraverseOf t = under Star (t <<< Indexed) <<< uncurry
144
138
-- | Flipped version of `itraverseOf`.
145
139
iforOf
146
140
:: forall f i s t a b
147
- . Applicative f
148
- => IndexedOptic (Star f ) i s t a b
141
+ . IndexedOptic (Star f ) i s t a b
149
142
-> s
150
143
-> (i -> a -> f b )
151
144
-> f t
0 commit comments