Skip to content

Instantly share code, notes, and snippets.

@deque-blog

deque-blog/echo_good_2.idr

Last active Oct 26, 2017
Embed
What would you like to do?
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