fix example

This commit is contained in:
Harendra Kumar 2017-10-30 07:50:08 +05:30
parent 9eb7449ba5
commit 2d3ccadb5d

View File

@ -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