Rewrite of the IO library, including Unicode support
[packages/base.git] / GHC / IO / IOMode.hs
1 {-# OPTIONS_GHC -XNoImplicitPrelude #-}
2 {-# OPTIONS_HADDOCK hide #-}
3 -----------------------------------------------------------------------------
4 -- |
5 -- Module : GHC.IO.IOMode
6 -- Copyright : (c) The University of Glasgow, 1994-2008
7 -- License : see libraries/base/LICENSE
8 --
9 -- Maintainer : libraries@haskell.org
10 -- Stability : internal
11 -- Portability : non-portable
12 --
13 -- The IOMode type
14 --
15 -----------------------------------------------------------------------------
16
17 module GHC.IO.IOMode (IOMode(..)) where
18
19 import GHC.Base
20 import GHC.Show
21 import GHC.Read
22 import GHC.Arr
23 import GHC.Enum
24
25 data IOMode = ReadMode | WriteMode | AppendMode | ReadWriteMode
26 deriving (Eq, Ord, Ix, Enum, Read, Show)