1 -----------------------------------------------------------------------------
4 -- Copyright : (c) The University of Glasgow 2001
5 -- License : BSD-style (see the file libraries/core/LICENSE)
7 -- Maintainer : libraries@haskell.org
8 -- Stability : provisional
9 -- Portability : portable
11 -- $Id: Ix.hs,v 1.2 2001/12/21 15:07:21 simonmar Exp $
13 -- Class of index types.
15 -----------------------------------------------------------------------------
20 ( range -- :: (Ix a) => (a,a) -> [a]
21 , index -- :: (Ix a) => (a,a) -> a -> Int
22 , inRange -- :: (Ix a) => (a,a) -> a -> Bool
23 , rangeSize -- :: (Ix a) => (a,a) -> Int
33 -- (Ix a, Ix b) => Ix (a, b)
36 -- Implementation checked wrt. Haskell 98 lib report, 1/99.
41 #ifdef __GLASGOW_HASKELL__