A library for interfacing with the refheap (https:www.refheap.com) API.
- data Success
- getPaste :: PasteID -> IO (Either Error Success)
- createPaste :: Contents -> Bool -> Language -> Maybe Auth -> IO (Either Error Success)
- deletePaste :: PasteID -> Auth -> IO (Either Error Success)
- forkPaste :: PasteID -> Auth -> IO (Either Error Success)
Result of as successful request (either empty or a paste).
Operation was successful, but response is empty.
Get a paste from refheap. Will return IO Nothing if the paste doesn't exist.
Create a new paste.
Delete a paste. If it fails for some reason, will return the error message from refheap's API wrapped in Maybe, otherwise Nothing.