[Haskell-cafe] hugs, ghc portability

Alastair Reid alastair at reid-consulting-uk.ltd.uk
Fri Aug 20 05:46:58 EDT 2004

> xcomp :: Int -> Int -> Int
> xcomp a m = (xor a (complement m))

> How can I resolve this to have this code work under GHC
> and hugs?

Use Foreign.Int32 instead of Int.

Alastair Reid

More information about the Haskell-Cafe mailing list