X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FWord.hs;h=e3a1ab9f7a7004679a3bbbb1ed575952aba2ee33;hb=de2b563a240bafc20b656729d1ecde0c890d22da;hp=3bcc8a76c5708f26c2b8e505b4c6e39cb14fabc6;hpb=be6e35beee0026910c157d6f91bcaa62d08e42c9;p=ghc-base.git diff --git a/Data/Word.hs b/Data/Word.hs index 3bcc8a7..e3a1ab9 100644 --- a/Data/Word.hs +++ b/Data/Word.hs @@ -1,4 +1,4 @@ -{-# OPTIONS -fno-implicit-prelude #-} +{-# OPTIONS_GHC -fno-implicit-prelude #-} ----------------------------------------------------------------------------- -- | -- Module : Data.Word @@ -33,6 +33,12 @@ import GHC.Word import Hugs.Word #endif +#ifdef __NHC__ +import NHC.FFI (Word8, Word16, Word32, Word64) +import NHC.SizedTypes (Word8, Word16, Word32, Word64) -- instances of Bits +type Word = Word32 +#endif + {- $notes * All arithmetic is performed modulo 2^n, where n is the number of