[project @ 2001-06-28 14:15:04 by simonmar]
[packages/pretty.git] / Data / Int.hs
1 {-# OPTIONS -fno-implicit-prelude #-}
2 -----------------------------------------------------------------------------
3 --
4 -- Module : Data.Int
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 : non-portable
11 --
12 -- $Id: Int.hs,v 1.1 2001/06/28 14:15:02 simonmar Exp $
13 --
14 -- Sized Integer types.
15 --
16 -----------------------------------------------------------------------------
17
18 module Data.Int
19 ( Int8
20 , Int16
21 , Int32
22 , Int64
23 -- instances: Eq, Ord, Num, Bounded, Real, Integral, Ix, Enum, Read,
24 -- Show, Bits, CCallable, CReturnable (last two are GHC specific.)
25 ) where
26
27 #ifdef __GLASGOW_HASKELL__
28 import GHC.Int
29 #endif
30
31 import Data.Dynamic
32
33 #include "Dynamic.h"
34 INSTANCE_TYPEABLE0(Int8,int8Tc, "Int8")
35 INSTANCE_TYPEABLE0(Int16,int16Tc,"Int16")
36 INSTANCE_TYPEABLE0(Int32,int32Tc,"Int32")
37 INSTANCE_TYPEABLE0(Int64,int64Tc,"Int64")