Last active
October 26, 2017 16:08
-
-
Save deque-blog/fac9d7040b3fad1b81b51f68a9e93c2e 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
echo : IO () | |
echo = runEffect $ | |
stdinLn "in> " | |
.| takingWhile (/= "quit") | |
.| deduplicating -- Remove consecutive repeating calls | |
.| mapping ("out> " ++) | |
.| stdoutLn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment