Skip to content

Commit 1b695c2

Browse files
committed
Add functional dependency for At
1 parent 431c583 commit 1b695c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Lens/At.purs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import Data.Newtype (unwrap)
1515
import Data.Lens (Lens', lens)
1616
import Data.Lens.Index (class Index)
1717

18-
class (Index m a b) <= At m a b where
18+
class Index m a b <= At m a b | m -> a, m -> b where
1919
at :: a -> Lens' m (Maybe b)
2020

2121
instance atIdentity :: At (Identity a) Unit a where

0 commit comments

Comments
 (0)