#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.GLib.Flags
(
AsciiType(..) ,
FileTest(..) ,
FormatSizeFlags(..) ,
HookFlagMask(..) ,
IOCondition(..) ,
IOFlags(..) ,
KeyFileFlags(..) ,
LogLevelFlags(..) ,
MarkupCollectType(..) ,
MarkupParseFlags(..) ,
OptionFlags(..) ,
RegexCompileFlags(..) ,
RegexMatchFlags(..) ,
SpawnFlags(..) ,
TestSubprocessFlags(..) ,
TestTrapFlags(..) ,
TraverseFlags(..) ,
) 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.ManagedPtr as B.ManagedPtr
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 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
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 TraverseFlagsLeaves = 1
fromEnum TraverseFlagsNonLeaves = 2
fromEnum TraverseFlagsAll = 3
fromEnum TraverseFlagsMask = 3
fromEnum TraverseFlagsLeafs = 1
fromEnum TraverseFlagsNonLeafs = 2
fromEnum (AnotherTraverseFlags k :: Int
k) = Int
k
toEnum :: Int -> TraverseFlags
toEnum 1 = TraverseFlags
TraverseFlagsLeaves
toEnum 2 = TraverseFlags
TraverseFlagsNonLeaves
toEnum 3 = TraverseFlags
TraverseFlagsAll
toEnum k :: Int
k = Int -> TraverseFlags
AnotherTraverseFlags Int
k
instance P.Ord TraverseFlags where
compare :: TraverseFlags -> TraverseFlags -> Ordering
compare a :: TraverseFlags
a b :: 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 ["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 TestTrapFlagsSilenceStdout = 128
fromEnum TestTrapFlagsSilenceStderr = 256
fromEnum TestTrapFlagsInheritStdin = 512
fromEnum (AnotherTestTrapFlags k :: Int
k) = Int
k
toEnum :: Int -> TestTrapFlags
toEnum 128 = TestTrapFlags
TestTrapFlagsSilenceStdout
toEnum 256 = TestTrapFlags
TestTrapFlagsSilenceStderr
toEnum 512 = TestTrapFlags
TestTrapFlagsInheritStdin
toEnum k :: Int
k = Int -> TestTrapFlags
AnotherTestTrapFlags Int
k
instance P.Ord TestTrapFlags where
compare :: TestTrapFlags -> TestTrapFlags -> Ordering
compare a :: TestTrapFlags
a b :: 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 TestSubprocessFlagsStdin = 1
fromEnum TestSubprocessFlagsStdout = 2
fromEnum TestSubprocessFlagsStderr = 4
fromEnum (AnotherTestSubprocessFlags k :: Int
k) = Int
k
toEnum :: Int -> TestSubprocessFlags
toEnum 1 = TestSubprocessFlags
TestSubprocessFlagsStdin
toEnum 2 = TestSubprocessFlags
TestSubprocessFlagsStdout
toEnum 4 = TestSubprocessFlags
TestSubprocessFlagsStderr
toEnum k :: Int
k = Int -> TestSubprocessFlags
AnotherTestSubprocessFlags Int
k
instance P.Ord TestSubprocessFlags where
compare :: TestSubprocessFlags -> TestSubprocessFlags -> Ordering
compare a :: TestSubprocessFlags
a b :: 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 SpawnFlagsDefault = 0
fromEnum SpawnFlagsLeaveDescriptorsOpen = 1
fromEnum SpawnFlagsDoNotReapChild = 2
fromEnum SpawnFlagsSearchPath = 4
fromEnum SpawnFlagsStdoutToDevNull = 8
fromEnum SpawnFlagsStderrToDevNull = 16
fromEnum SpawnFlagsChildInheritsStdin = 32
fromEnum SpawnFlagsFileAndArgvZero = 64
fromEnum SpawnFlagsSearchPathFromEnvp = 128
fromEnum SpawnFlagsCloexecPipes = 256
fromEnum (AnotherSpawnFlags k :: Int
k) = Int
k
toEnum :: Int -> SpawnFlags
toEnum 0 = SpawnFlags
SpawnFlagsDefault
toEnum 1 = SpawnFlags
SpawnFlagsLeaveDescriptorsOpen
toEnum 2 = SpawnFlags
SpawnFlagsDoNotReapChild
toEnum 4 = SpawnFlags
SpawnFlagsSearchPath
toEnum 8 = SpawnFlags
SpawnFlagsStdoutToDevNull
toEnum 16 = SpawnFlags
SpawnFlagsStderrToDevNull
toEnum 32 = SpawnFlags
SpawnFlagsChildInheritsStdin
toEnum 64 = SpawnFlags
SpawnFlagsFileAndArgvZero
toEnum 128 = SpawnFlags
SpawnFlagsSearchPathFromEnvp
toEnum 256 = SpawnFlags
SpawnFlagsCloexecPipes
toEnum k :: Int
k = Int -> SpawnFlags
AnotherSpawnFlags Int
k
instance P.Ord SpawnFlags where
compare :: SpawnFlags -> SpawnFlags -> Ordering
compare a :: SpawnFlags
a b :: 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 RegexMatchFlagsAnchored = 16
fromEnum RegexMatchFlagsNotbol = 128
fromEnum RegexMatchFlagsNoteol = 256
fromEnum RegexMatchFlagsNotempty = 1024
fromEnum RegexMatchFlagsPartial = 32768
fromEnum RegexMatchFlagsNewlineCr = 1048576
fromEnum RegexMatchFlagsNewlineLf = 2097152
fromEnum RegexMatchFlagsNewlineCrlf = 3145728
fromEnum RegexMatchFlagsNewlineAny = 4194304
fromEnum RegexMatchFlagsNewlineAnycrlf = 5242880
fromEnum RegexMatchFlagsBsrAnycrlf = 8388608
fromEnum RegexMatchFlagsBsrAny = 16777216
fromEnum RegexMatchFlagsPartialSoft = 32768
fromEnum RegexMatchFlagsPartialHard = 134217728
fromEnum RegexMatchFlagsNotemptyAtstart = 268435456
fromEnum (AnotherRegexMatchFlags k :: Int
k) = Int
k
toEnum :: Int -> RegexMatchFlags
toEnum 16 = RegexMatchFlags
RegexMatchFlagsAnchored
toEnum 128 = RegexMatchFlags
RegexMatchFlagsNotbol
toEnum 256 = RegexMatchFlags
RegexMatchFlagsNoteol
toEnum 1024 = RegexMatchFlags
RegexMatchFlagsNotempty
toEnum 32768 = RegexMatchFlags
RegexMatchFlagsPartial
toEnum 1048576 = RegexMatchFlags
RegexMatchFlagsNewlineCr
toEnum 2097152 = RegexMatchFlags
RegexMatchFlagsNewlineLf
toEnum 3145728 = RegexMatchFlags
RegexMatchFlagsNewlineCrlf
toEnum 4194304 = RegexMatchFlags
RegexMatchFlagsNewlineAny
toEnum 5242880 = RegexMatchFlags
RegexMatchFlagsNewlineAnycrlf
toEnum 8388608 = RegexMatchFlags
RegexMatchFlagsBsrAnycrlf
toEnum 16777216 = RegexMatchFlags
RegexMatchFlagsBsrAny
toEnum 134217728 = RegexMatchFlags
RegexMatchFlagsPartialHard
toEnum 268435456 = RegexMatchFlags
RegexMatchFlagsNotemptyAtstart
toEnum k :: Int
k = Int -> RegexMatchFlags
AnotherRegexMatchFlags Int
k
instance P.Ord RegexMatchFlags where
compare :: RegexMatchFlags -> RegexMatchFlags -> Ordering
compare a :: RegexMatchFlags
a b :: 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 RegexCompileFlagsCaseless = 1
fromEnum RegexCompileFlagsMultiline = 2
fromEnum RegexCompileFlagsDotall = 4
fromEnum RegexCompileFlagsExtended = 8
fromEnum RegexCompileFlagsAnchored = 16
fromEnum RegexCompileFlagsDollarEndonly = 32
fromEnum RegexCompileFlagsUngreedy = 512
fromEnum RegexCompileFlagsRaw = 2048
fromEnum RegexCompileFlagsNoAutoCapture = 4096
fromEnum RegexCompileFlagsOptimize = 8192
fromEnum RegexCompileFlagsFirstline = 262144
fromEnum RegexCompileFlagsDupnames = 524288
fromEnum RegexCompileFlagsNewlineCr = 1048576
fromEnum RegexCompileFlagsNewlineLf = 2097152
fromEnum RegexCompileFlagsNewlineCrlf = 3145728
fromEnum RegexCompileFlagsNewlineAnycrlf = 5242880
fromEnum RegexCompileFlagsBsrAnycrlf = 8388608
fromEnum RegexCompileFlagsJavascriptCompat = 33554432
fromEnum (AnotherRegexCompileFlags k :: Int
k) = Int
k
toEnum :: Int -> RegexCompileFlags
toEnum 1 = RegexCompileFlags
RegexCompileFlagsCaseless
toEnum 2 = RegexCompileFlags
RegexCompileFlagsMultiline
toEnum 4 = RegexCompileFlags
RegexCompileFlagsDotall
toEnum 8 = RegexCompileFlags
RegexCompileFlagsExtended
toEnum 16 = RegexCompileFlags
RegexCompileFlagsAnchored
toEnum 32 = RegexCompileFlags
RegexCompileFlagsDollarEndonly
toEnum 512 = RegexCompileFlags
RegexCompileFlagsUngreedy
toEnum 2048 = RegexCompileFlags
RegexCompileFlagsRaw
toEnum 4096 = RegexCompileFlags
RegexCompileFlagsNoAutoCapture
toEnum 8192 = RegexCompileFlags
RegexCompileFlagsOptimize
toEnum 262144 = RegexCompileFlags
RegexCompileFlagsFirstline
toEnum 524288 = RegexCompileFlags
RegexCompileFlagsDupnames
toEnum 1048576 = RegexCompileFlags
RegexCompileFlagsNewlineCr
toEnum 2097152 = RegexCompileFlags
RegexCompileFlagsNewlineLf
toEnum 3145728 = RegexCompileFlags
RegexCompileFlagsNewlineCrlf
toEnum 5242880 = RegexCompileFlags
RegexCompileFlagsNewlineAnycrlf
toEnum 8388608 = RegexCompileFlags
RegexCompileFlagsBsrAnycrlf
toEnum 33554432 = RegexCompileFlags
RegexCompileFlagsJavascriptCompat
toEnum k :: Int
k = Int -> RegexCompileFlags
AnotherRegexCompileFlags Int
k
instance P.Ord RegexCompileFlags where
compare :: RegexCompileFlags -> RegexCompileFlags -> Ordering
compare a :: RegexCompileFlags
a b :: 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 OptionFlagsNone = 0
fromEnum OptionFlagsHidden = 1
fromEnum OptionFlagsInMain = 2
fromEnum OptionFlagsReverse = 4
fromEnum OptionFlagsNoArg = 8
fromEnum OptionFlagsFilename = 16
fromEnum OptionFlagsOptionalArg = 32
fromEnum OptionFlagsNoalias = 64
fromEnum (AnotherOptionFlags k :: Int
k) = Int
k
toEnum :: Int -> OptionFlags
toEnum 0 = OptionFlags
OptionFlagsNone
toEnum 1 = OptionFlags
OptionFlagsHidden
toEnum 2 = OptionFlags
OptionFlagsInMain
toEnum 4 = OptionFlags
OptionFlagsReverse
toEnum 8 = OptionFlags
OptionFlagsNoArg
toEnum 16 = OptionFlags
OptionFlagsFilename
toEnum 32 = OptionFlags
OptionFlagsOptionalArg
toEnum 64 = OptionFlags
OptionFlagsNoalias
toEnum k :: Int
k = Int -> OptionFlags
AnotherOptionFlags Int
k
instance P.Ord OptionFlags where
compare :: OptionFlags -> OptionFlags -> Ordering
compare a :: OptionFlags
a b :: 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 MarkupParseFlagsDoNotUseThisUnsupportedFlag = 1
fromEnum MarkupParseFlagsTreatCdataAsText = 2
fromEnum MarkupParseFlagsPrefixErrorPosition = 4
fromEnum MarkupParseFlagsIgnoreQualified = 8
fromEnum (AnotherMarkupParseFlags k :: Int
k) = Int
k
toEnum :: Int -> MarkupParseFlags
toEnum 1 = MarkupParseFlags
MarkupParseFlagsDoNotUseThisUnsupportedFlag
toEnum 2 = MarkupParseFlags
MarkupParseFlagsTreatCdataAsText
toEnum 4 = MarkupParseFlags
MarkupParseFlagsPrefixErrorPosition
toEnum 8 = MarkupParseFlags
MarkupParseFlagsIgnoreQualified
toEnum k :: Int
k = Int -> MarkupParseFlags
AnotherMarkupParseFlags Int
k
instance P.Ord MarkupParseFlags where
compare :: MarkupParseFlags -> MarkupParseFlags -> Ordering
compare a :: MarkupParseFlags
a b :: 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 MarkupCollectTypeInvalid = 0
fromEnum MarkupCollectTypeString = 1
fromEnum MarkupCollectTypeStrdup = 2
fromEnum MarkupCollectTypeBoolean = 3
fromEnum MarkupCollectTypeTristate = 4
fromEnum MarkupCollectTypeOptional = 65536
fromEnum (AnotherMarkupCollectType k :: Int
k) = Int
k
toEnum :: Int -> MarkupCollectType
toEnum 0 = MarkupCollectType
MarkupCollectTypeInvalid
toEnum 1 = MarkupCollectType
MarkupCollectTypeString
toEnum 2 = MarkupCollectType
MarkupCollectTypeStrdup
toEnum 3 = MarkupCollectType
MarkupCollectTypeBoolean
toEnum 4 = MarkupCollectType
MarkupCollectTypeTristate
toEnum 65536 = MarkupCollectType
MarkupCollectTypeOptional
toEnum k :: Int
k = Int -> MarkupCollectType
AnotherMarkupCollectType Int
k
instance P.Ord MarkupCollectType where
compare :: MarkupCollectType -> MarkupCollectType -> Ordering
compare a :: MarkupCollectType
a b :: 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 LogLevelFlagsFlagRecursion = 1
fromEnum LogLevelFlagsFlagFatal = 2
fromEnum LogLevelFlagsLevelError = 4
fromEnum LogLevelFlagsLevelCritical = 8
fromEnum LogLevelFlagsLevelWarning = 16
fromEnum LogLevelFlagsLevelMessage = 32
fromEnum LogLevelFlagsLevelInfo = 64
fromEnum LogLevelFlagsLevelDebug = 128
fromEnum LogLevelFlagsLevelMask = -4
fromEnum (AnotherLogLevelFlags k :: Int
k) = Int
k
toEnum :: Int -> LogLevelFlags
toEnum 1 = LogLevelFlags
LogLevelFlagsFlagRecursion
toEnum 2 = LogLevelFlags
LogLevelFlagsFlagFatal
toEnum 4 = LogLevelFlags
LogLevelFlagsLevelError
toEnum 8 = LogLevelFlags
LogLevelFlagsLevelCritical
toEnum 16 = LogLevelFlags
LogLevelFlagsLevelWarning
toEnum 32 = LogLevelFlags
LogLevelFlagsLevelMessage
toEnum 64 = LogLevelFlags
LogLevelFlagsLevelInfo
toEnum 128 = LogLevelFlags
LogLevelFlagsLevelDebug
toEnum -4 = LogLevelFlags
LogLevelFlagsLevelMask
toEnum k :: Int
k = Int -> LogLevelFlags
AnotherLogLevelFlags Int
k
instance P.Ord LogLevelFlags where
compare :: LogLevelFlags -> LogLevelFlags -> Ordering
compare a :: LogLevelFlags
a b :: 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 KeyFileFlagsNone = 0
fromEnum KeyFileFlagsKeepComments = 1
fromEnum KeyFileFlagsKeepTranslations = 2
fromEnum (AnotherKeyFileFlags k :: Int
k) = Int
k
toEnum :: Int -> KeyFileFlags
toEnum 0 = KeyFileFlags
KeyFileFlagsNone
toEnum 1 = KeyFileFlags
KeyFileFlagsKeepComments
toEnum 2 = KeyFileFlags
KeyFileFlagsKeepTranslations
toEnum k :: Int
k = Int -> KeyFileFlags
AnotherKeyFileFlags Int
k
instance P.Ord KeyFileFlags where
compare :: KeyFileFlags -> KeyFileFlags -> Ordering
compare a :: KeyFileFlags
a b :: 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 IOFlagsAppend = 1
fromEnum IOFlagsNonblock = 2
fromEnum IOFlagsIsReadable = 4
fromEnum IOFlagsIsWritable = 8
fromEnum IOFlagsIsWriteable = 8
fromEnum IOFlagsIsSeekable = 16
fromEnum IOFlagsMask = 31
fromEnum IOFlagsGetMask = 31
fromEnum IOFlagsSetMask = 3
fromEnum (AnotherIOFlags k :: Int
k) = Int
k
toEnum :: Int -> IOFlags
toEnum 1 = IOFlags
IOFlagsAppend
toEnum 2 = IOFlags
IOFlagsNonblock
toEnum 4 = IOFlags
IOFlagsIsReadable
toEnum 8 = IOFlags
IOFlagsIsWritable
toEnum 16 = IOFlags
IOFlagsIsSeekable
toEnum 31 = IOFlags
IOFlagsMask
toEnum 3 = IOFlags
IOFlagsSetMask
toEnum k :: Int
k = Int -> IOFlags
AnotherIOFlags Int
k
instance P.Ord IOFlags where
compare :: IOFlags -> IOFlags -> Ordering
compare a :: IOFlags
a b :: 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 IOConditionIn = 1
fromEnum IOConditionOut = 4
fromEnum IOConditionPri = 2
fromEnum IOConditionErr = 8
fromEnum IOConditionHup = 16
fromEnum IOConditionNval = 32
fromEnum (AnotherIOCondition k :: Int
k) = Int
k
toEnum :: Int -> IOCondition
toEnum 1 = IOCondition
IOConditionIn
toEnum 4 = IOCondition
IOConditionOut
toEnum 2 = IOCondition
IOConditionPri
toEnum 8 = IOCondition
IOConditionErr
toEnum 16 = IOCondition
IOConditionHup
toEnum 32 = IOCondition
IOConditionNval
toEnum k :: Int
k = Int -> IOCondition
AnotherIOCondition Int
k
instance P.Ord IOCondition where
compare :: IOCondition -> IOCondition -> Ordering
compare a :: IOCondition
a b :: 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)
foreign import ccall "g_io_condition_get_type" c_g_io_condition_get_type ::
IO GType
instance BoxedFlags IOCondition where
boxedFlagsType :: Proxy IOCondition -> IO GType
boxedFlagsType _ = IO GType
c_g_io_condition_get_type
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 HookFlagMaskActive = 1
fromEnum HookFlagMaskInCall = 2
fromEnum HookFlagMaskMask = 15
fromEnum (AnotherHookFlagMask k :: Int
k) = Int
k
toEnum :: Int -> HookFlagMask
toEnum 1 = HookFlagMask
HookFlagMaskActive
toEnum 2 = HookFlagMask
HookFlagMaskInCall
toEnum 15 = HookFlagMask
HookFlagMaskMask
toEnum k :: Int
k = Int -> HookFlagMask
AnotherHookFlagMask Int
k
instance P.Ord HookFlagMask where
compare :: HookFlagMask -> HookFlagMask -> Ordering
compare a :: HookFlagMask
a b :: 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 FormatSizeFlagsDefault = 0
fromEnum FormatSizeFlagsLongFormat = 1
fromEnum FormatSizeFlagsIecUnits = 2
fromEnum FormatSizeFlagsBits = 4
fromEnum (AnotherFormatSizeFlags k :: Int
k) = Int
k
toEnum :: Int -> FormatSizeFlags
toEnum 0 = FormatSizeFlags
FormatSizeFlagsDefault
toEnum 1 = FormatSizeFlags
FormatSizeFlagsLongFormat
toEnum 2 = FormatSizeFlags
FormatSizeFlagsIecUnits
toEnum 4 = FormatSizeFlags
FormatSizeFlagsBits
toEnum k :: Int
k = Int -> FormatSizeFlags
AnotherFormatSizeFlags Int
k
instance P.Ord FormatSizeFlags where
compare :: FormatSizeFlags -> FormatSizeFlags -> Ordering
compare a :: FormatSizeFlags
a b :: 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 FileTestIsRegular = 1
fromEnum FileTestIsSymlink = 2
fromEnum FileTestIsDir = 4
fromEnum FileTestIsExecutable = 8
fromEnum FileTestExists = 16
fromEnum (AnotherFileTest k :: Int
k) = Int
k
toEnum :: Int -> FileTest
toEnum 1 = FileTest
FileTestIsRegular
toEnum 2 = FileTest
FileTestIsSymlink
toEnum 4 = FileTest
FileTestIsDir
toEnum 8 = FileTest
FileTestIsExecutable
toEnum 16 = FileTest
FileTestExists
toEnum k :: Int
k = Int -> FileTest
AnotherFileTest Int
k
instance P.Ord FileTest where
compare :: FileTest -> FileTest -> Ordering
compare a :: FileTest
a b :: 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 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 AsciiTypeAlnum = 1
fromEnum AsciiTypeAlpha = 2
fromEnum AsciiTypeCntrl = 4
fromEnum AsciiTypeDigit = 8
fromEnum AsciiTypeGraph = 16
fromEnum AsciiTypeLower = 32
fromEnum AsciiTypePrint = 64
fromEnum AsciiTypePunct = 128
fromEnum AsciiTypeSpace = 256
fromEnum AsciiTypeUpper = 512
fromEnum AsciiTypeXdigit = 1024
fromEnum (AnotherAsciiType k :: Int
k) = Int
k
toEnum :: Int -> AsciiType
toEnum 1 = AsciiType
AsciiTypeAlnum
toEnum 2 = AsciiType
AsciiTypeAlpha
toEnum 4 = AsciiType
AsciiTypeCntrl
toEnum 8 = AsciiType
AsciiTypeDigit
toEnum 16 = AsciiType
AsciiTypeGraph
toEnum 32 = AsciiType
AsciiTypeLower
toEnum 64 = AsciiType
AsciiTypePrint
toEnum 128 = AsciiType
AsciiTypePunct
toEnum 256 = AsciiType
AsciiTypeSpace
toEnum 512 = AsciiType
AsciiTypeUpper
toEnum 1024 = AsciiType
AsciiTypeXdigit
toEnum k :: Int
k = Int -> AsciiType
AnotherAsciiType Int
k
instance P.Ord AsciiType where
compare :: AsciiType -> AsciiType -> Ordering
compare a :: AsciiType
a b :: 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