[nhc-bugs] cygwin, java and cygpath (and some arithmetic)

Malcolm Wallace Malcolm.Wallace@cs.york.ac.uk
Fri, 1 Jun 2001 14:01:14 +0100


> [nhc98-1.04, built with gcc on cygwin/NT4]
> 
> 1. Unless java has been compiled with cygwin (not the standard case:-),
>   java on windows seems to need its paths translated from cygwin's unix
>   world to plain windows world.

Thank you for the fix.  I have added a patch to the nhc98 download page.

> 2. I do not understand the order in which nhc-compiled code evaluates
>   arithmetic expressions.

Haskell does not specify the order of evaluation in this case.

    Hugs -> a a a a
    ghc  -> a a a a
    hbc  -> b b a a
    nhc98-> a a b b

I'm not even sure that ML specifies the order - since I believe
SML/NJ would give you all "a"s and O'Caml all "b"s.  Personally,
I'm quite happy with the underspecification here, and in any case
it is only likely to be encountered by people who like programming
with exceptions.

> Is this effect intensional?

No.  It just happened that way, in nhc98 at least.

> 3. Has anyone had success using hi under cygwin?

Apparently the problem is with any hi built with gcc, not just
on cygwin.  (See other messages on nhc-bugs.)  We will make a new
distribution package soon to correct this (and other) bugs.

Regards,
    Malcolm