[project @ 2001-07-03 11:37:49 by simonmar]
[ghc-base.git] / Data / Word.hs
1 {-# OPTIONS -fno-implicit-prelude #-}
2 -----------------------------------------------------------------------------
3 -- 
4 -- Module      :  
5 -- Copyright   :  (c) The University of Glasgow 2001
6 -- License     :  BSD-style (see the file libraries/core/LICENSE)
7 -- 
8 -- Maintainer  :  libraries@haskell.org
9 -- Stability   :  experimental
10 -- Portability :  portable
11 --
12 -- $Id: Word.hs,v 1.2 2001/07/03 11:37:50 simonmar Exp $
13 --
14 -- Sized unsigned integer types.
15 --
16 -----------------------------------------------------------------------------
17
18 module Data.Word
19         ( Word
20         , Word8
21         , Word16
22         , Word32
23         , Word64
24         -- instances: Eq, Ord, Num, Bounded, Real, Integral, Ix, Enum, Read,
25         -- Show, Bits, CCallable, CReturnable (last two are GHC specific.)
26         ) where
27
28 #ifdef __GLASGOW_HASKELL__
29 import GHC.Word
30 #endif
31
32 import Data.Dynamic
33
34 #include "Dynamic.h"
35 INSTANCE_TYPEABLE0(Word8,word8Tc, "Word8" )
36 INSTANCE_TYPEABLE0(Word16,word16Tc,"Word16")
37 INSTANCE_TYPEABLE0(Word32,word32Tc,"Word32")
38 INSTANCE_TYPEABLE0(Word64,word64Tc,"Word64")