Library proposal: Add System.Info.isWindows
igloo at earth.li
Thu Aug 16 08:51:29 EDT 2007
On Thu, Aug 16, 2007 at 02:05:30AM +0100, Duncan Coutts wrote:
> On Thu, 2007-08-16 at 01:39 +0100, Ian Lynagh wrote:
> > On Thu, Aug 16, 2007 at 01:24:05AM +0100, Duncan Coutts wrote:
> > >
> > > Yes, as Issaac suggests perhaps we should drop the String parameter to
> > > OtherOS since it tells you nothing useful.
> > You can match on
> > OtherOS "BeOS"
> > while you wait for the BeOS alternative to be added, although you do
> > need a dash of CPP to support both old and new compilers once it has
> > been added.
> Hmm, but how is the base lib going to be set up to return OtherOS
> "BeOS"? This would have to be done during porting, wouldn't it be just
> as easy for said porter to add BeOS to the OSType enumeration?
I was thinking of uname output, but it's true that GHC at least will
just fail if it doesn't recognise the platform. I'm not sure about the
More information about the Libraries