Dutch national flag problem: Difference between revisions
Content deleted Content added
m added signature to isDutch |
m deleted first line of the entry text as suggested by Paddy3118 |
||
Line 265:
</pre>
=={{header|Haskell}}==
With the Color data type we take care that no other values than Red, White and Blue can be used.
The "deriving" clause is a key aspect: We want Haskell to make Color automatically an instance of the classes Show, Eq, Ord and Enum.
|