#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.GtkSource.Enums
(
BackgroundPatternType(..) ,
BracketMatchType(..) ,
ChangeCaseType(..) ,
CompletionActivation(..) ,
CompletionColumn(..) ,
CompressionType(..) ,
FileLoaderError(..) ,
catchFileLoaderError ,
handleFileLoaderError ,
FileSaverError(..) ,
catchFileSaverError ,
handleFileSaverError ,
GutterRendererAlignmentMode(..) ,
NewlineType(..) ,
SmartHomeEndType(..) ,
ViewGutterPosition(..) ,
) 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.GHashTable as B.GHT
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.Kind as DK
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
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
#else
#endif
data ViewGutterPosition =
ViewGutterPositionLines
| ViewGutterPositionMarks
| AnotherViewGutterPosition Int
deriving (Int -> ViewGutterPosition -> ShowS
[ViewGutterPosition] -> ShowS
ViewGutterPosition -> String
(Int -> ViewGutterPosition -> ShowS)
-> (ViewGutterPosition -> String)
-> ([ViewGutterPosition] -> ShowS)
-> Show ViewGutterPosition
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ViewGutterPosition -> ShowS
showsPrec :: Int -> ViewGutterPosition -> ShowS
$cshow :: ViewGutterPosition -> String
show :: ViewGutterPosition -> String
$cshowList :: [ViewGutterPosition] -> ShowS
showList :: [ViewGutterPosition] -> ShowS
Show, ViewGutterPosition -> ViewGutterPosition -> Bool
(ViewGutterPosition -> ViewGutterPosition -> Bool)
-> (ViewGutterPosition -> ViewGutterPosition -> Bool)
-> Eq ViewGutterPosition
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ViewGutterPosition -> ViewGutterPosition -> Bool
== :: ViewGutterPosition -> ViewGutterPosition -> Bool
$c/= :: ViewGutterPosition -> ViewGutterPosition -> Bool
/= :: ViewGutterPosition -> ViewGutterPosition -> Bool
Eq)
instance P.Enum ViewGutterPosition where
fromEnum :: ViewGutterPosition -> Int
fromEnum ViewGutterPosition
ViewGutterPositionLines = Int
-30
fromEnum ViewGutterPosition
ViewGutterPositionMarks = Int
-20
fromEnum (AnotherViewGutterPosition Int
k) = Int
k
toEnum :: Int -> ViewGutterPosition
toEnum Int
-30 = ViewGutterPosition
ViewGutterPositionLines
toEnum Int
-20 = ViewGutterPosition
ViewGutterPositionMarks
toEnum Int
k = Int -> ViewGutterPosition
AnotherViewGutterPosition Int
k
instance P.Ord ViewGutterPosition where
compare :: ViewGutterPosition -> ViewGutterPosition -> Ordering
compare ViewGutterPosition
a ViewGutterPosition
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ViewGutterPosition -> Int
forall a. Enum a => a -> Int
P.fromEnum ViewGutterPosition
a) (ViewGutterPosition -> Int
forall a. Enum a => a -> Int
P.fromEnum ViewGutterPosition
b)
type instance O.ParentTypes ViewGutterPosition = '[]
instance O.HasParentTypes ViewGutterPosition
foreign import ccall "gtk_source_view_gutter_position_get_type" c_gtk_source_view_gutter_position_get_type ::
IO GType
instance B.Types.TypedObject ViewGutterPosition where
glibType :: IO GType
glibType = IO GType
c_gtk_source_view_gutter_position_get_type
instance B.Types.BoxedEnum ViewGutterPosition
data SmartHomeEndType =
SmartHomeEndTypeDisabled
| SmartHomeEndTypeBefore
| SmartHomeEndTypeAfter
| SmartHomeEndTypeAlways
| AnotherSmartHomeEndType Int
deriving (Int -> SmartHomeEndType -> ShowS
[SmartHomeEndType] -> ShowS
SmartHomeEndType -> String
(Int -> SmartHomeEndType -> ShowS)
-> (SmartHomeEndType -> String)
-> ([SmartHomeEndType] -> ShowS)
-> Show SmartHomeEndType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SmartHomeEndType -> ShowS
showsPrec :: Int -> SmartHomeEndType -> ShowS
$cshow :: SmartHomeEndType -> String
show :: SmartHomeEndType -> String
$cshowList :: [SmartHomeEndType] -> ShowS
showList :: [SmartHomeEndType] -> ShowS
Show, SmartHomeEndType -> SmartHomeEndType -> Bool
(SmartHomeEndType -> SmartHomeEndType -> Bool)
-> (SmartHomeEndType -> SmartHomeEndType -> Bool)
-> Eq SmartHomeEndType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SmartHomeEndType -> SmartHomeEndType -> Bool
== :: SmartHomeEndType -> SmartHomeEndType -> Bool
$c/= :: SmartHomeEndType -> SmartHomeEndType -> Bool
/= :: SmartHomeEndType -> SmartHomeEndType -> Bool
Eq)
instance P.Enum SmartHomeEndType where
fromEnum :: SmartHomeEndType -> Int
fromEnum SmartHomeEndType
SmartHomeEndTypeDisabled = Int
0
fromEnum SmartHomeEndType
SmartHomeEndTypeBefore = Int
1
fromEnum SmartHomeEndType
SmartHomeEndTypeAfter = Int
2
fromEnum SmartHomeEndType
SmartHomeEndTypeAlways = Int
3
fromEnum (AnotherSmartHomeEndType Int
k) = Int
k
toEnum :: Int -> SmartHomeEndType
toEnum Int
0 = SmartHomeEndType
SmartHomeEndTypeDisabled
toEnum Int
1 = SmartHomeEndType
SmartHomeEndTypeBefore
toEnum Int
2 = SmartHomeEndType
SmartHomeEndTypeAfter
toEnum Int
3 = SmartHomeEndType
SmartHomeEndTypeAlways
toEnum Int
k = Int -> SmartHomeEndType
AnotherSmartHomeEndType Int
k
instance P.Ord SmartHomeEndType where
compare :: SmartHomeEndType -> SmartHomeEndType -> Ordering
compare SmartHomeEndType
a SmartHomeEndType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (SmartHomeEndType -> Int
forall a. Enum a => a -> Int
P.fromEnum SmartHomeEndType
a) (SmartHomeEndType -> Int
forall a. Enum a => a -> Int
P.fromEnum SmartHomeEndType
b)
type instance O.ParentTypes SmartHomeEndType = '[]
instance O.HasParentTypes SmartHomeEndType
foreign import ccall "gtk_source_smart_home_end_type_get_type" c_gtk_source_smart_home_end_type_get_type ::
IO GType
instance B.Types.TypedObject SmartHomeEndType where
glibType :: IO GType
glibType = IO GType
c_gtk_source_smart_home_end_type_get_type
instance B.Types.BoxedEnum SmartHomeEndType
data NewlineType =
NewlineTypeLf
| NewlineTypeCr
| NewlineTypeCrLf
| AnotherNewlineType Int
deriving (Int -> NewlineType -> ShowS
[NewlineType] -> ShowS
NewlineType -> String
(Int -> NewlineType -> ShowS)
-> (NewlineType -> String)
-> ([NewlineType] -> ShowS)
-> Show NewlineType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> NewlineType -> ShowS
showsPrec :: Int -> NewlineType -> ShowS
$cshow :: NewlineType -> String
show :: NewlineType -> String
$cshowList :: [NewlineType] -> ShowS
showList :: [NewlineType] -> ShowS
Show, NewlineType -> NewlineType -> Bool
(NewlineType -> NewlineType -> Bool)
-> (NewlineType -> NewlineType -> Bool) -> Eq NewlineType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: NewlineType -> NewlineType -> Bool
== :: NewlineType -> NewlineType -> Bool
$c/= :: NewlineType -> NewlineType -> Bool
/= :: NewlineType -> NewlineType -> Bool
Eq)
instance P.Enum NewlineType where
fromEnum :: NewlineType -> Int
fromEnum NewlineType
NewlineTypeLf = Int
0
fromEnum NewlineType
NewlineTypeCr = Int
1
fromEnum NewlineType
NewlineTypeCrLf = Int
2
fromEnum (AnotherNewlineType Int
k) = Int
k
toEnum :: Int -> NewlineType
toEnum Int
0 = NewlineType
NewlineTypeLf
toEnum Int
1 = NewlineType
NewlineTypeCr
toEnum Int
2 = NewlineType
NewlineTypeCrLf
toEnum Int
k = Int -> NewlineType
AnotherNewlineType Int
k
instance P.Ord NewlineType where
compare :: NewlineType -> NewlineType -> Ordering
compare NewlineType
a NewlineType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (NewlineType -> Int
forall a. Enum a => a -> Int
P.fromEnum NewlineType
a) (NewlineType -> Int
forall a. Enum a => a -> Int
P.fromEnum NewlineType
b)
type instance O.ParentTypes NewlineType = '[]
instance O.HasParentTypes NewlineType
foreign import ccall "gtk_source_newline_type_get_type" c_gtk_source_newline_type_get_type ::
IO GType
instance B.Types.TypedObject NewlineType where
glibType :: IO GType
glibType = IO GType
c_gtk_source_newline_type_get_type
instance B.Types.BoxedEnum NewlineType
data GutterRendererAlignmentMode =
GutterRendererAlignmentModeCell
| GutterRendererAlignmentModeFirst
| GutterRendererAlignmentModeLast
| AnotherGutterRendererAlignmentMode Int
deriving (Int -> GutterRendererAlignmentMode -> ShowS
[GutterRendererAlignmentMode] -> ShowS
GutterRendererAlignmentMode -> String
(Int -> GutterRendererAlignmentMode -> ShowS)
-> (GutterRendererAlignmentMode -> String)
-> ([GutterRendererAlignmentMode] -> ShowS)
-> Show GutterRendererAlignmentMode
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GutterRendererAlignmentMode -> ShowS
showsPrec :: Int -> GutterRendererAlignmentMode -> ShowS
$cshow :: GutterRendererAlignmentMode -> String
show :: GutterRendererAlignmentMode -> String
$cshowList :: [GutterRendererAlignmentMode] -> ShowS
showList :: [GutterRendererAlignmentMode] -> ShowS
Show, GutterRendererAlignmentMode -> GutterRendererAlignmentMode -> Bool
(GutterRendererAlignmentMode
-> GutterRendererAlignmentMode -> Bool)
-> (GutterRendererAlignmentMode
-> GutterRendererAlignmentMode -> Bool)
-> Eq GutterRendererAlignmentMode
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GutterRendererAlignmentMode -> GutterRendererAlignmentMode -> Bool
== :: GutterRendererAlignmentMode -> GutterRendererAlignmentMode -> Bool
$c/= :: GutterRendererAlignmentMode -> GutterRendererAlignmentMode -> Bool
/= :: GutterRendererAlignmentMode -> GutterRendererAlignmentMode -> Bool
Eq)
instance P.Enum GutterRendererAlignmentMode where
fromEnum :: GutterRendererAlignmentMode -> Int
fromEnum GutterRendererAlignmentMode
GutterRendererAlignmentModeCell = Int
0
fromEnum GutterRendererAlignmentMode
GutterRendererAlignmentModeFirst = Int
1
fromEnum GutterRendererAlignmentMode
GutterRendererAlignmentModeLast = Int
2
fromEnum (AnotherGutterRendererAlignmentMode Int
k) = Int
k
toEnum :: Int -> GutterRendererAlignmentMode
toEnum Int
0 = GutterRendererAlignmentMode
GutterRendererAlignmentModeCell
toEnum Int
1 = GutterRendererAlignmentMode
GutterRendererAlignmentModeFirst
toEnum Int
2 = GutterRendererAlignmentMode
GutterRendererAlignmentModeLast
toEnum Int
k = Int -> GutterRendererAlignmentMode
AnotherGutterRendererAlignmentMode Int
k
instance P.Ord GutterRendererAlignmentMode where
compare :: GutterRendererAlignmentMode
-> GutterRendererAlignmentMode -> Ordering
compare GutterRendererAlignmentMode
a GutterRendererAlignmentMode
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (GutterRendererAlignmentMode -> Int
forall a. Enum a => a -> Int
P.fromEnum GutterRendererAlignmentMode
a) (GutterRendererAlignmentMode -> Int
forall a. Enum a => a -> Int
P.fromEnum GutterRendererAlignmentMode
b)
type instance O.ParentTypes GutterRendererAlignmentMode = '[]
instance O.HasParentTypes GutterRendererAlignmentMode
foreign import ccall "gtk_source_gutter_renderer_alignment_mode_get_type" c_gtk_source_gutter_renderer_alignment_mode_get_type ::
IO GType
instance B.Types.TypedObject GutterRendererAlignmentMode where
glibType :: IO GType
glibType = IO GType
c_gtk_source_gutter_renderer_alignment_mode_get_type
instance B.Types.BoxedEnum GutterRendererAlignmentMode
data FileSaverError =
FileSaverErrorInvalidChars
| FileSaverErrorExternallyModified
| AnotherFileSaverError Int
deriving (Int -> FileSaverError -> ShowS
[FileSaverError] -> ShowS
FileSaverError -> String
(Int -> FileSaverError -> ShowS)
-> (FileSaverError -> String)
-> ([FileSaverError] -> ShowS)
-> Show FileSaverError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FileSaverError -> ShowS
showsPrec :: Int -> FileSaverError -> ShowS
$cshow :: FileSaverError -> String
show :: FileSaverError -> String
$cshowList :: [FileSaverError] -> ShowS
showList :: [FileSaverError] -> ShowS
Show, FileSaverError -> FileSaverError -> Bool
(FileSaverError -> FileSaverError -> Bool)
-> (FileSaverError -> FileSaverError -> Bool) -> Eq FileSaverError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FileSaverError -> FileSaverError -> Bool
== :: FileSaverError -> FileSaverError -> Bool
$c/= :: FileSaverError -> FileSaverError -> Bool
/= :: FileSaverError -> FileSaverError -> Bool
Eq)
instance P.Enum FileSaverError where
fromEnum :: FileSaverError -> Int
fromEnum FileSaverError
FileSaverErrorInvalidChars = Int
0
fromEnum FileSaverError
FileSaverErrorExternallyModified = Int
1
fromEnum (AnotherFileSaverError Int
k) = Int
k
toEnum :: Int -> FileSaverError
toEnum Int
0 = FileSaverError
FileSaverErrorInvalidChars
toEnum Int
1 = FileSaverError
FileSaverErrorExternallyModified
toEnum Int
k = Int -> FileSaverError
AnotherFileSaverError Int
k
instance P.Ord FileSaverError where
compare :: FileSaverError -> FileSaverError -> Ordering
compare FileSaverError
a FileSaverError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (FileSaverError -> Int
forall a. Enum a => a -> Int
P.fromEnum FileSaverError
a) (FileSaverError -> Int
forall a. Enum a => a -> Int
P.fromEnum FileSaverError
b)
instance GErrorClass FileSaverError where
gerrorClassDomain :: FileSaverError -> Text
gerrorClassDomain FileSaverError
_ = Text
"gtk-source-file-saver-error"
catchFileSaverError ::
IO a ->
(FileSaverError -> GErrorMessage -> IO a) ->
IO a
catchFileSaverError :: forall a. IO a -> (FileSaverError -> Text -> IO a) -> IO a
catchFileSaverError = IO a -> (FileSaverError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleFileSaverError ::
(FileSaverError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleFileSaverError :: forall a. (FileSaverError -> Text -> IO a) -> IO a -> IO a
handleFileSaverError = (FileSaverError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
type instance O.ParentTypes FileSaverError = '[]
instance O.HasParentTypes FileSaverError
foreign import ccall "gtk_source_file_saver_error_get_type" c_gtk_source_file_saver_error_get_type ::
IO GType
instance B.Types.TypedObject FileSaverError where
glibType :: IO GType
glibType = IO GType
c_gtk_source_file_saver_error_get_type
instance B.Types.BoxedEnum FileSaverError
data FileLoaderError =
FileLoaderErrorTooBig
| FileLoaderErrorEncodingAutoDetectionFailed
| FileLoaderErrorConversionFallback
| AnotherFileLoaderError Int
deriving (Int -> FileLoaderError -> ShowS
[FileLoaderError] -> ShowS
FileLoaderError -> String
(Int -> FileLoaderError -> ShowS)
-> (FileLoaderError -> String)
-> ([FileLoaderError] -> ShowS)
-> Show FileLoaderError
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> FileLoaderError -> ShowS
showsPrec :: Int -> FileLoaderError -> ShowS
$cshow :: FileLoaderError -> String
show :: FileLoaderError -> String
$cshowList :: [FileLoaderError] -> ShowS
showList :: [FileLoaderError] -> ShowS
Show, FileLoaderError -> FileLoaderError -> Bool
(FileLoaderError -> FileLoaderError -> Bool)
-> (FileLoaderError -> FileLoaderError -> Bool)
-> Eq FileLoaderError
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: FileLoaderError -> FileLoaderError -> Bool
== :: FileLoaderError -> FileLoaderError -> Bool
$c/= :: FileLoaderError -> FileLoaderError -> Bool
/= :: FileLoaderError -> FileLoaderError -> Bool
Eq)
instance P.Enum FileLoaderError where
fromEnum :: FileLoaderError -> Int
fromEnum FileLoaderError
FileLoaderErrorTooBig = Int
0
fromEnum FileLoaderError
FileLoaderErrorEncodingAutoDetectionFailed = Int
1
fromEnum FileLoaderError
FileLoaderErrorConversionFallback = Int
2
fromEnum (AnotherFileLoaderError Int
k) = Int
k
toEnum :: Int -> FileLoaderError
toEnum Int
0 = FileLoaderError
FileLoaderErrorTooBig
toEnum Int
1 = FileLoaderError
FileLoaderErrorEncodingAutoDetectionFailed
toEnum Int
2 = FileLoaderError
FileLoaderErrorConversionFallback
toEnum Int
k = Int -> FileLoaderError
AnotherFileLoaderError Int
k
instance P.Ord FileLoaderError where
compare :: FileLoaderError -> FileLoaderError -> Ordering
compare FileLoaderError
a FileLoaderError
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (FileLoaderError -> Int
forall a. Enum a => a -> Int
P.fromEnum FileLoaderError
a) (FileLoaderError -> Int
forall a. Enum a => a -> Int
P.fromEnum FileLoaderError
b)
instance GErrorClass FileLoaderError where
gerrorClassDomain :: FileLoaderError -> Text
gerrorClassDomain FileLoaderError
_ = Text
"gtk-source-file-loader-error"
catchFileLoaderError ::
IO a ->
(FileLoaderError -> GErrorMessage -> IO a) ->
IO a
catchFileLoaderError :: forall a. IO a -> (FileLoaderError -> Text -> IO a) -> IO a
catchFileLoaderError = IO a -> (FileLoaderError -> Text -> IO a) -> IO a
forall err a.
GErrorClass err =>
IO a -> (err -> Text -> IO a) -> IO a
catchGErrorJustDomain
handleFileLoaderError ::
(FileLoaderError -> GErrorMessage -> IO a) ->
IO a ->
IO a
handleFileLoaderError :: forall a. (FileLoaderError -> Text -> IO a) -> IO a -> IO a
handleFileLoaderError = (FileLoaderError -> Text -> IO a) -> IO a -> IO a
forall err a.
GErrorClass err =>
(err -> Text -> IO a) -> IO a -> IO a
handleGErrorJustDomain
type instance O.ParentTypes FileLoaderError = '[]
instance O.HasParentTypes FileLoaderError
foreign import ccall "gtk_source_file_loader_error_get_type" c_gtk_source_file_loader_error_get_type ::
IO GType
instance B.Types.TypedObject FileLoaderError where
glibType :: IO GType
glibType = IO GType
c_gtk_source_file_loader_error_get_type
instance B.Types.BoxedEnum FileLoaderError
data CompressionType =
CompressionTypeNone
| CompressionTypeGzip
| AnotherCompressionType Int
deriving (Int -> CompressionType -> ShowS
[CompressionType] -> ShowS
CompressionType -> String
(Int -> CompressionType -> ShowS)
-> (CompressionType -> String)
-> ([CompressionType] -> ShowS)
-> Show CompressionType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CompressionType -> ShowS
showsPrec :: Int -> CompressionType -> ShowS
$cshow :: CompressionType -> String
show :: CompressionType -> String
$cshowList :: [CompressionType] -> ShowS
showList :: [CompressionType] -> ShowS
Show, CompressionType -> CompressionType -> Bool
(CompressionType -> CompressionType -> Bool)
-> (CompressionType -> CompressionType -> Bool)
-> Eq CompressionType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CompressionType -> CompressionType -> Bool
== :: CompressionType -> CompressionType -> Bool
$c/= :: CompressionType -> CompressionType -> Bool
/= :: CompressionType -> CompressionType -> Bool
Eq)
instance P.Enum CompressionType where
fromEnum :: CompressionType -> Int
fromEnum CompressionType
CompressionTypeNone = Int
0
fromEnum CompressionType
CompressionTypeGzip = Int
1
fromEnum (AnotherCompressionType Int
k) = Int
k
toEnum :: Int -> CompressionType
toEnum Int
0 = CompressionType
CompressionTypeNone
toEnum Int
1 = CompressionType
CompressionTypeGzip
toEnum Int
k = Int -> CompressionType
AnotherCompressionType Int
k
instance P.Ord CompressionType where
compare :: CompressionType -> CompressionType -> Ordering
compare CompressionType
a CompressionType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (CompressionType -> Int
forall a. Enum a => a -> Int
P.fromEnum CompressionType
a) (CompressionType -> Int
forall a. Enum a => a -> Int
P.fromEnum CompressionType
b)
type instance O.ParentTypes CompressionType = '[]
instance O.HasParentTypes CompressionType
foreign import ccall "gtk_source_compression_type_get_type" c_gtk_source_compression_type_get_type ::
IO GType
instance B.Types.TypedObject CompressionType where
glibType :: IO GType
glibType = IO GType
c_gtk_source_compression_type_get_type
instance B.Types.BoxedEnum CompressionType
data CompletionColumn =
CompletionColumnIcon
| CompletionColumnBefore
| CompletionColumnTypedText
| CompletionColumnAfter
| CompletionColumnComment
| CompletionColumnDetails
| AnotherCompletionColumn Int
deriving (Int -> CompletionColumn -> ShowS
[CompletionColumn] -> ShowS
CompletionColumn -> String
(Int -> CompletionColumn -> ShowS)
-> (CompletionColumn -> String)
-> ([CompletionColumn] -> ShowS)
-> Show CompletionColumn
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CompletionColumn -> ShowS
showsPrec :: Int -> CompletionColumn -> ShowS
$cshow :: CompletionColumn -> String
show :: CompletionColumn -> String
$cshowList :: [CompletionColumn] -> ShowS
showList :: [CompletionColumn] -> ShowS
Show, CompletionColumn -> CompletionColumn -> Bool
(CompletionColumn -> CompletionColumn -> Bool)
-> (CompletionColumn -> CompletionColumn -> Bool)
-> Eq CompletionColumn
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CompletionColumn -> CompletionColumn -> Bool
== :: CompletionColumn -> CompletionColumn -> Bool
$c/= :: CompletionColumn -> CompletionColumn -> Bool
/= :: CompletionColumn -> CompletionColumn -> Bool
Eq)
instance P.Enum CompletionColumn where
fromEnum :: CompletionColumn -> Int
fromEnum CompletionColumn
CompletionColumnIcon = Int
0
fromEnum CompletionColumn
CompletionColumnBefore = Int
1
fromEnum CompletionColumn
CompletionColumnTypedText = Int
2
fromEnum CompletionColumn
CompletionColumnAfter = Int
3
fromEnum CompletionColumn
CompletionColumnComment = Int
4
fromEnum CompletionColumn
CompletionColumnDetails = Int
5
fromEnum (AnotherCompletionColumn Int
k) = Int
k
toEnum :: Int -> CompletionColumn
toEnum Int
0 = CompletionColumn
CompletionColumnIcon
toEnum Int
1 = CompletionColumn
CompletionColumnBefore
toEnum Int
2 = CompletionColumn
CompletionColumnTypedText
toEnum Int
3 = CompletionColumn
CompletionColumnAfter
toEnum Int
4 = CompletionColumn
CompletionColumnComment
toEnum Int
5 = CompletionColumn
CompletionColumnDetails
toEnum Int
k = Int -> CompletionColumn
AnotherCompletionColumn Int
k
instance P.Ord CompletionColumn where
compare :: CompletionColumn -> CompletionColumn -> Ordering
compare CompletionColumn
a CompletionColumn
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (CompletionColumn -> Int
forall a. Enum a => a -> Int
P.fromEnum CompletionColumn
a) (CompletionColumn -> Int
forall a. Enum a => a -> Int
P.fromEnum CompletionColumn
b)
type instance O.ParentTypes CompletionColumn = '[]
instance O.HasParentTypes CompletionColumn
foreign import ccall "gtk_source_completion_column_get_type" c_gtk_source_completion_column_get_type ::
IO GType
instance B.Types.TypedObject CompletionColumn where
glibType :: IO GType
glibType = IO GType
c_gtk_source_completion_column_get_type
instance B.Types.BoxedEnum CompletionColumn
data CompletionActivation =
CompletionActivationNone
| CompletionActivationInteractive
| CompletionActivationUserRequested
| AnotherCompletionActivation Int
deriving (Int -> CompletionActivation -> ShowS
[CompletionActivation] -> ShowS
CompletionActivation -> String
(Int -> CompletionActivation -> ShowS)
-> (CompletionActivation -> String)
-> ([CompletionActivation] -> ShowS)
-> Show CompletionActivation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> CompletionActivation -> ShowS
showsPrec :: Int -> CompletionActivation -> ShowS
$cshow :: CompletionActivation -> String
show :: CompletionActivation -> String
$cshowList :: [CompletionActivation] -> ShowS
showList :: [CompletionActivation] -> ShowS
Show, CompletionActivation -> CompletionActivation -> Bool
(CompletionActivation -> CompletionActivation -> Bool)
-> (CompletionActivation -> CompletionActivation -> Bool)
-> Eq CompletionActivation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CompletionActivation -> CompletionActivation -> Bool
== :: CompletionActivation -> CompletionActivation -> Bool
$c/= :: CompletionActivation -> CompletionActivation -> Bool
/= :: CompletionActivation -> CompletionActivation -> Bool
Eq)
instance P.Enum CompletionActivation where
fromEnum :: CompletionActivation -> Int
fromEnum CompletionActivation
CompletionActivationNone = Int
0
fromEnum CompletionActivation
CompletionActivationInteractive = Int
1
fromEnum CompletionActivation
CompletionActivationUserRequested = Int
2
fromEnum (AnotherCompletionActivation Int
k) = Int
k
toEnum :: Int -> CompletionActivation
toEnum Int
0 = CompletionActivation
CompletionActivationNone
toEnum Int
1 = CompletionActivation
CompletionActivationInteractive
toEnum Int
2 = CompletionActivation
CompletionActivationUserRequested
toEnum Int
k = Int -> CompletionActivation
AnotherCompletionActivation Int
k
instance P.Ord CompletionActivation where
compare :: CompletionActivation -> CompletionActivation -> Ordering
compare CompletionActivation
a CompletionActivation
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (CompletionActivation -> Int
forall a. Enum a => a -> Int
P.fromEnum CompletionActivation
a) (CompletionActivation -> Int
forall a. Enum a => a -> Int
P.fromEnum CompletionActivation
b)
type instance O.ParentTypes CompletionActivation = '[]
instance O.HasParentTypes CompletionActivation
foreign import ccall "gtk_source_completion_activation_get_type" c_gtk_source_completion_activation_get_type ::
IO GType
instance B.Types.TypedObject CompletionActivation where
glibType :: IO GType
glibType = IO GType
c_gtk_source_completion_activation_get_type
instance B.Types.BoxedEnum CompletionActivation
data ChangeCaseType =
ChangeCaseTypeLower
| ChangeCaseTypeUpper
| ChangeCaseTypeToggle
| ChangeCaseTypeTitle
| AnotherChangeCaseType Int
deriving (Int -> ChangeCaseType -> ShowS
[ChangeCaseType] -> ShowS
ChangeCaseType -> String
(Int -> ChangeCaseType -> ShowS)
-> (ChangeCaseType -> String)
-> ([ChangeCaseType] -> ShowS)
-> Show ChangeCaseType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ChangeCaseType -> ShowS
showsPrec :: Int -> ChangeCaseType -> ShowS
$cshow :: ChangeCaseType -> String
show :: ChangeCaseType -> String
$cshowList :: [ChangeCaseType] -> ShowS
showList :: [ChangeCaseType] -> ShowS
Show, ChangeCaseType -> ChangeCaseType -> Bool
(ChangeCaseType -> ChangeCaseType -> Bool)
-> (ChangeCaseType -> ChangeCaseType -> Bool) -> Eq ChangeCaseType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ChangeCaseType -> ChangeCaseType -> Bool
== :: ChangeCaseType -> ChangeCaseType -> Bool
$c/= :: ChangeCaseType -> ChangeCaseType -> Bool
/= :: ChangeCaseType -> ChangeCaseType -> Bool
Eq)
instance P.Enum ChangeCaseType where
fromEnum :: ChangeCaseType -> Int
fromEnum ChangeCaseType
ChangeCaseTypeLower = Int
0
fromEnum ChangeCaseType
ChangeCaseTypeUpper = Int
1
fromEnum ChangeCaseType
ChangeCaseTypeToggle = Int
2
fromEnum ChangeCaseType
ChangeCaseTypeTitle = Int
3
fromEnum (AnotherChangeCaseType Int
k) = Int
k
toEnum :: Int -> ChangeCaseType
toEnum Int
0 = ChangeCaseType
ChangeCaseTypeLower
toEnum Int
1 = ChangeCaseType
ChangeCaseTypeUpper
toEnum Int
2 = ChangeCaseType
ChangeCaseTypeToggle
toEnum Int
3 = ChangeCaseType
ChangeCaseTypeTitle
toEnum Int
k = Int -> ChangeCaseType
AnotherChangeCaseType Int
k
instance P.Ord ChangeCaseType where
compare :: ChangeCaseType -> ChangeCaseType -> Ordering
compare ChangeCaseType
a ChangeCaseType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (ChangeCaseType -> Int
forall a. Enum a => a -> Int
P.fromEnum ChangeCaseType
a) (ChangeCaseType -> Int
forall a. Enum a => a -> Int
P.fromEnum ChangeCaseType
b)
type instance O.ParentTypes ChangeCaseType = '[]
instance O.HasParentTypes ChangeCaseType
foreign import ccall "gtk_source_change_case_type_get_type" c_gtk_source_change_case_type_get_type ::
IO GType
instance B.Types.TypedObject ChangeCaseType where
glibType :: IO GType
glibType = IO GType
c_gtk_source_change_case_type_get_type
instance B.Types.BoxedEnum ChangeCaseType
data BracketMatchType =
BracketMatchTypeNone
| BracketMatchTypeOutOfRange
| BracketMatchTypeNotFound
| BracketMatchTypeFound
| AnotherBracketMatchType Int
deriving (Int -> BracketMatchType -> ShowS
[BracketMatchType] -> ShowS
BracketMatchType -> String
(Int -> BracketMatchType -> ShowS)
-> (BracketMatchType -> String)
-> ([BracketMatchType] -> ShowS)
-> Show BracketMatchType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BracketMatchType -> ShowS
showsPrec :: Int -> BracketMatchType -> ShowS
$cshow :: BracketMatchType -> String
show :: BracketMatchType -> String
$cshowList :: [BracketMatchType] -> ShowS
showList :: [BracketMatchType] -> ShowS
Show, BracketMatchType -> BracketMatchType -> Bool
(BracketMatchType -> BracketMatchType -> Bool)
-> (BracketMatchType -> BracketMatchType -> Bool)
-> Eq BracketMatchType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BracketMatchType -> BracketMatchType -> Bool
== :: BracketMatchType -> BracketMatchType -> Bool
$c/= :: BracketMatchType -> BracketMatchType -> Bool
/= :: BracketMatchType -> BracketMatchType -> Bool
Eq)
instance P.Enum BracketMatchType where
fromEnum :: BracketMatchType -> Int
fromEnum BracketMatchType
BracketMatchTypeNone = Int
0
fromEnum BracketMatchType
BracketMatchTypeOutOfRange = Int
1
fromEnum BracketMatchType
BracketMatchTypeNotFound = Int
2
fromEnum BracketMatchType
BracketMatchTypeFound = Int
3
fromEnum (AnotherBracketMatchType Int
k) = Int
k
toEnum :: Int -> BracketMatchType
toEnum Int
0 = BracketMatchType
BracketMatchTypeNone
toEnum Int
1 = BracketMatchType
BracketMatchTypeOutOfRange
toEnum Int
2 = BracketMatchType
BracketMatchTypeNotFound
toEnum Int
3 = BracketMatchType
BracketMatchTypeFound
toEnum Int
k = Int -> BracketMatchType
AnotherBracketMatchType Int
k
instance P.Ord BracketMatchType where
compare :: BracketMatchType -> BracketMatchType -> Ordering
compare BracketMatchType
a BracketMatchType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (BracketMatchType -> Int
forall a. Enum a => a -> Int
P.fromEnum BracketMatchType
a) (BracketMatchType -> Int
forall a. Enum a => a -> Int
P.fromEnum BracketMatchType
b)
type instance O.ParentTypes BracketMatchType = '[]
instance O.HasParentTypes BracketMatchType
foreign import ccall "gtk_source_bracket_match_type_get_type" c_gtk_source_bracket_match_type_get_type ::
IO GType
instance B.Types.TypedObject BracketMatchType where
glibType :: IO GType
glibType = IO GType
c_gtk_source_bracket_match_type_get_type
instance B.Types.BoxedEnum BracketMatchType
data BackgroundPatternType =
BackgroundPatternTypeNone
| BackgroundPatternTypeGrid
| AnotherBackgroundPatternType Int
deriving (Int -> BackgroundPatternType -> ShowS
[BackgroundPatternType] -> ShowS
BackgroundPatternType -> String
(Int -> BackgroundPatternType -> ShowS)
-> (BackgroundPatternType -> String)
-> ([BackgroundPatternType] -> ShowS)
-> Show BackgroundPatternType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> BackgroundPatternType -> ShowS
showsPrec :: Int -> BackgroundPatternType -> ShowS
$cshow :: BackgroundPatternType -> String
show :: BackgroundPatternType -> String
$cshowList :: [BackgroundPatternType] -> ShowS
showList :: [BackgroundPatternType] -> ShowS
Show, BackgroundPatternType -> BackgroundPatternType -> Bool
(BackgroundPatternType -> BackgroundPatternType -> Bool)
-> (BackgroundPatternType -> BackgroundPatternType -> Bool)
-> Eq BackgroundPatternType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: BackgroundPatternType -> BackgroundPatternType -> Bool
== :: BackgroundPatternType -> BackgroundPatternType -> Bool
$c/= :: BackgroundPatternType -> BackgroundPatternType -> Bool
/= :: BackgroundPatternType -> BackgroundPatternType -> Bool
Eq)
instance P.Enum BackgroundPatternType where
fromEnum :: BackgroundPatternType -> Int
fromEnum BackgroundPatternType
BackgroundPatternTypeNone = Int
0
fromEnum BackgroundPatternType
BackgroundPatternTypeGrid = Int
1
fromEnum (AnotherBackgroundPatternType Int
k) = Int
k
toEnum :: Int -> BackgroundPatternType
toEnum Int
0 = BackgroundPatternType
BackgroundPatternTypeNone
toEnum Int
1 = BackgroundPatternType
BackgroundPatternTypeGrid
toEnum Int
k = Int -> BackgroundPatternType
AnotherBackgroundPatternType Int
k
instance P.Ord BackgroundPatternType where
compare :: BackgroundPatternType -> BackgroundPatternType -> Ordering
compare BackgroundPatternType
a BackgroundPatternType
b = Int -> Int -> Ordering
forall a. Ord a => a -> a -> Ordering
P.compare (BackgroundPatternType -> Int
forall a. Enum a => a -> Int
P.fromEnum BackgroundPatternType
a) (BackgroundPatternType -> Int
forall a. Enum a => a -> Int
P.fromEnum BackgroundPatternType
b)
type instance O.ParentTypes BackgroundPatternType = '[]
instance O.HasParentTypes BackgroundPatternType
foreign import ccall "gtk_source_background_pattern_type_get_type" c_gtk_source_background_pattern_type_get_type ::
IO GType
instance B.Types.TypedObject BackgroundPatternType where
glibType :: IO GType
glibType = IO GType
c_gtk_source_background_pattern_type_get_type
instance B.Types.BoxedEnum BackgroundPatternType