Update base for latest Safe Haskell.
[packages/base.git] / GHC / IO / IOMode.hs
1 {-# LANGUAGE Trustworthy #-}
2 {-# LANGUAGE NoImplicitPrelude #-}
3 {-# OPTIONS_HADDOCK hide #-}
4
5 -----------------------------------------------------------------------------
6 -- |
7 -- Module : GHC.IO.IOMode
8 -- Copyright : (c) The University of Glasgow, 1994-2008
9 -- License : see libraries/base/LICENSE
10 --
11 -- Maintainer : libraries@haskell.org
12 -- Stability : internal
13 -- Portability : non-portable
14 --
15 -- The IOMode type
16 --
17 -----------------------------------------------------------------------------
18
19 module GHC.IO.IOMode (IOMode(..)) where
20
21 import GHC.Base
22 import GHC.Show
23 import GHC.Read
24 import GHC.Arr
25 import GHC.Enum
26
27 -- | See 'System.IO.openFile'
28 data IOMode = ReadMode | WriteMode | AppendMode | ReadWriteMode
29 deriving (Eq, Ord, Ix, Enum, Read, Show)
30