
Maur____cio
About this teste code:
module Main (main) where { import Foreign hiding (unsafePerformIO,Foreign.Ptr,Data.Bits,) ; blo = xor 10 10 :: Int ; main = return () }
You're only hiding the typeclass Data.Bits, not the function xor. To do that, you have to write import Foreign hiding (unsafePerformIO,Data.Bits(..)) Generally, I'd use import Foo(bar, Baz, Quux(..)) as F (or even using "qualified") instead of using "hiding", it may be more verbose but is way less confusing. Actually, I usually just write import qualified Foo as F and don't ever have to worry about name clashes. -- (c) this sig last receiving data processing entity. Inspect headers for copyright history. All rights reserved. Copying, hiring, renting, performance and/or quoting of this signature prohibited.