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