
15 Aug
2007
15 Aug
'07
10:40 a.m.
Hi By modifying your proposal ever so slightly (and probably as you intended anyway):
data OSFlavour = Linux | Windows | MacOS | BSD | Solaris | Other String deriving Eq
(who wants to add an Ord instance? then we can really debate whether Windows > Linux or vice versa) Now we have (== Windows) which is only a few additional characters over isWindows, so is quite sufficient. Adding any further fields to the Windows constructor would destroy this nice property. Thanks Neil