Skip to content

Instantly share code, notes, and snippets.

@Akii
Created November 5, 2018 21:33
Show Gist options
  • Save Akii/9660ea00aac1599267d014d22ac158e0 to your computer and use it in GitHub Desktop.
Save Akii/9660ea00aac1599267d014d22ac158e0 to your computer and use it in GitHub Desktop.
import Pipes
import qualified Pipes.Prelude as P
p1 = each [1,2,3 :: Int]
p2 = each [4,5,6 :: Int]
main :: IO ()
main = do
runEffect ((p1 <> p2) >-> P.print)
{-
main
1
2
3
4
5
6
-}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment