Skip to content

Commit 18be95f

Browse files
committed
Fix tests
1 parent 22df2c2 commit 18be95f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Main.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ bar :: forall a b r. Lens { bar :: a | r } { bar :: b | r } a b
1717
bar = lens _.bar (_ { bar = _ })
1818

1919
_Just :: forall a b r. Prism (Maybe a) (Maybe b) a b
20-
_Just = prism Just (maybe (Right Nothing) Left)
20+
_Just = prism Just (maybe (Left Nothing) Right)
2121

2222
type Foo a = { foo :: Maybe { bar :: Array a } }
2323

@@ -27,4 +27,4 @@ doc = { foo: Just { bar: [ "Hello", " ", "World" ]} }
2727
bars :: forall a b. Traversal (Foo a) (Foo b) a b
2828
bars = foo <<< _Just <<< bar <<< traverse
2929

30-
main = print $ viewAll bars id doc
30+
main = print $ view bars doc

0 commit comments

Comments
 (0)