summaryrefslogtreecommitdiff
path: root/libraries/base/GHC/IO/IOMode.hs
blob: 7eb848f50a1f6b3e7340c5ef09c9faba3f2cdb85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK hide #-}

-----------------------------------------------------------------------------
-- |
-- Module      :  GHC.IO.IOMode
-- Copyright   :  (c) The University of Glasgow, 1994-2008
-- License     :  see libraries/base/LICENSE
-- 
-- Maintainer  :  libraries@haskell.org
-- Stability   :  internal
-- Portability :  non-portable
--
-- The IOMode type
--
-----------------------------------------------------------------------------

module GHC.IO.IOMode (IOMode(..)) where

import GHC.Base
import GHC.Show
import GHC.Read
import GHC.Arr
import GHC.Enum

-- | See 'System.IO.openFile'
data IOMode      =  ReadMode | WriteMode | AppendMode | ReadWriteMode
                    deriving ( Eq   -- ^ @since 4.2.0.0
                             , Ord  -- ^ @since 4.2.0.0
                             , Ix   -- ^ @since 4.2.0.0
                             , Enum -- ^ @since 4.2.0.0
                             , Read -- ^ @since 4.2.0.0
                             , Show -- ^ @since 4.2.0.0
                             )