Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

1
  • OK. So I need to define everything in terms of :+: &c if I want to use generic classes, but what's {| ... |} (...)? I understand it's cases but I don't understand which cases I got. I think I understand {| a :+: b |} (Inr y) and {| Unit |} Unit but I don't understand {| a :+: b |} (1:b) and {| Unit |} bs. Two other questions: wouldn't all pattern matching over Lists break if I start to redefine List and is it even possible to redefine data types? Commented Mar 13, 2010 at 9:15