Compound data type: Difference between revisions
Content added Content deleted
(→{{header|Groovy}}: cleanup) |
|||
Line 478: | Line 478: | ||
===Tagged Type=== |
===Tagged Type=== |
||
This is special case of algebraic data type above with only one constructor. |
This is a special case of the algebraic data type above with only one constructor. |
||
data Point = Point Integer Integer |
data Point = Point Integer Integer |
||
instance Show Point where |
instance Show Point where |