e9981dff976d7807af857078ef45f9bc7f4c0c4c
[ghc-hetmet.git] / ghc / lib / std / Ix.lhs
1 %
2 % (c) The AQUA Project, Glasgow University, 1994-1999
3 %
4
5 \section[Ix]{Module @Ix@}
6
7 \begin{code}
8 module Ix 
9     (
10         Ix
11           ( range       -- :: (Ix a) => (a,a) -> [a]
12           , index       -- :: (Ix a) => (a,a) -> a   -> Int
13           , inRange     -- :: (Ix a) => (a,a) -> a   -> Bool
14           )
15     ,   rangeSize       -- :: (Ix a) => (a,a) -> Int
16     -- Ix instances:
17     --
18     --  Ix Char
19     --  Ix Int
20     --  Ix Integer
21     --  Ix Bool
22     --  Ix Ordering
23     --  Ix ()
24     --  (Ix a, Ix b) => Ix (a, b)
25     --  ...
26
27     -- Implementation checked wrt. Haskell 98 lib report, 1/99.
28     ) where
29
30 import Prelude
31
32 -- This module is empty, because Ix is defined in PrelArr.
33 -- Reason: it's needed internally in the Prelude.  
34 -- This module serves solely to export it to the user.
35
36 \end{code}
37