summaryrefslogtreecommitdiff
path: root/libraries/base/Prelude.hs
diff options
context:
space:
mode:
authorross <unknown>2003-08-30 12:26:58 +0000
committerross <unknown>2003-08-30 12:26:58 +0000
commit59ad9e96a86ef75b4e86781e6e784e76f26e5670 (patch)
tree7236e37ab12c9c38781024654c2eb5086ce7499a /libraries/base/Prelude.hs
parentd25661cde40e03cff9393ae1f666150f6ebf66d1 (diff)
downloadhaskell-59ad9e96a86ef75b4e86781e6e784e76f26e5670.tar.gz
[project @ 2003-08-30 12:26:56 by ross]
docs for System.IO.Error
Diffstat (limited to 'libraries/base/Prelude.hs')
-rw-r--r--libraries/base/Prelude.hs16
1 files changed, 13 insertions, 3 deletions
diff --git a/libraries/base/Prelude.hs b/libraries/base/Prelude.hs
index 31aa6b63f5..7ad635530e 100644
--- a/libraries/base/Prelude.hs
+++ b/libraries/base/Prelude.hs
@@ -75,14 +75,24 @@ module Prelude (
reads, shows, read, lex,
showChar, showString, readParen, showParen,
- -- * Simple I\/O operations
- ioError, userError, catch,
- FilePath, IOError,
+ -- * Basic Input and output
+ -- ** Simple I\/O operations
+ -- All I/O functions defined here are character oriented. The
+ -- treatment of the newline character will vary on different systems.
+ -- For example, two characters of input, return and linefeed, may
+ -- read as a single newline character. These functions cannot be
+ -- used portably for binary I/O.
+ -- *** Output functions
putChar,
putStr, putStrLn, print,
+ -- *** Input functions
getChar,
getLine, getContents, interact,
+ -- *** Files
+ FilePath,
readFile, writeFile, appendFile, readIO, readLn,
+ -- ** Exception handling in the I\/O monad
+ IOError, ioError, userError, catch,
-- * Monads
Monad((>>=), (>>), return, fail),