#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.GLib.Flags
(
AsciiType(..) ,
FileSetContentsFlags(..) ,
FileTest(..) ,
FormatSizeFlags(..) ,
HookFlagMask(..) ,
IOCondition(..) ,
IOFlags(..) ,
KeyFileFlags(..) ,
LogLevelFlags(..) ,
MarkupCollectType(..) ,
MarkupParseFlags(..) ,
OptionFlags(..) ,
RegexCompileFlags(..) ,
RegexMatchFlags(..) ,
SpawnFlags(..) ,
TestSubprocessFlags(..) ,
TestTrapFlags(..) ,
TraverseFlags(..) ,
UriFlags(..) ,
UriHideFlags(..) ,
UriParamsFlags(..) ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
data UriParamsFlags =
UriParamsFlagsNone
| UriParamsFlagsCaseInsensitive
| UriParamsFlagsWwwForm
| UriParamsFlagsParseRelaxed
| AnotherUriParamsFlags Int
deriving (Int -> UriParamsFlags -> ShowS
[UriParamsFlags] -> ShowS
UriParamsFlags -> String
(Int -> UriParamsFlags -> ShowS)
-> (UriParamsFlags -> String)
-> ([UriParamsFlags] -> ShowS)
-> Show UriParamsFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UriParamsFlags] -> ShowS
$cshowList :: [UriParamsFlags] -> ShowS
show :: UriParamsFlags -> String
$cshow :: UriParamsFlags -> String
showsPrec :: Int -> UriParamsFlags -> ShowS
$cshowsPrec :: Int -> UriParamsFlags -> ShowS
Show, UriParamsFlags -> UriParamsFlags -> Bool
(UriParamsFlags -> UriParamsFlags -> Bool)
-> (UriParamsFlags -> UriParamsFlags -> Bool) -> Eq UriParamsFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UriParamsFlags -> UriParamsFlags -> Bool
$c/= :: UriParamsFlags -> UriParamsFlags -> Bool
== :: UriParamsFlags -> UriParamsFlags -> Bool
$c== :: UriParamsFlags -> UriParamsFlags -> Bool
Eq)
instance P.Enum UriParamsFlags where
fromEnum :: UriParamsFlags -> Int
fromEnum UriParamsFlags
UriParamsFlagsNone = Int
0
fromEnum UriParamsFlags
UriParamsFlagsCaseInsensitive = Int
1
fromEnum UriParamsFlags
UriParamsFlagsWwwForm = Int
2
fromEnum UriParamsFlags
UriParamsFlagsParseRelaxed = Int
4
fromEnum (AnotherUriParamsFlags Int
k) = Int
k
toEnum :: Int -> UriParamsFlags
toEnum Int
0 = UriParamsFlags
UriParamsFlagsNone
toEnum Int
1 = UriParamsFlags
UriParamsFlagsCaseInsensitive
toEnum Int
2 = UriParamsFlags
UriParamsFlagsWwwForm
toEnum Int
4 = UriParamsFlags
UriParamsFlagsParseRelaxed
toEnum Int
k = Int -> UriParamsFlags
AnotherUriParamsFlags Int
k
instance P.Ord UriParamsFlags where
compare :: UriParamsFlags -> UriParamsFlags -> Ordering
compare UriParamsFlags
a UriParamsFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (UriParamsFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum UriParamsFlags
a) (UriParamsFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum UriParamsFlags
b)
instance IsGFlag UriParamsFlags
data UriHideFlags =
UriHideFlagsNone
| UriHideFlagsUserinfo
| UriHideFlagsPassword
| UriHideFlagsAuthParams
| UriHideFlagsQuery
| UriHideFlagsFragment
| AnotherUriHideFlags Int
deriving (Int -> UriHideFlags -> ShowS
[UriHideFlags] -> ShowS
UriHideFlags -> String
(Int -> UriHideFlags -> ShowS)
-> (UriHideFlags -> String)
-> ([UriHideFlags] -> ShowS)
-> Show UriHideFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UriHideFlags] -> ShowS
$cshowList :: [UriHideFlags] -> ShowS
show :: UriHideFlags -> String
$cshow :: UriHideFlags -> String
showsPrec :: Int -> UriHideFlags -> ShowS
$cshowsPrec :: Int -> UriHideFlags -> ShowS
Show, UriHideFlags -> UriHideFlags -> Bool
(UriHideFlags -> UriHideFlags -> Bool)
-> (UriHideFlags -> UriHideFlags -> Bool) -> Eq UriHideFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UriHideFlags -> UriHideFlags -> Bool
$c/= :: UriHideFlags -> UriHideFlags -> Bool
== :: UriHideFlags -> UriHideFlags -> Bool
$c== :: UriHideFlags -> UriHideFlags -> Bool
Eq)
instance P.Enum UriHideFlags where
fromEnum :: UriHideFlags -> Int
fromEnum UriHideFlags
UriHideFlagsNone = Int
0
fromEnum UriHideFlags
UriHideFlagsUserinfo = Int
1
fromEnum UriHideFlags
UriHideFlagsPassword = Int
2
fromEnum UriHideFlags
UriHideFlagsAuthParams = Int
4
fromEnum UriHideFlags
UriHideFlagsQuery = Int
8
fromEnum UriHideFlags
UriHideFlagsFragment = Int
16
fromEnum (AnotherUriHideFlags Int
k) = Int
k
toEnum :: Int -> UriHideFlags
toEnum Int
0 = UriHideFlags
UriHideFlagsNone
toEnum Int
1 = UriHideFlags
UriHideFlagsUserinfo
toEnum Int
2 = UriHideFlags
UriHideFlagsPassword
toEnum Int
4 = UriHideFlags
UriHideFlagsAuthParams
toEnum Int
8 = UriHideFlags
UriHideFlagsQuery
toEnum Int
16 = UriHideFlags
UriHideFlagsFragment
toEnum Int
k = Int -> UriHideFlags
AnotherUriHideFlags Int
k
instance P.Ord UriHideFlags where
compare :: UriHideFlags -> UriHideFlags -> Ordering
compare UriHideFlags
a UriHideFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (UriHideFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum UriHideFlags
a) (UriHideFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum UriHideFlags
b)
instance IsGFlag UriHideFlags
data UriFlags =
UriFlagsNone
| UriFlagsParseRelaxed
| UriFlagsHasPassword
| UriFlagsHasAuthParams
| UriFlagsEncoded
| UriFlagsNonDns
| UriFlagsEncodedQuery
| UriFlagsEncodedPath
| UriFlagsEncodedFragment
| UriFlagsSchemeNormalize
| AnotherUriFlags Int
deriving (Int -> UriFlags -> ShowS
[UriFlags] -> ShowS
UriFlags -> String
(Int -> UriFlags -> ShowS)
-> (UriFlags -> String) -> ([UriFlags] -> ShowS) -> Show UriFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UriFlags] -> ShowS
$cshowList :: [UriFlags] -> ShowS
show :: UriFlags -> String
$cshow :: UriFlags -> String
showsPrec :: Int -> UriFlags -> ShowS
$cshowsPrec :: Int -> UriFlags -> ShowS
Show, UriFlags -> UriFlags -> Bool
(UriFlags -> UriFlags -> Bool)
-> (UriFlags -> UriFlags -> Bool) -> Eq UriFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UriFlags -> UriFlags -> Bool
$c/= :: UriFlags -> UriFlags -> Bool
== :: UriFlags -> UriFlags -> Bool
$c== :: UriFlags -> UriFlags -> Bool
Eq)
instance P.Enum UriFlags where
fromEnum :: UriFlags -> Int
fromEnum UriFlags
UriFlagsNone = Int
0
fromEnum UriFlags
UriFlagsParseRelaxed = Int
1
fromEnum UriFlags
UriFlagsHasPassword = Int
2
fromEnum UriFlags
UriFlagsHasAuthParams = Int
4
fromEnum UriFlags
UriFlagsEncoded = Int
8
fromEnum UriFlags
UriFlagsNonDns = Int
16
fromEnum UriFlags
UriFlagsEncodedQuery = Int
32
fromEnum UriFlags
UriFlagsEncodedPath = Int
64
fromEnum UriFlags
UriFlagsEncodedFragment = Int
128
fromEnum UriFlags
UriFlagsSchemeNormalize = Int
256
fromEnum (AnotherUriFlags Int
k) = Int
k
toEnum :: Int -> UriFlags
toEnum Int
0 = UriFlags
UriFlagsNone
toEnum Int
1 = UriFlags
UriFlagsParseRelaxed
toEnum Int
2 = UriFlags
UriFlagsHasPassword
toEnum Int
4 = UriFlags
UriFlagsHasAuthParams
toEnum Int
8 = UriFlags
UriFlagsEncoded
toEnum Int
16 = UriFlags
UriFlagsNonDns
toEnum Int
32 = UriFlags
UriFlagsEncodedQuery
toEnum Int
64 = UriFlags
UriFlagsEncodedPath
toEnum Int
128 = UriFlags
UriFlagsEncodedFragment
toEnum Int
256 = UriFlags
UriFlagsSchemeNormalize
toEnum Int
k = Int -> UriFlags
AnotherUriFlags Int
k
instance P.Ord UriFlags where
compare :: UriFlags -> UriFlags -> Ordering
compare UriFlags
a UriFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (UriFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum UriFlags
a) (UriFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum UriFlags
b)
instance IsGFlag UriFlags
data TraverseFlags =
TraverseFlagsLeaves
| TraverseFlagsNonLeaves
| TraverseFlagsAll
| TraverseFlagsMask
| TraverseFlagsLeafs
| TraverseFlagsNonLeafs
| AnotherTraverseFlags Int
deriving (Int -> TraverseFlags -> ShowS
[TraverseFlags] -> ShowS
TraverseFlags -> String
(Int -> TraverseFlags -> ShowS)
-> (TraverseFlags -> String)
-> ([TraverseFlags] -> ShowS)
-> Show TraverseFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TraverseFlags] -> ShowS
$cshowList :: [TraverseFlags] -> ShowS
show :: TraverseFlags -> String
$cshow :: TraverseFlags -> String
showsPrec :: Int -> TraverseFlags -> ShowS
$cshowsPrec :: Int -> TraverseFlags -> ShowS
Show, TraverseFlags -> TraverseFlags -> Bool
(TraverseFlags -> TraverseFlags -> Bool)
-> (TraverseFlags -> TraverseFlags -> Bool) -> Eq TraverseFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TraverseFlags -> TraverseFlags -> Bool
$c/= :: TraverseFlags -> TraverseFlags -> Bool
== :: TraverseFlags -> TraverseFlags -> Bool
$c== :: TraverseFlags -> TraverseFlags -> Bool
Eq)
instance P.Enum TraverseFlags where
fromEnum :: TraverseFlags -> Int
fromEnum TraverseFlags
TraverseFlagsLeaves = Int
1
fromEnum TraverseFlags
TraverseFlagsNonLeaves = Int
2
fromEnum TraverseFlags
TraverseFlagsAll = Int
3
fromEnum TraverseFlags
TraverseFlagsMask = Int
3
fromEnum TraverseFlags
TraverseFlagsLeafs = Int
1
fromEnum TraverseFlags
TraverseFlagsNonLeafs = Int
2
fromEnum (AnotherTraverseFlags Int
k) = Int
k
toEnum :: Int -> TraverseFlags
toEnum Int
1 = TraverseFlags
TraverseFlagsLeaves
toEnum Int
2 = TraverseFlags
TraverseFlagsNonLeaves
toEnum Int
3 = TraverseFlags
TraverseFlagsAll
toEnum Int
k = Int -> TraverseFlags
AnotherTraverseFlags Int
k
instance P.Ord TraverseFlags where
compare :: TraverseFlags -> TraverseFlags -> Ordering
compare TraverseFlags
a TraverseFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TraverseFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TraverseFlags
a) (TraverseFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TraverseFlags
b)
instance IsGFlag TraverseFlags
{-# DEPRECATED TestTrapFlags ["(Since version 2.38)","t'GI.GLib.Flags.TestTrapFlags' is used only with 'GI.GLib.Functions.testTrapFork',","which is deprecated. 'GI.GLib.Functions.testTrapSubprocess' uses","t'GI.GLib.Flags.TestSubprocessFlags'."] #-}
data TestTrapFlags =
TestTrapFlagsSilenceStdout
| TestTrapFlagsSilenceStderr
| TestTrapFlagsInheritStdin
| AnotherTestTrapFlags Int
deriving (Int -> TestTrapFlags -> ShowS
[TestTrapFlags] -> ShowS
TestTrapFlags -> String
(Int -> TestTrapFlags -> ShowS)
-> (TestTrapFlags -> String)
-> ([TestTrapFlags] -> ShowS)
-> Show TestTrapFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TestTrapFlags] -> ShowS
$cshowList :: [TestTrapFlags] -> ShowS
show :: TestTrapFlags -> String
$cshow :: TestTrapFlags -> String
showsPrec :: Int -> TestTrapFlags -> ShowS
$cshowsPrec :: Int -> TestTrapFlags -> ShowS
Show, TestTrapFlags -> TestTrapFlags -> Bool
(TestTrapFlags -> TestTrapFlags -> Bool)
-> (TestTrapFlags -> TestTrapFlags -> Bool) -> Eq TestTrapFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TestTrapFlags -> TestTrapFlags -> Bool
$c/= :: TestTrapFlags -> TestTrapFlags -> Bool
== :: TestTrapFlags -> TestTrapFlags -> Bool
$c== :: TestTrapFlags -> TestTrapFlags -> Bool
Eq)
instance P.Enum TestTrapFlags where
fromEnum :: TestTrapFlags -> Int
fromEnum TestTrapFlags
TestTrapFlagsSilenceStdout = Int
128
fromEnum TestTrapFlags
TestTrapFlagsSilenceStderr = Int
256
fromEnum TestTrapFlags
TestTrapFlagsInheritStdin = Int
512
fromEnum (AnotherTestTrapFlags Int
k) = Int
k
toEnum :: Int -> TestTrapFlags
toEnum Int
128 = TestTrapFlags
TestTrapFlagsSilenceStdout
toEnum Int
256 = TestTrapFlags
TestTrapFlagsSilenceStderr
toEnum Int
512 = TestTrapFlags
TestTrapFlagsInheritStdin
toEnum Int
k = Int -> TestTrapFlags
AnotherTestTrapFlags Int
k
instance P.Ord TestTrapFlags where
compare :: TestTrapFlags -> TestTrapFlags -> Ordering
compare TestTrapFlags
a TestTrapFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TestTrapFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TestTrapFlags
a) (TestTrapFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TestTrapFlags
b)
instance IsGFlag TestTrapFlags
data TestSubprocessFlags =
TestSubprocessFlagsStdin
| TestSubprocessFlagsStdout
| TestSubprocessFlagsStderr
| AnotherTestSubprocessFlags Int
deriving (Int -> TestSubprocessFlags -> ShowS
[TestSubprocessFlags] -> ShowS
TestSubprocessFlags -> String
(Int -> TestSubprocessFlags -> ShowS)
-> (TestSubprocessFlags -> String)
-> ([TestSubprocessFlags] -> ShowS)
-> Show TestSubprocessFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TestSubprocessFlags] -> ShowS
$cshowList :: [TestSubprocessFlags] -> ShowS
show :: TestSubprocessFlags -> String
$cshow :: TestSubprocessFlags -> String
showsPrec :: Int -> TestSubprocessFlags -> ShowS
$cshowsPrec :: Int -> TestSubprocessFlags -> ShowS
Show, TestSubprocessFlags -> TestSubprocessFlags -> Bool
(TestSubprocessFlags -> TestSubprocessFlags -> Bool)
-> (TestSubprocessFlags -> TestSubprocessFlags -> Bool)
-> Eq TestSubprocessFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TestSubprocessFlags -> TestSubprocessFlags -> Bool
$c/= :: TestSubprocessFlags -> TestSubprocessFlags -> Bool
== :: TestSubprocessFlags -> TestSubprocessFlags -> Bool
$c== :: TestSubprocessFlags -> TestSubprocessFlags -> Bool
Eq)
instance P.Enum TestSubprocessFlags where
fromEnum :: TestSubprocessFlags -> Int
fromEnum TestSubprocessFlags
TestSubprocessFlagsStdin = Int
1
fromEnum TestSubprocessFlags
TestSubprocessFlagsStdout = Int
2
fromEnum TestSubprocessFlags
TestSubprocessFlagsStderr = Int
4
fromEnum (AnotherTestSubprocessFlags Int
k) = Int
k
toEnum :: Int -> TestSubprocessFlags
toEnum Int
1 = TestSubprocessFlags
TestSubprocessFlagsStdin
toEnum Int
2 = TestSubprocessFlags
TestSubprocessFlagsStdout
toEnum Int
4 = TestSubprocessFlags
TestSubprocessFlagsStderr
toEnum Int
k = Int -> TestSubprocessFlags
AnotherTestSubprocessFlags Int
k
instance P.Ord TestSubprocessFlags where
compare :: TestSubprocessFlags -> TestSubprocessFlags -> Ordering
compare TestSubprocessFlags
a TestSubprocessFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (TestSubprocessFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TestSubprocessFlags
a) (TestSubprocessFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum TestSubprocessFlags
b)
instance IsGFlag TestSubprocessFlags
data SpawnFlags =
SpawnFlagsDefault
| SpawnFlagsLeaveDescriptorsOpen
| SpawnFlagsDoNotReapChild
| SpawnFlagsSearchPath
| SpawnFlagsStdoutToDevNull
| SpawnFlagsStderrToDevNull
| SpawnFlagsChildInheritsStdin
| SpawnFlagsFileAndArgvZero
| SpawnFlagsSearchPathFromEnvp
| SpawnFlagsCloexecPipes
| AnotherSpawnFlags Int
deriving (Int -> SpawnFlags -> ShowS
[SpawnFlags] -> ShowS
SpawnFlags -> String
(Int -> SpawnFlags -> ShowS)
-> (SpawnFlags -> String)
-> ([SpawnFlags] -> ShowS)
-> Show SpawnFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SpawnFlags] -> ShowS
$cshowList :: [SpawnFlags] -> ShowS
show :: SpawnFlags -> String
$cshow :: SpawnFlags -> String
showsPrec :: Int -> SpawnFlags -> ShowS
$cshowsPrec :: Int -> SpawnFlags -> ShowS
Show, SpawnFlags -> SpawnFlags -> Bool
(SpawnFlags -> SpawnFlags -> Bool)
-> (SpawnFlags -> SpawnFlags -> Bool) -> Eq SpawnFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SpawnFlags -> SpawnFlags -> Bool
$c/= :: SpawnFlags -> SpawnFlags -> Bool
== :: SpawnFlags -> SpawnFlags -> Bool
$c== :: SpawnFlags -> SpawnFlags -> Bool
Eq)
instance P.Enum SpawnFlags where
fromEnum :: SpawnFlags -> Int
fromEnum SpawnFlags
SpawnFlagsDefault = Int
0
fromEnum SpawnFlags
SpawnFlagsLeaveDescriptorsOpen = Int
1
fromEnum SpawnFlags
SpawnFlagsDoNotReapChild = Int
2
fromEnum SpawnFlags
SpawnFlagsSearchPath = Int
4
fromEnum SpawnFlags
SpawnFlagsStdoutToDevNull = Int
8
fromEnum SpawnFlags
SpawnFlagsStderrToDevNull = Int
16
fromEnum SpawnFlags
SpawnFlagsChildInheritsStdin = Int
32
fromEnum SpawnFlags
SpawnFlagsFileAndArgvZero = Int
64
fromEnum SpawnFlags
SpawnFlagsSearchPathFromEnvp = Int
128
fromEnum SpawnFlags
SpawnFlagsCloexecPipes = Int
256
fromEnum (AnotherSpawnFlags Int
k) = Int
k
toEnum :: Int -> SpawnFlags
toEnum Int
0 = SpawnFlags
SpawnFlagsDefault
toEnum Int
1 = SpawnFlags
SpawnFlagsLeaveDescriptorsOpen
toEnum Int
2 = SpawnFlags
SpawnFlagsDoNotReapChild
toEnum Int
4 = SpawnFlags
SpawnFlagsSearchPath
toEnum Int
8 = SpawnFlags
SpawnFlagsStdoutToDevNull
toEnum Int
16 = SpawnFlags
SpawnFlagsStderrToDevNull
toEnum Int
32 = SpawnFlags
SpawnFlagsChildInheritsStdin
toEnum Int
64 = SpawnFlags
SpawnFlagsFileAndArgvZero
toEnum Int
128 = SpawnFlags
SpawnFlagsSearchPathFromEnvp
toEnum Int
256 = SpawnFlags
SpawnFlagsCloexecPipes
toEnum Int
k = Int -> SpawnFlags
AnotherSpawnFlags Int
k
instance P.Ord SpawnFlags where
compare :: SpawnFlags -> SpawnFlags -> Ordering
compare SpawnFlags
a SpawnFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (SpawnFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum SpawnFlags
a) (SpawnFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum SpawnFlags
b)
instance IsGFlag SpawnFlags
data RegexMatchFlags =
RegexMatchFlagsAnchored
| RegexMatchFlagsNotbol
| RegexMatchFlagsNoteol
| RegexMatchFlagsNotempty
| RegexMatchFlagsPartial
| RegexMatchFlagsNewlineCr
| RegexMatchFlagsNewlineLf
| RegexMatchFlagsNewlineCrlf
| RegexMatchFlagsNewlineAny
| RegexMatchFlagsNewlineAnycrlf
| RegexMatchFlagsBsrAnycrlf
| RegexMatchFlagsBsrAny
| RegexMatchFlagsPartialSoft
| RegexMatchFlagsPartialHard
| RegexMatchFlagsNotemptyAtstart
| AnotherRegexMatchFlags Int
deriving (Int -> RegexMatchFlags -> ShowS
[RegexMatchFlags] -> ShowS
RegexMatchFlags -> String
(Int -> RegexMatchFlags -> ShowS)
-> (RegexMatchFlags -> String)
-> ([RegexMatchFlags] -> ShowS)
-> Show RegexMatchFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegexMatchFlags] -> ShowS
$cshowList :: [RegexMatchFlags] -> ShowS
show :: RegexMatchFlags -> String
$cshow :: RegexMatchFlags -> String
showsPrec :: Int -> RegexMatchFlags -> ShowS
$cshowsPrec :: Int -> RegexMatchFlags -> ShowS
Show, RegexMatchFlags -> RegexMatchFlags -> Bool
(RegexMatchFlags -> RegexMatchFlags -> Bool)
-> (RegexMatchFlags -> RegexMatchFlags -> Bool)
-> Eq RegexMatchFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegexMatchFlags -> RegexMatchFlags -> Bool
$c/= :: RegexMatchFlags -> RegexMatchFlags -> Bool
== :: RegexMatchFlags -> RegexMatchFlags -> Bool
$c== :: RegexMatchFlags -> RegexMatchFlags -> Bool
Eq)
instance P.Enum RegexMatchFlags where
fromEnum :: RegexMatchFlags -> Int
fromEnum RegexMatchFlags
RegexMatchFlagsAnchored = Int
16
fromEnum RegexMatchFlags
RegexMatchFlagsNotbol = Int
128
fromEnum RegexMatchFlags
RegexMatchFlagsNoteol = Int
256
fromEnum RegexMatchFlags
RegexMatchFlagsNotempty = Int
1024
fromEnum RegexMatchFlags
RegexMatchFlagsPartial = Int
32768
fromEnum RegexMatchFlags
RegexMatchFlagsNewlineCr = Int
1048576
fromEnum RegexMatchFlags
RegexMatchFlagsNewlineLf = Int
2097152
fromEnum RegexMatchFlags
RegexMatchFlagsNewlineCrlf = Int
3145728
fromEnum RegexMatchFlags
RegexMatchFlagsNewlineAny = Int
4194304
fromEnum RegexMatchFlags
RegexMatchFlagsNewlineAnycrlf = Int
5242880
fromEnum RegexMatchFlags
RegexMatchFlagsBsrAnycrlf = Int
8388608
fromEnum RegexMatchFlags
RegexMatchFlagsBsrAny = Int
16777216
fromEnum RegexMatchFlags
RegexMatchFlagsPartialSoft = Int
32768
fromEnum RegexMatchFlags
RegexMatchFlagsPartialHard = Int
134217728
fromEnum RegexMatchFlags
RegexMatchFlagsNotemptyAtstart = Int
268435456
fromEnum (AnotherRegexMatchFlags Int
k) = Int
k
toEnum :: Int -> RegexMatchFlags
toEnum Int
16 = RegexMatchFlags
RegexMatchFlagsAnchored
toEnum Int
128 = RegexMatchFlags
RegexMatchFlagsNotbol
toEnum Int
256 = RegexMatchFlags
RegexMatchFlagsNoteol
toEnum Int
1024 = RegexMatchFlags
RegexMatchFlagsNotempty
toEnum Int
32768 = RegexMatchFlags
RegexMatchFlagsPartial
toEnum Int
1048576 = RegexMatchFlags
RegexMatchFlagsNewlineCr
toEnum Int
2097152 = RegexMatchFlags
RegexMatchFlagsNewlineLf
toEnum Int
3145728 = RegexMatchFlags
RegexMatchFlagsNewlineCrlf
toEnum Int
4194304 = RegexMatchFlags
RegexMatchFlagsNewlineAny
toEnum Int
5242880 = RegexMatchFlags
RegexMatchFlagsNewlineAnycrlf
toEnum Int
8388608 = RegexMatchFlags
RegexMatchFlagsBsrAnycrlf
toEnum Int
16777216 = RegexMatchFlags
RegexMatchFlagsBsrAny
toEnum Int
134217728 = RegexMatchFlags
RegexMatchFlagsPartialHard
toEnum Int
268435456 = RegexMatchFlags
RegexMatchFlagsNotemptyAtstart
toEnum Int
k = Int -> RegexMatchFlags
AnotherRegexMatchFlags Int
k
instance P.Ord RegexMatchFlags where
compare :: RegexMatchFlags -> RegexMatchFlags -> Ordering
compare RegexMatchFlags
a RegexMatchFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (RegexMatchFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum RegexMatchFlags
a) (RegexMatchFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum RegexMatchFlags
b)
instance IsGFlag RegexMatchFlags
data RegexCompileFlags =
RegexCompileFlagsCaseless
| RegexCompileFlagsMultiline
| RegexCompileFlagsDotall
| RegexCompileFlagsExtended
| RegexCompileFlagsAnchored
| RegexCompileFlagsDollarEndonly
| RegexCompileFlagsUngreedy
| RegexCompileFlagsRaw
| RegexCompileFlagsNoAutoCapture
| RegexCompileFlagsOptimize
| RegexCompileFlagsFirstline
| RegexCompileFlagsDupnames
| RegexCompileFlagsNewlineCr
| RegexCompileFlagsNewlineLf
| RegexCompileFlagsNewlineCrlf
| RegexCompileFlagsNewlineAnycrlf
| RegexCompileFlagsBsrAnycrlf
| RegexCompileFlagsJavascriptCompat
| AnotherRegexCompileFlags Int
deriving (Int -> RegexCompileFlags -> ShowS
[RegexCompileFlags] -> ShowS
RegexCompileFlags -> String
(Int -> RegexCompileFlags -> ShowS)
-> (RegexCompileFlags -> String)
-> ([RegexCompileFlags] -> ShowS)
-> Show RegexCompileFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegexCompileFlags] -> ShowS
$cshowList :: [RegexCompileFlags] -> ShowS
show :: RegexCompileFlags -> String
$cshow :: RegexCompileFlags -> String
showsPrec :: Int -> RegexCompileFlags -> ShowS
$cshowsPrec :: Int -> RegexCompileFlags -> ShowS
Show, RegexCompileFlags -> RegexCompileFlags -> Bool
(RegexCompileFlags -> RegexCompileFlags -> Bool)
-> (RegexCompileFlags -> RegexCompileFlags -> Bool)
-> Eq RegexCompileFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegexCompileFlags -> RegexCompileFlags -> Bool
$c/= :: RegexCompileFlags -> RegexCompileFlags -> Bool
== :: RegexCompileFlags -> RegexCompileFlags -> Bool
$c== :: RegexCompileFlags -> RegexCompileFlags -> Bool
Eq)
instance P.Enum RegexCompileFlags where
fromEnum :: RegexCompileFlags -> Int
fromEnum RegexCompileFlags
RegexCompileFlagsCaseless = Int
1
fromEnum RegexCompileFlags
RegexCompileFlagsMultiline = Int
2
fromEnum RegexCompileFlags
RegexCompileFlagsDotall = Int
4
fromEnum RegexCompileFlags
RegexCompileFlagsExtended = Int
8
fromEnum RegexCompileFlags
RegexCompileFlagsAnchored = Int
16
fromEnum RegexCompileFlags
RegexCompileFlagsDollarEndonly = Int
32
fromEnum RegexCompileFlags
RegexCompileFlagsUngreedy = Int
512
fromEnum RegexCompileFlags
RegexCompileFlagsRaw = Int
2048
fromEnum RegexCompileFlags
RegexCompileFlagsNoAutoCapture = Int
4096
fromEnum RegexCompileFlags
RegexCompileFlagsOptimize = Int
8192
fromEnum RegexCompileFlags
RegexCompileFlagsFirstline = Int
262144
fromEnum RegexCompileFlags
RegexCompileFlagsDupnames = Int
524288
fromEnum RegexCompileFlags
RegexCompileFlagsNewlineCr = Int
1048576
fromEnum RegexCompileFlags
RegexCompileFlagsNewlineLf = Int
2097152
fromEnum RegexCompileFlags
RegexCompileFlagsNewlineCrlf = Int
3145728
fromEnum RegexCompileFlags
RegexCompileFlagsNewlineAnycrlf = Int
5242880
fromEnum RegexCompileFlags
RegexCompileFlagsBsrAnycrlf = Int
8388608
fromEnum RegexCompileFlags
RegexCompileFlagsJavascriptCompat = Int
33554432
fromEnum (AnotherRegexCompileFlags Int
k) = Int
k
toEnum :: Int -> RegexCompileFlags
toEnum Int
1 = RegexCompileFlags
RegexCompileFlagsCaseless
toEnum Int
2 = RegexCompileFlags
RegexCompileFlagsMultiline
toEnum Int
4 = RegexCompileFlags
RegexCompileFlagsDotall
toEnum Int
8 = RegexCompileFlags
RegexCompileFlagsExtended
toEnum Int
16 = RegexCompileFlags
RegexCompileFlagsAnchored
toEnum Int
32 = RegexCompileFlags
RegexCompileFlagsDollarEndonly
toEnum Int
512 = RegexCompileFlags
RegexCompileFlagsUngreedy
toEnum Int
2048 = RegexCompileFlags
RegexCompileFlagsRaw
toEnum Int
4096 = RegexCompileFlags
RegexCompileFlagsNoAutoCapture
toEnum Int
8192 = RegexCompileFlags
RegexCompileFlagsOptimize
toEnum Int
262144 = RegexCompileFlags
RegexCompileFlagsFirstline
toEnum Int
524288 = RegexCompileFlags
RegexCompileFlagsDupnames
toEnum Int
1048576 = RegexCompileFlags
RegexCompileFlagsNewlineCr
toEnum Int
2097152 = RegexCompileFlags
RegexCompileFlagsNewlineLf
toEnum Int
3145728 = RegexCompileFlags
RegexCompileFlagsNewlineCrlf
toEnum Int
5242880 = RegexCompileFlags
RegexCompileFlagsNewlineAnycrlf
toEnum Int
8388608 = RegexCompileFlags
RegexCompileFlagsBsrAnycrlf
toEnum Int
33554432 = RegexCompileFlags
RegexCompileFlagsJavascriptCompat
toEnum Int
k = Int -> RegexCompileFlags
AnotherRegexCompileFlags Int
k
instance P.Ord RegexCompileFlags where
compare :: RegexCompileFlags -> RegexCompileFlags -> Ordering
compare RegexCompileFlags
a RegexCompileFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (RegexCompileFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum RegexCompileFlags
a) (RegexCompileFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum RegexCompileFlags
b)
instance IsGFlag RegexCompileFlags
data OptionFlags =
OptionFlagsNone
| OptionFlagsHidden
| OptionFlagsInMain
| OptionFlagsReverse
| OptionFlagsNoArg
| OptionFlagsFilename
| OptionFlagsOptionalArg
| OptionFlagsNoalias
| AnotherOptionFlags Int
deriving (Int -> OptionFlags -> ShowS
[OptionFlags] -> ShowS
OptionFlags -> String
(Int -> OptionFlags -> ShowS)
-> (OptionFlags -> String)
-> ([OptionFlags] -> ShowS)
-> Show OptionFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OptionFlags] -> ShowS
$cshowList :: [OptionFlags] -> ShowS
show :: OptionFlags -> String
$cshow :: OptionFlags -> String
showsPrec :: Int -> OptionFlags -> ShowS
$cshowsPrec :: Int -> OptionFlags -> ShowS
Show, OptionFlags -> OptionFlags -> Bool
(OptionFlags -> OptionFlags -> Bool)
-> (OptionFlags -> OptionFlags -> Bool) -> Eq OptionFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OptionFlags -> OptionFlags -> Bool
$c/= :: OptionFlags -> OptionFlags -> Bool
== :: OptionFlags -> OptionFlags -> Bool
$c== :: OptionFlags -> OptionFlags -> Bool
Eq)
instance P.Enum OptionFlags where
fromEnum :: OptionFlags -> Int
fromEnum OptionFlags
OptionFlagsNone = Int
0
fromEnum OptionFlags
OptionFlagsHidden = Int
1
fromEnum OptionFlags
OptionFlagsInMain = Int
2
fromEnum OptionFlags
OptionFlagsReverse = Int
4
fromEnum OptionFlags
OptionFlagsNoArg = Int
8
fromEnum OptionFlags
OptionFlagsFilename = Int
16
fromEnum OptionFlags
OptionFlagsOptionalArg = Int
32
fromEnum OptionFlags
OptionFlagsNoalias = Int
64
fromEnum (AnotherOptionFlags Int
k) = Int
k
toEnum :: Int -> OptionFlags
toEnum Int
0 = OptionFlags
OptionFlagsNone
toEnum Int
1 = OptionFlags
OptionFlagsHidden
toEnum Int
2 = OptionFlags
OptionFlagsInMain
toEnum Int
4 = OptionFlags
OptionFlagsReverse
toEnum Int
8 = OptionFlags
OptionFlagsNoArg
toEnum Int
16 = OptionFlags
OptionFlagsFilename
toEnum Int
32 = OptionFlags
OptionFlagsOptionalArg
toEnum Int
64 = OptionFlags
OptionFlagsNoalias
toEnum Int
k = Int -> OptionFlags
AnotherOptionFlags Int
k
instance P.Ord OptionFlags where
compare :: OptionFlags -> OptionFlags -> Ordering
compare OptionFlags
a OptionFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (OptionFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum OptionFlags
a) (OptionFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum OptionFlags
b)
instance IsGFlag OptionFlags
data MarkupParseFlags =
MarkupParseFlagsDoNotUseThisUnsupportedFlag
| MarkupParseFlagsTreatCdataAsText
| MarkupParseFlagsPrefixErrorPosition
| MarkupParseFlagsIgnoreQualified
| AnotherMarkupParseFlags Int
deriving (Int -> MarkupParseFlags -> ShowS
[MarkupParseFlags] -> ShowS
MarkupParseFlags -> String
(Int -> MarkupParseFlags -> ShowS)
-> (MarkupParseFlags -> String)
-> ([MarkupParseFlags] -> ShowS)
-> Show MarkupParseFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MarkupParseFlags] -> ShowS
$cshowList :: [MarkupParseFlags] -> ShowS
show :: MarkupParseFlags -> String
$cshow :: MarkupParseFlags -> String
showsPrec :: Int -> MarkupParseFlags -> ShowS
$cshowsPrec :: Int -> MarkupParseFlags -> ShowS
Show, MarkupParseFlags -> MarkupParseFlags -> Bool
(MarkupParseFlags -> MarkupParseFlags -> Bool)
-> (MarkupParseFlags -> MarkupParseFlags -> Bool)
-> Eq MarkupParseFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MarkupParseFlags -> MarkupParseFlags -> Bool
$c/= :: MarkupParseFlags -> MarkupParseFlags -> Bool
== :: MarkupParseFlags -> MarkupParseFlags -> Bool
$c== :: MarkupParseFlags -> MarkupParseFlags -> Bool
Eq)
instance P.Enum MarkupParseFlags where
fromEnum :: MarkupParseFlags -> Int
fromEnum MarkupParseFlags
MarkupParseFlagsDoNotUseThisUnsupportedFlag = Int
1
fromEnum MarkupParseFlags
MarkupParseFlagsTreatCdataAsText = Int
2
fromEnum MarkupParseFlags
MarkupParseFlagsPrefixErrorPosition = Int
4
fromEnum MarkupParseFlags
MarkupParseFlagsIgnoreQualified = Int
8
fromEnum (AnotherMarkupParseFlags Int
k) = Int
k
toEnum :: Int -> MarkupParseFlags
toEnum Int
1 = MarkupParseFlags
MarkupParseFlagsDoNotUseThisUnsupportedFlag
toEnum Int
2 = MarkupParseFlags
MarkupParseFlagsTreatCdataAsText
toEnum Int
4 = MarkupParseFlags
MarkupParseFlagsPrefixErrorPosition
toEnum Int
8 = MarkupParseFlags
MarkupParseFlagsIgnoreQualified
toEnum Int
k = Int -> MarkupParseFlags
AnotherMarkupParseFlags Int
k
instance P.Ord MarkupParseFlags where
compare :: MarkupParseFlags -> MarkupParseFlags -> Ordering
compare MarkupParseFlags
a MarkupParseFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (MarkupParseFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum MarkupParseFlags
a) (MarkupParseFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum MarkupParseFlags
b)
instance IsGFlag MarkupParseFlags
data MarkupCollectType =
MarkupCollectTypeInvalid
| MarkupCollectTypeString
| MarkupCollectTypeStrdup
| MarkupCollectTypeBoolean
| MarkupCollectTypeTristate
| MarkupCollectTypeOptional
| AnotherMarkupCollectType Int
deriving (Int -> MarkupCollectType -> ShowS
[MarkupCollectType] -> ShowS
MarkupCollectType -> String
(Int -> MarkupCollectType -> ShowS)
-> (MarkupCollectType -> String)
-> ([MarkupCollectType] -> ShowS)
-> Show MarkupCollectType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MarkupCollectType] -> ShowS
$cshowList :: [MarkupCollectType] -> ShowS
show :: MarkupCollectType -> String
$cshow :: MarkupCollectType -> String
showsPrec :: Int -> MarkupCollectType -> ShowS
$cshowsPrec :: Int -> MarkupCollectType -> ShowS
Show, MarkupCollectType -> MarkupCollectType -> Bool
(MarkupCollectType -> MarkupCollectType -> Bool)
-> (MarkupCollectType -> MarkupCollectType -> Bool)
-> Eq MarkupCollectType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MarkupCollectType -> MarkupCollectType -> Bool
$c/= :: MarkupCollectType -> MarkupCollectType -> Bool
== :: MarkupCollectType -> MarkupCollectType -> Bool
$c== :: MarkupCollectType -> MarkupCollectType -> Bool
Eq)
instance P.Enum MarkupCollectType where
fromEnum :: MarkupCollectType -> Int
fromEnum MarkupCollectType
MarkupCollectTypeInvalid = Int
0
fromEnum MarkupCollectType
MarkupCollectTypeString = Int
1
fromEnum MarkupCollectType
MarkupCollectTypeStrdup = Int
2
fromEnum MarkupCollectType
MarkupCollectTypeBoolean = Int
3
fromEnum MarkupCollectType
MarkupCollectTypeTristate = Int
4
fromEnum MarkupCollectType
MarkupCollectTypeOptional = Int
65536
fromEnum (AnotherMarkupCollectType Int
k) = Int
k
toEnum :: Int -> MarkupCollectType
toEnum Int
0 = MarkupCollectType
MarkupCollectTypeInvalid
toEnum Int
1 = MarkupCollectType
MarkupCollectTypeString
toEnum Int
2 = MarkupCollectType
MarkupCollectTypeStrdup
toEnum Int
3 = MarkupCollectType
MarkupCollectTypeBoolean
toEnum Int
4 = MarkupCollectType
MarkupCollectTypeTristate
toEnum Int
65536 = MarkupCollectType
MarkupCollectTypeOptional
toEnum Int
k = Int -> MarkupCollectType
AnotherMarkupCollectType Int
k
instance P.Ord MarkupCollectType where
compare :: MarkupCollectType -> MarkupCollectType -> Ordering
compare MarkupCollectType
a MarkupCollectType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (MarkupCollectType -> Int
forall a. Enum a => a -> Int
P.fromEnum MarkupCollectType
a) (MarkupCollectType -> Int
forall a. Enum a => a -> Int
P.fromEnum MarkupCollectType
b)
instance IsGFlag MarkupCollectType
data LogLevelFlags =
LogLevelFlagsFlagRecursion
| LogLevelFlagsFlagFatal
| LogLevelFlagsLevelError
| LogLevelFlagsLevelCritical
| LogLevelFlagsLevelWarning
| LogLevelFlagsLevelMessage
| LogLevelFlagsLevelInfo
| LogLevelFlagsLevelDebug
| LogLevelFlagsLevelMask
| AnotherLogLevelFlags Int
deriving (Int -> LogLevelFlags -> ShowS
[LogLevelFlags] -> ShowS
LogLevelFlags -> String
(Int -> LogLevelFlags -> ShowS)
-> (LogLevelFlags -> String)
-> ([LogLevelFlags] -> ShowS)
-> Show LogLevelFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LogLevelFlags] -> ShowS
$cshowList :: [LogLevelFlags] -> ShowS
show :: LogLevelFlags -> String
$cshow :: LogLevelFlags -> String
showsPrec :: Int -> LogLevelFlags -> ShowS
$cshowsPrec :: Int -> LogLevelFlags -> ShowS
Show, LogLevelFlags -> LogLevelFlags -> Bool
(LogLevelFlags -> LogLevelFlags -> Bool)
-> (LogLevelFlags -> LogLevelFlags -> Bool) -> Eq LogLevelFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LogLevelFlags -> LogLevelFlags -> Bool
$c/= :: LogLevelFlags -> LogLevelFlags -> Bool
== :: LogLevelFlags -> LogLevelFlags -> Bool
$c== :: LogLevelFlags -> LogLevelFlags -> Bool
Eq)
instance P.Enum LogLevelFlags where
fromEnum :: LogLevelFlags -> Int
fromEnum LogLevelFlags
LogLevelFlagsFlagRecursion = Int
1
fromEnum LogLevelFlags
LogLevelFlagsFlagFatal = Int
2
fromEnum LogLevelFlags
LogLevelFlagsLevelError = Int
4
fromEnum LogLevelFlags
LogLevelFlagsLevelCritical = Int
8
fromEnum LogLevelFlags
LogLevelFlagsLevelWarning = Int
16
fromEnum LogLevelFlags
LogLevelFlagsLevelMessage = Int
32
fromEnum LogLevelFlags
LogLevelFlagsLevelInfo = Int
64
fromEnum LogLevelFlags
LogLevelFlagsLevelDebug = Int
128
fromEnum LogLevelFlags
LogLevelFlagsLevelMask = Int
-4
fromEnum (AnotherLogLevelFlags Int
k) = Int
k
toEnum :: Int -> LogLevelFlags
toEnum Int
1 = LogLevelFlags
LogLevelFlagsFlagRecursion
toEnum Int
2 = LogLevelFlags
LogLevelFlagsFlagFatal
toEnum Int
4 = LogLevelFlags
LogLevelFlagsLevelError
toEnum Int
8 = LogLevelFlags
LogLevelFlagsLevelCritical
toEnum Int
16 = LogLevelFlags
LogLevelFlagsLevelWarning
toEnum Int
32 = LogLevelFlags
LogLevelFlagsLevelMessage
toEnum Int
64 = LogLevelFlags
LogLevelFlagsLevelInfo
toEnum Int
128 = LogLevelFlags
LogLevelFlagsLevelDebug
toEnum Int
-4 = LogLevelFlags
LogLevelFlagsLevelMask
toEnum Int
k = Int -> LogLevelFlags
AnotherLogLevelFlags Int
k
instance P.Ord LogLevelFlags where
compare :: LogLevelFlags -> LogLevelFlags -> Ordering
compare LogLevelFlags
a LogLevelFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (LogLevelFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum LogLevelFlags
a) (LogLevelFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum LogLevelFlags
b)
instance IsGFlag LogLevelFlags
data KeyFileFlags =
KeyFileFlagsNone
|
| KeyFileFlagsKeepTranslations
| AnotherKeyFileFlags Int
deriving (Int -> KeyFileFlags -> ShowS
[KeyFileFlags] -> ShowS
KeyFileFlags -> String
(Int -> KeyFileFlags -> ShowS)
-> (KeyFileFlags -> String)
-> ([KeyFileFlags] -> ShowS)
-> Show KeyFileFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [KeyFileFlags] -> ShowS
$cshowList :: [KeyFileFlags] -> ShowS
show :: KeyFileFlags -> String
$cshow :: KeyFileFlags -> String
showsPrec :: Int -> KeyFileFlags -> ShowS
$cshowsPrec :: Int -> KeyFileFlags -> ShowS
Show, KeyFileFlags -> KeyFileFlags -> Bool
(KeyFileFlags -> KeyFileFlags -> Bool)
-> (KeyFileFlags -> KeyFileFlags -> Bool) -> Eq KeyFileFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: KeyFileFlags -> KeyFileFlags -> Bool
$c/= :: KeyFileFlags -> KeyFileFlags -> Bool
== :: KeyFileFlags -> KeyFileFlags -> Bool
$c== :: KeyFileFlags -> KeyFileFlags -> Bool
Eq)
instance P.Enum KeyFileFlags where
fromEnum :: KeyFileFlags -> Int
fromEnum KeyFileFlags
KeyFileFlagsNone = Int
0
fromEnum KeyFileFlags
KeyFileFlagsKeepComments = Int
1
fromEnum KeyFileFlags
KeyFileFlagsKeepTranslations = Int
2
fromEnum (AnotherKeyFileFlags Int
k) = Int
k
toEnum :: Int -> KeyFileFlags
toEnum Int
0 = KeyFileFlags
KeyFileFlagsNone
toEnum Int
1 = KeyFileFlags
KeyFileFlagsKeepComments
toEnum Int
2 = KeyFileFlags
KeyFileFlagsKeepTranslations
toEnum Int
k = Int -> KeyFileFlags
AnotherKeyFileFlags Int
k
instance P.Ord KeyFileFlags where
compare :: KeyFileFlags -> KeyFileFlags -> Ordering
compare KeyFileFlags
a KeyFileFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (KeyFileFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum KeyFileFlags
a) (KeyFileFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum KeyFileFlags
b)
instance IsGFlag KeyFileFlags
data IOFlags =
IOFlagsAppend
| IOFlagsNonblock
| IOFlagsIsReadable
| IOFlagsIsWritable
| IOFlagsIsWriteable
| IOFlagsIsSeekable
| IOFlagsMask
| IOFlagsGetMask
| IOFlagsSetMask
| AnotherIOFlags Int
deriving (Int -> IOFlags -> ShowS
[IOFlags] -> ShowS
IOFlags -> String
(Int -> IOFlags -> ShowS)
-> (IOFlags -> String) -> ([IOFlags] -> ShowS) -> Show IOFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IOFlags] -> ShowS
$cshowList :: [IOFlags] -> ShowS
show :: IOFlags -> String
$cshow :: IOFlags -> String
showsPrec :: Int -> IOFlags -> ShowS
$cshowsPrec :: Int -> IOFlags -> ShowS
Show, IOFlags -> IOFlags -> Bool
(IOFlags -> IOFlags -> Bool)
-> (IOFlags -> IOFlags -> Bool) -> Eq IOFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IOFlags -> IOFlags -> Bool
$c/= :: IOFlags -> IOFlags -> Bool
== :: IOFlags -> IOFlags -> Bool
$c== :: IOFlags -> IOFlags -> Bool
Eq)
instance P.Enum IOFlags where
fromEnum :: IOFlags -> Int
fromEnum IOFlags
IOFlagsAppend = Int
1
fromEnum IOFlags
IOFlagsNonblock = Int
2
fromEnum IOFlags
IOFlagsIsReadable = Int
4
fromEnum IOFlags
IOFlagsIsWritable = Int
8
fromEnum IOFlags
IOFlagsIsWriteable = Int
8
fromEnum IOFlags
IOFlagsIsSeekable = Int
16
fromEnum IOFlags
IOFlagsMask = Int
31
fromEnum IOFlags
IOFlagsGetMask = Int
31
fromEnum IOFlags
IOFlagsSetMask = Int
3
fromEnum (AnotherIOFlags Int
k) = Int
k
toEnum :: Int -> IOFlags
toEnum Int
1 = IOFlags
IOFlagsAppend
toEnum Int
2 = IOFlags
IOFlagsNonblock
toEnum Int
4 = IOFlags
IOFlagsIsReadable
toEnum Int
8 = IOFlags
IOFlagsIsWritable
toEnum Int
16 = IOFlags
IOFlagsIsSeekable
toEnum Int
31 = IOFlags
IOFlagsMask
toEnum Int
3 = IOFlags
IOFlagsSetMask
toEnum Int
k = Int -> IOFlags
AnotherIOFlags Int
k
instance P.Ord IOFlags where
compare :: IOFlags -> IOFlags -> Ordering
compare IOFlags
a IOFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (IOFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum IOFlags
a) (IOFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum IOFlags
b)
instance IsGFlag IOFlags
data IOCondition =
IOConditionIn
| IOConditionOut
| IOConditionPri
| IOConditionErr
| IOConditionHup
| IOConditionNval
| AnotherIOCondition Int
deriving (Int -> IOCondition -> ShowS
[IOCondition] -> ShowS
IOCondition -> String
(Int -> IOCondition -> ShowS)
-> (IOCondition -> String)
-> ([IOCondition] -> ShowS)
-> Show IOCondition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [IOCondition] -> ShowS
$cshowList :: [IOCondition] -> ShowS
show :: IOCondition -> String
$cshow :: IOCondition -> String
showsPrec :: Int -> IOCondition -> ShowS
$cshowsPrec :: Int -> IOCondition -> ShowS
Show, IOCondition -> IOCondition -> Bool
(IOCondition -> IOCondition -> Bool)
-> (IOCondition -> IOCondition -> Bool) -> Eq IOCondition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: IOCondition -> IOCondition -> Bool
$c/= :: IOCondition -> IOCondition -> Bool
== :: IOCondition -> IOCondition -> Bool
$c== :: IOCondition -> IOCondition -> Bool
Eq)
instance P.Enum IOCondition where
fromEnum :: IOCondition -> Int
fromEnum IOCondition
IOConditionIn = Int
1
fromEnum IOCondition
IOConditionOut = Int
4
fromEnum IOCondition
IOConditionPri = Int
2
fromEnum IOCondition
IOConditionErr = Int
8
fromEnum IOCondition
IOConditionHup = Int
16
fromEnum IOCondition
IOConditionNval = Int
32
fromEnum (AnotherIOCondition Int
k) = Int
k
toEnum :: Int -> IOCondition
toEnum Int
1 = IOCondition
IOConditionIn
toEnum Int
4 = IOCondition
IOConditionOut
toEnum Int
2 = IOCondition
IOConditionPri
toEnum Int
8 = IOCondition
IOConditionErr
toEnum Int
16 = IOCondition
IOConditionHup
toEnum Int
32 = IOCondition
IOConditionNval
toEnum Int
k = Int -> IOCondition
AnotherIOCondition Int
k
instance P.Ord IOCondition where
compare :: IOCondition -> IOCondition -> Ordering
compare IOCondition
a IOCondition
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (IOCondition -> Int
forall a. Enum a => a -> Int
P.fromEnum IOCondition
a) (IOCondition -> Int
forall a. Enum a => a -> Int
P.fromEnum IOCondition
b)
type instance O.ParentTypes IOCondition = '[]
instance O.HasParentTypes IOCondition
foreign import ccall "g_io_condition_get_type" c_g_io_condition_get_type ::
IO GType
instance B.Types.TypedObject IOCondition where
glibType :: IO GType
glibType = IO GType
c_g_io_condition_get_type
instance B.Types.BoxedFlags IOCondition
instance IsGFlag IOCondition
data HookFlagMask =
HookFlagMaskActive
| HookFlagMaskInCall
| HookFlagMaskMask
| AnotherHookFlagMask Int
deriving (Int -> HookFlagMask -> ShowS
[HookFlagMask] -> ShowS
HookFlagMask -> String
(Int -> HookFlagMask -> ShowS)
-> (HookFlagMask -> String)
-> ([HookFlagMask] -> ShowS)
-> Show HookFlagMask
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HookFlagMask] -> ShowS
$cshowList :: [HookFlagMask] -> ShowS
show :: HookFlagMask -> String
$cshow :: HookFlagMask -> String
showsPrec :: Int -> HookFlagMask -> ShowS
$cshowsPrec :: Int -> HookFlagMask -> ShowS
Show, HookFlagMask -> HookFlagMask -> Bool
(HookFlagMask -> HookFlagMask -> Bool)
-> (HookFlagMask -> HookFlagMask -> Bool) -> Eq HookFlagMask
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HookFlagMask -> HookFlagMask -> Bool
$c/= :: HookFlagMask -> HookFlagMask -> Bool
== :: HookFlagMask -> HookFlagMask -> Bool
$c== :: HookFlagMask -> HookFlagMask -> Bool
Eq)
instance P.Enum HookFlagMask where
fromEnum :: HookFlagMask -> Int
fromEnum HookFlagMask
HookFlagMaskActive = Int
1
fromEnum HookFlagMask
HookFlagMaskInCall = Int
2
fromEnum HookFlagMask
HookFlagMaskMask = Int
15
fromEnum (AnotherHookFlagMask Int
k) = Int
k
toEnum :: Int -> HookFlagMask
toEnum Int
1 = HookFlagMask
HookFlagMaskActive
toEnum Int
2 = HookFlagMask
HookFlagMaskInCall
toEnum Int
15 = HookFlagMask
HookFlagMaskMask
toEnum Int
k = Int -> HookFlagMask
AnotherHookFlagMask Int
k
instance P.Ord HookFlagMask where
compare :: HookFlagMask -> HookFlagMask -> Ordering
compare HookFlagMask
a HookFlagMask
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (HookFlagMask -> Int
forall a. Enum a => a -> Int
P.fromEnum HookFlagMask
a) (HookFlagMask -> Int
forall a. Enum a => a -> Int
P.fromEnum HookFlagMask
b)
instance IsGFlag HookFlagMask
data FormatSizeFlags =
FormatSizeFlagsDefault
| FormatSizeFlagsLongFormat
| FormatSizeFlagsIecUnits
| FormatSizeFlagsBits
| AnotherFormatSizeFlags Int
deriving (Int -> FormatSizeFlags -> ShowS
[FormatSizeFlags] -> ShowS
FormatSizeFlags -> String
(Int -> FormatSizeFlags -> ShowS)
-> (FormatSizeFlags -> String)
-> ([FormatSizeFlags] -> ShowS)
-> Show FormatSizeFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FormatSizeFlags] -> ShowS
$cshowList :: [FormatSizeFlags] -> ShowS
show :: FormatSizeFlags -> String
$cshow :: FormatSizeFlags -> String
showsPrec :: Int -> FormatSizeFlags -> ShowS
$cshowsPrec :: Int -> FormatSizeFlags -> ShowS
Show, FormatSizeFlags -> FormatSizeFlags -> Bool
(FormatSizeFlags -> FormatSizeFlags -> Bool)
-> (FormatSizeFlags -> FormatSizeFlags -> Bool)
-> Eq FormatSizeFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FormatSizeFlags -> FormatSizeFlags -> Bool
$c/= :: FormatSizeFlags -> FormatSizeFlags -> Bool
== :: FormatSizeFlags -> FormatSizeFlags -> Bool
$c== :: FormatSizeFlags -> FormatSizeFlags -> Bool
Eq)
instance P.Enum FormatSizeFlags where
fromEnum :: FormatSizeFlags -> Int
fromEnum FormatSizeFlags
FormatSizeFlagsDefault = Int
0
fromEnum FormatSizeFlags
FormatSizeFlagsLongFormat = Int
1
fromEnum FormatSizeFlags
FormatSizeFlagsIecUnits = Int
2
fromEnum FormatSizeFlags
FormatSizeFlagsBits = Int
4
fromEnum (AnotherFormatSizeFlags Int
k) = Int
k
toEnum :: Int -> FormatSizeFlags
toEnum Int
0 = FormatSizeFlags
FormatSizeFlagsDefault
toEnum Int
1 = FormatSizeFlags
FormatSizeFlagsLongFormat
toEnum Int
2 = FormatSizeFlags
FormatSizeFlagsIecUnits
toEnum Int
4 = FormatSizeFlags
FormatSizeFlagsBits
toEnum Int
k = Int -> FormatSizeFlags
AnotherFormatSizeFlags Int
k
instance P.Ord FormatSizeFlags where
compare :: FormatSizeFlags -> FormatSizeFlags -> Ordering
compare FormatSizeFlags
a FormatSizeFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (FormatSizeFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum FormatSizeFlags
a) (FormatSizeFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum FormatSizeFlags
b)
instance IsGFlag FormatSizeFlags
data FileTest =
FileTestIsRegular
| FileTestIsSymlink
| FileTestIsDir
| FileTestIsExecutable
| FileTestExists
| AnotherFileTest Int
deriving (Int -> FileTest -> ShowS
[FileTest] -> ShowS
FileTest -> String
(Int -> FileTest -> ShowS)
-> (FileTest -> String) -> ([FileTest] -> ShowS) -> Show FileTest
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FileTest] -> ShowS
$cshowList :: [FileTest] -> ShowS
show :: FileTest -> String
$cshow :: FileTest -> String
showsPrec :: Int -> FileTest -> ShowS
$cshowsPrec :: Int -> FileTest -> ShowS
Show, FileTest -> FileTest -> Bool
(FileTest -> FileTest -> Bool)
-> (FileTest -> FileTest -> Bool) -> Eq FileTest
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FileTest -> FileTest -> Bool
$c/= :: FileTest -> FileTest -> Bool
== :: FileTest -> FileTest -> Bool
$c== :: FileTest -> FileTest -> Bool
Eq)
instance P.Enum FileTest where
fromEnum :: FileTest -> Int
fromEnum FileTest
FileTestIsRegular = Int
1
fromEnum FileTest
FileTestIsSymlink = Int
2
fromEnum FileTest
FileTestIsDir = Int
4
fromEnum FileTest
FileTestIsExecutable = Int
8
fromEnum FileTest
FileTestExists = Int
16
fromEnum (AnotherFileTest Int
k) = Int
k
toEnum :: Int -> FileTest
toEnum Int
1 = FileTest
FileTestIsRegular
toEnum Int
2 = FileTest
FileTestIsSymlink
toEnum Int
4 = FileTest
FileTestIsDir
toEnum Int
8 = FileTest
FileTestIsExecutable
toEnum Int
16 = FileTest
FileTestExists
toEnum Int
k = Int -> FileTest
AnotherFileTest Int
k
instance P.Ord FileTest where
compare :: FileTest -> FileTest -> Ordering
compare FileTest
a FileTest
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (FileTest -> Int
forall a. Enum a => a -> Int
P.fromEnum FileTest
a) (FileTest -> Int
forall a. Enum a => a -> Int
P.fromEnum FileTest
b)
instance IsGFlag FileTest
data FileSetContentsFlags =
FileSetContentsFlagsNone
| FileSetContentsFlagsConsistent
| FileSetContentsFlagsDurable
| FileSetContentsFlagsOnlyExisting
| AnotherFileSetContentsFlags Int
deriving (Int -> FileSetContentsFlags -> ShowS
[FileSetContentsFlags] -> ShowS
FileSetContentsFlags -> String
(Int -> FileSetContentsFlags -> ShowS)
-> (FileSetContentsFlags -> String)
-> ([FileSetContentsFlags] -> ShowS)
-> Show FileSetContentsFlags
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FileSetContentsFlags] -> ShowS
$cshowList :: [FileSetContentsFlags] -> ShowS
show :: FileSetContentsFlags -> String
$cshow :: FileSetContentsFlags -> String
showsPrec :: Int -> FileSetContentsFlags -> ShowS
$cshowsPrec :: Int -> FileSetContentsFlags -> ShowS
Show, FileSetContentsFlags -> FileSetContentsFlags -> Bool
(FileSetContentsFlags -> FileSetContentsFlags -> Bool)
-> (FileSetContentsFlags -> FileSetContentsFlags -> Bool)
-> Eq FileSetContentsFlags
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FileSetContentsFlags -> FileSetContentsFlags -> Bool
$c/= :: FileSetContentsFlags -> FileSetContentsFlags -> Bool
== :: FileSetContentsFlags -> FileSetContentsFlags -> Bool
$c== :: FileSetContentsFlags -> FileSetContentsFlags -> Bool
Eq)
instance P.Enum FileSetContentsFlags where
fromEnum :: FileSetContentsFlags -> Int
fromEnum FileSetContentsFlags
FileSetContentsFlagsNone = Int
0
fromEnum FileSetContentsFlags
FileSetContentsFlagsConsistent = Int
1
fromEnum FileSetContentsFlags
FileSetContentsFlagsDurable = Int
2
fromEnum FileSetContentsFlags
FileSetContentsFlagsOnlyExisting = Int
4
fromEnum (AnotherFileSetContentsFlags Int
k) = Int
k
toEnum :: Int -> FileSetContentsFlags
toEnum Int
0 = FileSetContentsFlags
FileSetContentsFlagsNone
toEnum Int
1 = FileSetContentsFlags
FileSetContentsFlagsConsistent
toEnum Int
2 = FileSetContentsFlags
FileSetContentsFlagsDurable
toEnum Int
4 = FileSetContentsFlags
FileSetContentsFlagsOnlyExisting
toEnum Int
k = Int -> FileSetContentsFlags
AnotherFileSetContentsFlags Int
k
instance P.Ord FileSetContentsFlags where
compare :: FileSetContentsFlags -> FileSetContentsFlags -> Ordering
compare FileSetContentsFlags
a FileSetContentsFlags
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (FileSetContentsFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum FileSetContentsFlags
a) (FileSetContentsFlags -> Int
forall a. Enum a => a -> Int
P.fromEnum FileSetContentsFlags
b)
instance IsGFlag FileSetContentsFlags
data AsciiType =
AsciiTypeAlnum
| AsciiTypeAlpha
| AsciiTypeCntrl
| AsciiTypeDigit
| AsciiTypeGraph
| AsciiTypeLower
| AsciiTypePrint
| AsciiTypePunct
| AsciiTypeSpace
| AsciiTypeUpper
| AsciiTypeXdigit
| AnotherAsciiType Int
deriving (Int -> AsciiType -> ShowS
[AsciiType] -> ShowS
AsciiType -> String
(Int -> AsciiType -> ShowS)
-> (AsciiType -> String)
-> ([AsciiType] -> ShowS)
-> Show AsciiType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AsciiType] -> ShowS
$cshowList :: [AsciiType] -> ShowS
show :: AsciiType -> String
$cshow :: AsciiType -> String
showsPrec :: Int -> AsciiType -> ShowS
$cshowsPrec :: Int -> AsciiType -> ShowS
Show, AsciiType -> AsciiType -> Bool
(AsciiType -> AsciiType -> Bool)
-> (AsciiType -> AsciiType -> Bool) -> Eq AsciiType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AsciiType -> AsciiType -> Bool
$c/= :: AsciiType -> AsciiType -> Bool
== :: AsciiType -> AsciiType -> Bool
$c== :: AsciiType -> AsciiType -> Bool
Eq)
instance P.Enum AsciiType where
fromEnum :: AsciiType -> Int
fromEnum AsciiType
AsciiTypeAlnum = Int
1
fromEnum AsciiType
AsciiTypeAlpha = Int
2
fromEnum AsciiType
AsciiTypeCntrl = Int
4
fromEnum AsciiType
AsciiTypeDigit = Int
8
fromEnum AsciiType
AsciiTypeGraph = Int
16
fromEnum AsciiType
AsciiTypeLower = Int
32
fromEnum AsciiType
AsciiTypePrint = Int
64
fromEnum AsciiType
AsciiTypePunct = Int
128
fromEnum AsciiType
AsciiTypeSpace = Int
256
fromEnum AsciiType
AsciiTypeUpper = Int
512
fromEnum AsciiType
AsciiTypeXdigit = Int
1024
fromEnum (AnotherAsciiType Int
k) = Int
k
toEnum :: Int -> AsciiType
toEnum Int
1 = AsciiType
AsciiTypeAlnum
toEnum Int
2 = AsciiType
AsciiTypeAlpha
toEnum Int
4 = AsciiType
AsciiTypeCntrl
toEnum Int
8 = AsciiType
AsciiTypeDigit
toEnum Int
16 = AsciiType
AsciiTypeGraph
toEnum Int
32 = AsciiType
AsciiTypeLower
toEnum Int
64 = AsciiType
AsciiTypePrint
toEnum Int
128 = AsciiType
AsciiTypePunct
toEnum Int
256 = AsciiType
AsciiTypeSpace
toEnum Int
512 = AsciiType
AsciiTypeUpper
toEnum Int
1024 = AsciiType
AsciiTypeXdigit
toEnum Int
k = Int -> AsciiType
AnotherAsciiType Int
k
instance P.Ord AsciiType where
compare :: AsciiType -> AsciiType -> Ordering
compare AsciiType
a AsciiType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (AsciiType -> Int
forall a. Enum a => a -> Int
P.fromEnum AsciiType
a) (AsciiType -> Int
forall a. Enum a => a -> Int
P.fromEnum AsciiType
b)
instance IsGFlag AsciiType