{-# LANGUAGE Trustworthy #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK not-home #-}
module GHC.IO.IOMode (IOMode(..)) where
import GHC.Base
import GHC.Show
import GHC.Read
import GHC.Arr
import GHC.Enum
data IOMode = ReadMode | WriteMode | AppendMode | ReadWriteMode
deriving ( IOMode -> IOMode -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IOMode -> IOMode -> Bool
$c/= :: IOMode -> IOMode -> Bool
== :: IOMode -> IOMode -> Bool
$c== :: IOMode -> IOMode -> Bool
Eq
, Eq IOMode
IOMode -> IOMode -> Bool
IOMode -> IOMode -> Ordering
IOMode -> IOMode -> IOMode
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: IOMode -> IOMode -> IOMode
$cmin :: IOMode -> IOMode -> IOMode
max :: IOMode -> IOMode -> IOMode
$cmax :: IOMode -> IOMode -> IOMode
>= :: IOMode -> IOMode -> Bool
$c>= :: IOMode -> IOMode -> Bool
> :: IOMode -> IOMode -> Bool
$c> :: IOMode -> IOMode -> Bool
<= :: IOMode -> IOMode -> Bool
$c<= :: IOMode -> IOMode -> Bool
< :: IOMode -> IOMode -> Bool
$c< :: IOMode -> IOMode -> Bool
compare :: IOMode -> IOMode -> Ordering
$ccompare :: IOMode -> IOMode -> Ordering
Ord
, Ord IOMode
(IOMode, IOMode) -> Int
(IOMode, IOMode) -> [IOMode]
(IOMode, IOMode) -> IOMode -> Bool
(IOMode, IOMode) -> IOMode -> Int
forall a.
Ord a
-> ((a, a) -> [a])
-> ((a, a) -> a -> Int)
-> ((a, a) -> a -> Int)
-> ((a, a) -> a -> Bool)
-> ((a, a) -> Int)
-> ((a, a) -> Int)
-> Ix a
unsafeRangeSize :: (IOMode, IOMode) -> Int
$cunsafeRangeSize :: (IOMode, IOMode) -> Int
rangeSize :: (IOMode, IOMode) -> Int
$crangeSize :: (IOMode, IOMode) -> Int
inRange :: (IOMode, IOMode) -> IOMode -> Bool
$cinRange :: (IOMode, IOMode) -> IOMode -> Bool
unsafeIndex :: (IOMode, IOMode) -> IOMode -> Int
$cunsafeIndex :: (IOMode, IOMode) -> IOMode -> Int
index :: (IOMode, IOMode) -> IOMode -> Int
$cindex :: (IOMode, IOMode) -> IOMode -> Int
range :: (IOMode, IOMode) -> [IOMode]
$crange :: (IOMode, IOMode) -> [IOMode]
Ix
, Int -> IOMode
IOMode -> Int
IOMode -> [IOMode]
IOMode -> IOMode
IOMode -> IOMode -> [IOMode]
IOMode -> IOMode -> IOMode -> [IOMode]
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: IOMode -> IOMode -> IOMode -> [IOMode]
$cenumFromThenTo :: IOMode -> IOMode -> IOMode -> [IOMode]
enumFromTo :: IOMode -> IOMode -> [IOMode]
$cenumFromTo :: IOMode -> IOMode -> [IOMode]
enumFromThen :: IOMode -> IOMode -> [IOMode]
$cenumFromThen :: IOMode -> IOMode -> [IOMode]
enumFrom :: IOMode -> [IOMode]
$cenumFrom :: IOMode -> [IOMode]
fromEnum :: IOMode -> Int
$cfromEnum :: IOMode -> Int
toEnum :: Int -> IOMode
$ctoEnum :: Int -> IOMode
pred :: IOMode -> IOMode
$cpred :: IOMode -> IOMode
succ :: IOMode -> IOMode
$csucc :: IOMode -> IOMode
Enum
, ReadPrec [IOMode]
ReadPrec IOMode
Int -> ReadS IOMode
ReadS [IOMode]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [IOMode]
$creadListPrec :: ReadPrec [IOMode]
readPrec :: ReadPrec IOMode
$creadPrec :: ReadPrec IOMode
readList :: ReadS [IOMode]
$creadList :: ReadS [IOMode]
readsPrec :: Int -> ReadS IOMode
$creadsPrec :: Int -> ReadS IOMode
Read
, Int -> IOMode -> ShowS
[IOMode] -> ShowS
IOMode -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IOMode] -> ShowS
$cshowList :: [IOMode] -> ShowS
show :: IOMode -> String
$cshow :: IOMode -> String
showsPrec :: Int -> IOMode -> ShowS
$cshowsPrec :: Int -> IOMode -> ShowS
Show
)