Closed treeowl closed 5 years ago
As I understand it, the ideal implementation would be
data Some tag = forall x. Some !(tag x)
but winning a newtype-like representation for efficiency. But to imitate this faithfully, matching on the Some constructor needs to force the contents.
newtype
Some
As I understand it, the ideal implementation would be
but winning a
newtype
-like representation for efficiency. But to imitate this faithfully, matching on theSome
constructor needs to force the contents.