Skip to content

Commit 4872aa5

Browse files
authored
Merge pull request #74 from shlok/patch-1
fix incorrect type signature in toList doc
2 parents 5bec00e + be6653c commit 4872aa5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Streaming/Prelude.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2064,7 +2064,7 @@ toList_ = fold_ (\diff a ls -> diff (a: ls)) id (\diff -> diff [])
20642064

20652065
{-| Convert an effectful 'Stream' into a list alongside the return value
20662066
2067-
> mapped toList :: Stream (Stream (Of a)) m r -> Stream (Of [a]) m
2067+
> mapped toList :: Stream (Stream (Of a) m) m r -> Stream (Of [a]) m r
20682068
20692069
Like 'toList_', 'toList' breaks streaming; unlike 'toList_' it /preserves the return value/
20702070
and thus is frequently useful with e.g. 'mapped'

0 commit comments

Comments
 (0)