Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created November 16, 2017 18:45
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/316c44cee15f4bab0e266e754815de3a to your computer and use it in GitHub Desktop.
Save deque-blog/316c44cee15f4bab0e266e754815de3a to your computer and use it in GitHub Desktop.
data IOSpec : Type -> Type where
Pure : a -> IOSpec a
Bind : IOSpec a -> (a -> IOSpec b) -> IOSpec b
WriteLine : String -> IOSpec ()
ReadLine : IOSpec String
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment