how is this implemented

1998-02-05 Thread Marc van Dongen=
Dear ghc guru's, Could somebody tell me how (==) :: Integer - Integer - Bool is implemented in ghc? Is this done as (==) a b = (==) (a - b) 0 or is this done by calling some C-function which compares two integers? The reason why I want to know is that I have a function which does subtraction

Re: how is this implemented

1998-02-05 Thread Simon Marlow
Marc van Dongen= [EMAIL PROTECTED] writes: Could somebody tell me how (==) :: Integer - Integer - Bool is implemented in ghc? Is this done as (==) a b = (==) (a - b) 0 or is this done by calling some C-function which compares two integers? It's done by calling mpz_cmp (from the GNU mp