
19 Aug
2004
19 Aug
'04
4:49 p.m.
Hi! I have following code: import Data.Bits xcomp :: Int -> Int -> Int xcomp a m = (xor a (complement m)) which compiles fine under GHC. However hugs does not like it, since they intentionally did not do: --instance Bits Int How can I resolve this to have this code work under GHC and hugs? Sincerely, Vadim -- "La perfection est atteinte non quand il ne reste rien a ajouter, mais quand il ne reste rien a enlever." (Antoine de Saint-Exupery)