Skip to content

Commit 8086d66

Browse files
committed
Added Choice superclass to Wander.
1 parent 4b8e618 commit 8086d66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Data/Lens/Internal/Wander.purs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ module Data.Lens.Internal.Wander where
55
import Prelude
66

77
import Data.Profunctor.Strong (Strong)
8+
import Data.Profunctor.Choice (Choice)
89
import Data.Profunctor.Star (Star(..), runStar)
910
import Data.Identity (Identity (..), runIdentity)
1011

1112
-- | Class for profunctors that support polymorphic traversals.
12-
class (Strong p) <= Wander p where
13+
class (Strong p, Choice p) <= Wander p where
1314
wander
1415
:: forall f s t a b. (forall f. (Applicative f) => (a -> f b) -> s -> f t)
1516
-> p a b -> p s t

0 commit comments

Comments
 (0)