1 {-# OPTIONS_GHC -XNoImplicitPrelude #-}
2 {-# OPTIONS_HADDOCK hide #-}
3 -----------------------------------------------------------------------------
5 -- Module : GHC.IO.IOMode
6 -- Copyright : (c) The University of Glasgow, 1994-2008
7 -- License : see libraries/base/LICENSE
9 -- Maintainer : libraries@haskell.org
10 -- Stability : internal
11 -- Portability : non-portable
15 -----------------------------------------------------------------------------
17 module GHC.IO.IOMode (IOMode(..)) where
25 -- | See 'System.IO.openFile'
26 data IOMode = ReadMode | WriteMode | AppendMode | ReadWriteMode
27 deriving (Eq, Ord, Ix, Enum, Read, Show)