Skip to content

Commit 8692779

Browse files
committed
Fix test
1 parent 96069c9 commit 8692779

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/Main.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ stateTest = evalState go (Tuple 4 ["Foo", "Bar"]) where
5656
go = Tuple <$> zoom _1 get <*> zoom (_2 <<< traversed) get
5757

5858
--test cloning of indexed lenses
59-
cloneTest :: Tuple Int Int
60-
cloneTest = iover (cloneIndexedLens i_2) (+) (Tuple 1 2)
59+
cloneTest :: Tuple Int (Tuple Int Int)
60+
cloneTest = iover (cloneIndexedLens i_2) Tuple (Tuple 1 2)
6161

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
62+
i_2 :: forall a b c. IndexedLens Int (Tuple a b) (Tuple a c) b c
63+
i_2 = ilens (\(Tuple _ b) -> Tuple 0 b) (\(Tuple a _) b -> Tuple a b)
6464

6565
main :: forall e. Eff (console :: CONSOLE | e) Unit
6666
main = do

0 commit comments

Comments
 (0)