tag:blogger.com,1999:blog-1777990983847811806.post6001247676342397403..comments2024-03-16T16:29:29.582-07:00Comments on Haskell for all: Shortcut fusion for pipesGabriella Gonzalezhttp://www.blogger.com/profile/01917800488530923694noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1777990983847811806.post-1537973008651138902014-12-31T09:01:24.418-08:002014-12-31T09:01:24.418-08:00You're right! Thanks for correcting that. :)You're right! Thanks for correcting that. :)Gabriella Gonzalezhttps://www.blogger.com/profile/01917800488530923694noreply@blogger.comtag:blogger.com,1999:blog-1777990983847811806.post-21620122567773219962014-12-28T21:16:37.725-08:002014-12-28T21:16:37.725-08:00typo in the "p >-> filter pred" ru...typo in the "p >-> filter pred" rule definition, I think it should be: <br /><br />for p (\y -> when (pred y) (yield y))<br /><br />thanks for this post! it made me want to work through a few hello worlds for your library.Firemawhttps://www.blogger.com/profile/17122738379500386620noreply@blogger.comtag:blogger.com,1999:blog-1777990983847811806.post-16900615318842290302014-04-24T15:56:38.635-07:002014-04-24T15:56:38.635-07:00I almost never use `(>>=)` in my code, even ...I almost never use `(>>=)` in my code, even if it would make code shorter. I prefer the way `do` notation looks.Gabriella Gonzalezhttps://www.blogger.com/profile/01917800488530923694noreply@blogger.comtag:blogger.com,1999:blog-1777990983847811806.post-16657964784194695922014-04-24T15:47:59.594-07:002014-04-24T15:47:59.594-07:00Sorry for necroing the comments on this post, but ...Sorry for necroing the comments on this post, but I'm wondering why you use nice (albeit non-standard) combinators for pipes and conduit, but the io-streams examples are written in clunky explicit style. For example, your "iostreams" example could be written as<br /><br />iostreams :: Int -> IO ()<br />iostreams n = S.fromList [1..n] >>= S.map (+1) >>= S.filter even >>= S.skipToEofUnknownhttps://www.blogger.com/profile/12757268515031054537noreply@blogger.com