Skip to content

Commit 1458aeb

Browse files
committed
Use viewAll in test
1 parent 9693d89 commit 1458aeb

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
@@ -22,9 +22,9 @@ _Just = prism Just (maybe (Right Nothing) Left)
2222
type Foo a = { foo :: Maybe { bar :: Array a } }
2323

2424
doc :: Foo String
25-
doc = { foo: Just { bar: [ "Hello", "World" ]} }
25+
doc = { foo: Just { bar: [ "Hello", " ", "World" ]} }
2626

2727
bars :: forall a b. Traversal (Foo a) (Foo b) a b
2828
bars = foo <<< _Just <<< bar <<< traverse
2929

30-
main = traverseOf bars log doc
30+
main = print $ viewAll bars id doc

0 commit comments

Comments
 (0)