mirror of
https://github.com/composewell/streamly.git
synced 2024-09-20 16:08:20 +03:00
fix example
This commit is contained in:
parent
9eb7449ba5
commit
2d3ccadb5d
@ -1,7 +1,6 @@
|
||||
import Data.List (sum)
|
||||
import Asyncly
|
||||
import Asyncly.Prelude
|
||||
import Asyncly.Prelude as A
|
||||
|
||||
main = do
|
||||
xs <- toList $ serially $ forEachWith (<|) [1..100] $ \x -> return (x * x)
|
||||
print . sum $ xs
|
||||
s <- A.sum $ serially $ forEachWith (<|) [1..100] $ \x -> return (x * x)
|
||||
print s
|
||||
|
Loading…
Reference in New Issue
Block a user