Created
November 15, 2015 17:04
-
-
Save teh/d267ffe0c3bc767dbe09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- NO ! | |
record :: (Show a, Show label, MonadIO m) => label -> Pipe a a m () | |
record label = do | |
x <- await | |
print (label, x) | |
yield x | |
-- yes: | |
record :: (Show a, Show label, MonadIO m) => label -> Pipe a a m () | |
record label = do | |
x <- await | |
print (label, x) | |
yield x | |
record label |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment