Library proposal: Add System.Info.isWindows

Ian Lynagh igloo at earth.li
Wed Aug 15 11:49:17 EDT 2007


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



More information about the Libraries mailing list