Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active November 6, 2017 13:31
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/a6d6259785008d2ce738f9e4c50d9451 to your computer and use it in GitHub Desktop.
Save deque-blog/a6d6259785008d2ce738f9e4c50d9451 to your computer and use it in GitHub Desktop.
-- Read a line and return it
ReadLine (\x => Pure x)
-- Print a line "Hello" and return 5
WriteLine "Hello" (Pure 5)
-- Read a line and print it twice, and return 5
ReadLine (\x => WriteLine x (WriteLine x (Pure 5)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment