
15 Aug
2007
15 Aug
'07
11:49 a.m.
On Wed, Aug 15, 2007 at 03:40:56PM +0100, Neil Mitchell wrote:
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)
We probably ought to have one, because sooner or later someone is bound to want to use OSFlavour as a map key or something. And Show, Read, Data and Typeable too. Thanks Ian