summaryrefslogtreecommitdiff
path: root/ghc/lib/exts/ByteArray.lhs
blob: 6fba8e150bdef72a087118a71152c35edadda9bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
%
% (c) The AQUA Project, Glasgow University, 1994-1997
%
\section[ByteArray]{The @ByteArray@ interface}

Immutable, read-only chunks of bytes, the @ByteArray@ collects
together the definitions in @ArrBase@ and exports them as one.

\begin{code}
module ByteArray
       (
        ByteArray(..),  -- not abstract, for now.
        Ix,

        --Indexing of ordinary @Arrays@ is standard Haskell and isn't defined here.
        indexCharArray,     -- :: Ix ix => ByteArray ix -> ix -> Char 
        indexIntArray,      -- :: Ix ix => ByteArray ix -> ix -> Int
        indexWordArray,     -- :: Ix ix => ByteArray ix -> ix -> Word
        indexAddrArray,     -- :: Ix ix => ByteArray ix -> ix -> Addr
        indexFloatArray,    -- :: Ix ix => ByteArray ix -> ix -> Float
        indexDoubleArray,   -- :: Ix ix => ByteArray ix -> ix -> Double

       ) where

import PrelArr
import Ix
\end{code}