We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96069c9 commit 8692779Copy full SHA for 8692779
test/Main.purs
@@ -56,11 +56,11 @@ stateTest = evalState go (Tuple 4 ["Foo", "Bar"]) where
56
go = Tuple <$> zoom _1 get <*> zoom (_2 <<< traversed) get
57
58
--test cloning of indexed lenses
59
-cloneTest :: Tuple Int Int
60
-cloneTest = iover (cloneIndexedLens i_2) (+) (Tuple 1 2)
+cloneTest :: Tuple Int (Tuple Int Int)
+cloneTest = iover (cloneIndexedLens i_2) Tuple (Tuple 1 2)
61
62
-i_2 :: forall i a b. IndexedLens i (Tuple i a) (Tuple i b) a b
63
-i_2 = ilens id \(Tuple i _) b -> Tuple i b
+i_2 :: forall a b c. IndexedLens Int (Tuple a b) (Tuple a c) b c
+i_2 = ilens (\(Tuple _ b) -> Tuple 0 b) (\(Tuple a _) b -> Tuple a b)
64
65
main :: forall e. Eff (console :: CONSOLE | e) Unit
66
main = do
0 commit comments