Skip to content

Instantly share code, notes, and snippets.

@tranma
Last active July 20, 2016 01:18
Show Gist options
  • Save tranma/3fcfd56d9a9089571e48974df9d9a989 to your computer and use it in GitHub Desktop.
Save tranma/3fcfd56d9a9089571e48974df9d9a989 to your computer and use it in GitHub Desktop.
Haskell handle IO cheatsheet
Type State Function What to expect
Unix pipe Open, Empty ByteString.hGetContents (strict) Blocks until state changes
Unix pipe Closed ByteString.hGetContents (strict) Runtime exception: "handle is closed"
File ... ... ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment