Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active July 4, 2017 15:35
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/063e4b45c6fae2008426fbe4cb1aeafe to your computer and use it in GitHub Desktop.
Save deque-blog/063e4b45c6fae2008426fbe4cb1aeafe to your computer and use it in GitHub Desktop.
-- Cannot do anything but pure computations
reserve :: ReservationRequest -> ConfirmedReservation
-- Can do anything it wants, such as sending a HTTP request
reverseWithIO :: ReservationRequest -> IO ConfirmedReservation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment