| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Desktop.Portal.Settings
Contents
Synopsis
- data SettingValue = SettingValue {
- namespace :: Text
- key :: Text
- value :: Variant
- standardValue :: Maybe StandardSetting
- newtype StandardSetting = SettingColorScheme ColorScheme
- data ColorScheme
- newtype ReadAllOptions = ReadAllOptions {
- namespaces :: [Text]
- newtype ReadAllResults = ReadAllResults {
- values :: [SettingValue]
- readAll :: Client -> ReadAllOptions -> IO ReadAllResults
- data ReadOptions = ReadOptions {}
- data ReadResults = ReadResults {}
- read :: Client -> ReadOptions -> IO ReadResults
Common Types
data SettingValue Source #
Constructors
| SettingValue | |
Fields
| |
Instances
| Show SettingValue Source # | |
Defined in Desktop.Portal.Settings Methods showsPrec :: Int -> SettingValue -> ShowS # show :: SettingValue -> String # showList :: [SettingValue] -> ShowS # | |
| Eq SettingValue Source # | |
Defined in Desktop.Portal.Settings | |
newtype StandardSetting Source #
Constructors
| SettingColorScheme ColorScheme |
Instances
| Show StandardSetting Source # | |
Defined in Desktop.Portal.Settings Methods showsPrec :: Int -> StandardSetting -> ShowS # show :: StandardSetting -> String # showList :: [StandardSetting] -> ShowS # | |
| Eq StandardSetting Source # | |
Defined in Desktop.Portal.Settings Methods (==) :: StandardSetting -> StandardSetting -> Bool # (/=) :: StandardSetting -> StandardSetting -> Bool # | |
data ColorScheme Source #
Constructors
| ColorSchemeNoPreference | |
| ColorSchemeDark | |
| ColorSchemeLight |
Instances
| Show ColorScheme Source # | |
Defined in Desktop.Portal.Settings Methods showsPrec :: Int -> ColorScheme -> ShowS # show :: ColorScheme -> String # showList :: [ColorScheme] -> ShowS # | |
| Eq ColorScheme Source # | |
Defined in Desktop.Portal.Settings | |
Read All
newtype ReadAllOptions Source #
Constructors
| ReadAllOptions | |
Fields
| |
Instances
| Show ReadAllOptions Source # | |
Defined in Desktop.Portal.Settings Methods showsPrec :: Int -> ReadAllOptions -> ShowS # show :: ReadAllOptions -> String # showList :: [ReadAllOptions] -> ShowS # | |
| Default ReadAllOptions Source # | |
Defined in Desktop.Portal.Settings Methods def :: ReadAllOptions # | |
| Eq ReadAllOptions Source # | |
Defined in Desktop.Portal.Settings Methods (==) :: ReadAllOptions -> ReadAllOptions -> Bool # (/=) :: ReadAllOptions -> ReadAllOptions -> Bool # | |
newtype ReadAllResults Source #
Constructors
| ReadAllResults | |
Fields
| |
Instances
| Show ReadAllResults Source # | |
Defined in Desktop.Portal.Settings Methods showsPrec :: Int -> ReadAllResults -> ShowS # show :: ReadAllResults -> String # showList :: [ReadAllResults] -> ShowS # | |
| Eq ReadAllResults Source # | |
Defined in Desktop.Portal.Settings Methods (==) :: ReadAllResults -> ReadAllResults -> Bool # (/=) :: ReadAllResults -> ReadAllResults -> Bool # | |
readAll :: Client -> ReadAllOptions -> IO ReadAllResults Source #
Read
data ReadOptions Source #
Constructors
| ReadOptions | |
Instances
| Show ReadOptions Source # | |
Defined in Desktop.Portal.Settings Methods showsPrec :: Int -> ReadOptions -> ShowS # show :: ReadOptions -> String # showList :: [ReadOptions] -> ShowS # | |
| Eq ReadOptions Source # | |
Defined in Desktop.Portal.Settings | |
data ReadResults Source #
Constructors
| ReadResults | |
Fields | |
Instances
| Show ReadResults Source # | |
Defined in Desktop.Portal.Settings Methods showsPrec :: Int -> ReadResults -> ShowS # show :: ReadResults -> String # showList :: [ReadResults] -> ShowS # | |
| Eq ReadResults Source # | |
Defined in Desktop.Portal.Settings | |
read :: Client -> ReadOptions -> IO ReadResults Source #