Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active November 6, 2017 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/fcbca3c73f86bd1ef71fc824528ee74a to your computer and use it in GitHub Desktop.
Save deque-blog/fcbca3c73f86bd1ef71fc824528ee74a to your computer and use it in GitHub Desktop.
-- Reading a line (readLine)
ReadLine (\s => Pure s)
-- Printing a line (\x => prnLine x)
\x => WriteLine x (Pure ())
-- Chaining them together (printing the line read)
ReadLine (\x => WriteLine x (Pure ()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment