Created
April 17, 2018 15:32
-
-
Save deque-blog/5766aac86d99612633409277d8b51f4a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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