summaryrefslogtreecommitdiff
path: root/ghc/lib/glaExts/MutableArray.lhs
diff options
context:
space:
mode:
authorsimonm <unknown>1998-02-02 17:35:59 +0000
committersimonm <unknown>1998-02-02 17:35:59 +0000
commit28139aea50376444d56f43f0914291348a51a7e7 (patch)
tree595c378188638ef16462972c1e7fcdb8409c7f16 /ghc/lib/glaExts/MutableArray.lhs
parent98a1ebecb6d22d793b1d9f8e1d24ecbb5a2d130f (diff)
downloadhaskell-28139aea50376444d56f43f0914291348a51a7e7.tar.gz
[project @ 1998-02-02 17:27:26 by simonm]
Library re-organisation: All libraries now live under ghc/lib, which has the following structure: ghc/lib/std -- all prelude files (libHS.a) ghc/lib/std/cbits ghc/lib/exts -- standard Hugs/GHC extensions (libHSexts.a) -- available with '-fglasgow-exts' ghc/lib/posix -- POSIX library (libHSposix.a) ghc/lib/posix/cbits -- available with '-syslib posix' ghc/lib/misc -- used to be hslibs/ghc (libHSmisc.a) ghc/lib/misc/cbits -- available with '-syslib misc' ghc/lib/concurrent -- Concurrent libraries (libHSconc.a) -- available with '-concurrent' Also, several non-standard prelude modules had their names changed to begin with 'Prel' to reduce namespace pollution. Addr ==> PrelAddr (Addr interface available in 'exts') ArrBase ==> PrelArr CCall ==> PrelCCall (CCall interface available in 'exts') ConcBase ==> PrelConc GHCerr ==> PrelErr Foreign ==> PrelForeign (Foreign interface available in 'exts') GHC ==> PrelGHC IOHandle ==> PrelHandle IOBase ==> PrelIOBase GHCmain ==> PrelMain STBase ==> PrelST Unsafe ==> PrelUnsafe UnsafeST ==> PrelUnsafeST
Diffstat (limited to 'ghc/lib/glaExts/MutableArray.lhs')
-rw-r--r--ghc/lib/glaExts/MutableArray.lhs62
1 files changed, 0 insertions, 62 deletions
diff --git a/ghc/lib/glaExts/MutableArray.lhs b/ghc/lib/glaExts/MutableArray.lhs
deleted file mode 100644
index eead4b692a..0000000000
--- a/ghc/lib/glaExts/MutableArray.lhs
+++ /dev/null
@@ -1,62 +0,0 @@
-%
-% (c) The AQUA Project, Glasgow University, 1997
-%
-\section[MutableArray]{The @MutableArray@ interface}
-
-Mutable (byte)arrays interface, re-exports type types and operations
-over them from @ArrBase@. Have to be used in conjunction with
-@ST@.
-
-\begin{code}
-module MutableArray
- (
- MutableArray(..), -- not abstract
- MutableByteArray(..),
-
- ST,
- Ix,
-
- -- Creators:
- newArray, -- :: Ix ix => (ix,ix) -> elt -> ST s (MutableArray s ix elt)
- newCharArray,
- newAddrArray,
- newIntArray,
- newFloatArray,
- newDoubleArray, -- :: Ix ix => (ix,ix) -> ST s (MutableByteArray s ix)
-
- boundsOfArray, -- :: Ix ix => MutableArray s ix elt -> (ix, ix)
- boundsOfByteArray, -- :: Ix ix => MutableByteArray s ix -> (ix, ix)
-
- readArray, -- :: Ix ix => MutableArray s ix elt -> ix -> ST s elt
-
- readCharArray, -- :: Ix ix => MutableByteArray s ix -> ix -> ST s Char
- readIntArray, -- :: Ix ix => MutableByteArray s ix -> ix -> ST s Int
- readAddrArray, -- :: Ix ix => MutableByteArray s ix -> ix -> ST s Addr
- readFloatArray, -- :: Ix ix => MutableByteArray s ix -> ix -> ST s Float
- readDoubleArray, -- :: Ix ix => MutableByteArray s ix -> ix -> ST s Double
-
- writeArray, -- :: Ix ix => MutableArray s ix elt -> ix -> elt -> ST s ()
- writeCharArray, -- :: Ix ix => MutableByteArray s ix -> ix -> Char -> ST s ()
- writeIntArray, -- :: Ix ix => MutableByteArray s ix -> ix -> Int -> ST s ()
- writeAddrArray, -- :: Ix ix => MutableByteArray s ix -> ix -> Addr -> ST s ()
- writeFloatArray, -- :: Ix ix => MutableByteArray s ix -> ix -> Float -> ST s ()
- writeDoubleArray, -- :: Ix ix => MutableByteArray s ix -> ix -> Double -> ST s ()
-
- freezeArray, -- :: Ix ix => MutableArray s ix elt -> ST s (Array ix elt)
- freezeCharArray, -- :: Ix ix => MutableByteArray s ix -> ST s (ByteArray ix)
- freezeIntArray, -- :: Ix ix => MutableByteArray s ix -> ST s (ByteArray ix)
- freezeAddrArray, -- :: Ix ix => MutableByteArray s ix -> ST s (ByteArray ix)
- freezeFloatArray, -- :: Ix ix => MutableByteArray s ix -> ST s (ByteArray ix)
- freezeDoubleArray, -- :: Ix ix => MutableByteArray s ix -> ST s (ByteArray ix)
-
- unsafeFreezeArray, -- :: Ix ix => MutableArray s ix elt -> ST s (Array ix elt)
- unsafeFreezeByteArray, -- :: Ix ix => MutableByteArray s ix -> ST s (ByteArray ix)
- thawArray -- :: Ix ix => Array ix elt -> ST s (MutableArray s ix elt)
-
- ) where
-
-import ArrBase
-import ST
-import Ix
-
-\end{code}