Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created April 17, 2018 15:32
Show Gist options
  • Save deque-blog/5766aac86d99612633409277d8b51f4a to your computer and use it in GitHub Desktop.
Save deque-blog/5766aac86d99612633409277d8b51f4a to your computer and use it in GitHub Desktop.
class Fetchable req where
fetch :: req a -> IO (MVar a)
type Cachable req a = (Eq (req a), Hashable (req a))
type IRequest req a = (Fetchable req, Cachable req a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment