Created
November 12, 2014 21:18
-
-
Save jroesch/10921d85f419320d7448 to your computer and use it in GitHub Desktop.
Using associated types to represent existentials
This file contains 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 Request where | |
data R | |
... | |
class Response where | |
data R | |
class (Request Req, Response Resp) => Http where | |
data Req | |
data Resp | |
... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment