Hi,

About this teste code:

module Main (main) where {
import Foreign hiding (unsafePerformIO,Foreign.Ptr,Data.Bits,) ;
blo = xor 10 10 :: Int ;
main = return ()
}

Data.Bits is in the 'hiding' list. According to
the syntax reference, this seems not to be allowed.
GHC allows it, but do allow following code to use
'xor' from Data.Bits. I think this is correct, since
'xor' was exported by Foreign unqualified, but does
'Data.Bits' in that list mean something or it's
just ignored?

Haskell syntax allows a comma at the end of names
to be imported or exported, like in the second
line. What does that mean?

Thanks,
Maurício

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to