Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Detecting use cases for GADTs in OCaml. Parent comment
So you could define
data Request b where GET :: Headers -> Request () POST :: Headers -> body -> Request body
You could go further by typing the headers to recognize the type of body you're dealing with.
There are no comments on this comment yet.
So you could define
As the article says, building up your intuition is the hard bit.You could go further by typing the headers to recognize the type of body you're dealing with.