From 99419fa253a459bcc55fc5d3a99144a68a3cc754 Mon Sep 17 00:00:00 2001 From: sof Date: Tue, 19 Jan 1999 09:51:25 +0000 Subject: [PATCH] [project @ 1999-01-19 09:51:21 by sof] Misc doc-fixes and updates. --- ghc/docs/libraries/Addr.sgml | 7 +-- ghc/docs/libraries/Concurrent.sgml | 4 +- ghc/docs/libraries/Dynamic.sgml | 11 +++-- ghc/docs/libraries/Foreign.sgml | 95 ++++++++++++++++++++++++++++++++++++ ghc/docs/libraries/IOExts.sgml | 12 +++-- ghc/docs/libraries/Int.sgml | 2 +- ghc/docs/libraries/NumExts.sgml | 30 ++++++++++-- ghc/docs/libraries/Word.sgml | 2 +- ghc/docs/libraries/libs.sgml | 24 ++++----- 9 files changed, 152 insertions(+), 35 deletions(-) create mode 100644 ghc/docs/libraries/Foreign.sgml diff --git a/ghc/docs/libraries/Addr.sgml b/ghc/docs/libraries/Addr.sgml index 8681ee0..39c62da 100644 --- a/ghc/docs/libraries/Addr.sgml +++ b/ghc/docs/libraries/Addr.sgml @@ -9,13 +9,14 @@ use in creating foreign function interfaces using GreenCard. module Addr where data Addr -- Address type instance Eq Addr +instance Ord Addr nullAddr :: Addr plusAddr :: Addr -> Int -> Addr -- read value out of _immutable_ memory indexCharOffAddr :: Addr -> Int -> Char -indexIntOffAddr :: Addr -> Int -> Int -- should we drop this? +indexIntOffAddr :: Addr -> Int -> Int indexAddrOffAddr :: Addr -> Int -> Addr indexFloatOffAddr :: Addr -> Int -> Float indexDoubleOffAddr :: Addr -> Int -> Double @@ -30,7 +31,7 @@ indexInt64OffAddr :: Addr -> Int -> Int64 -- read value out of mutable memory readCharOffAddr :: Addr -> Int -> IO Char -readIntOffAddr :: Addr -> Int -> IO Int -- should we drop this? +readIntOffAddr :: Addr -> Int -> IO Int readAddrOffAddr :: Addr -> Int -> IO Addr readFloatOffAddr :: Addr -> Int -> IO Float readDoubleOffAddr :: Addr -> Int -> IO Double @@ -45,7 +46,7 @@ readInt64OffAddr :: Addr -> Int -> IO Int64 -- write value into mutable memory writeCharOffAddr :: Addr -> Int -> Char -> IO () -writeIntOffAddr :: Addr -> Int -> Int -> IO () -- should we drop this? +writeIntOffAddr :: Addr -> Int -> Int -> IO () writeAddrOffAddr :: Addr -> Int -> Addr -> IO () writeForeignObjOffAddr :: Addr -> Int -> ForeignObj -> IO () writeFloatOffAddr :: Addr -> Int -> Float -> IO () diff --git a/ghc/docs/libraries/Concurrent.sgml b/ghc/docs/libraries/Concurrent.sgml index 1ea6948..4af5615 100644 --- a/ghc/docs/libraries/Concurrent.sgml +++ b/ghc/docs/libraries/Concurrent.sgml @@ -108,7 +108,7 @@ will a thread block when performing a diff --git a/ghc/docs/libraries/Dynamic.sgml b/ghc/docs/libraries/Dynamic.sgml index a137b2d..eccaddb 100644 --- a/ghc/docs/libraries/Dynamic.sgml +++ b/ghc/docs/libraries/Dynamic.sgml @@ -8,13 +8,14 @@ information with it at run-time, and is represented here by the abstract type -The The Typeable class Typeable class