dbus-1.4.1: A client library for the D-Bus IPC system.

Safe Haskell | None
Language | Haskell2010

DBus.Generation

Synopsis

- mkTupE :: [Exp] -> Exp
- type ClientBusPathR a = ReaderT (Client, BusName, ObjectPath) IO a
- dbusInvoke :: (Client -> BusName -> ObjectPath -> a) -> ClientBusPathR a
- (??) :: Functor f => f (a -> b) -> a -> f b
- (?/?) :: ClientBusPathR (a -> IO b) -> a -> ClientBusPathR b
- data GenerationParams = GenerationParams {
  - genBusName :: Maybe BusName
  - genObjectPath :: Maybe ObjectPath
  - genInterfaceName :: InterfaceName
  - genTakeSignalErrorHandler :: Bool
  - getTHType :: Type -> Type
  }
- defaultGetDictType :: Type -> Type -> Type
- defaultGetTHType :: Type -> Type
- buildGetTHType :: (Type -> Type) -> (Type -> Type -> Type) -> Type -> Type
- newNameDef :: String -> Q Name
- defaultGenerationParams :: GenerationParams
- addTypeArg :: Type -> Type -> Type
- addTypeArgIf :: Bool -> Type -> Type -> Type
- unitIOType :: Type
- addArgIf :: Bool -> a -> [a] -> [a]
- mkFunD :: Name -> [Name] -> Exp -> Dec
- generateClient :: GenerationParams -> Interface -> Q [Dec]
- maybeName :: a -> Bool -> Maybe a
- makeToVariantApp :: Name -> Exp
- makeFromVariantApp :: Name -> Exp
- makeJustPattern :: Name -> Pat
- mapOrHead :: (Num a, Eq a) => a -> (t -> b) -> [t] -> ([b] -> b) -> b
- runGetFirst :: [Maybe a] -> Maybe a
- buildGeneratedSignature :: Bool -> Bool -> Type -> Type
- getSetMethodCallParams :: Name -> Maybe Name -> Maybe Name -> ExpQ -> ExpQ
- clientArgumentUnpackingMessage :: String
- clientArgumentUnpackingError :: [Variant] -> MethodError
- generateClientMethod :: GenerationParams -> Method -> Q [Dec]
- generateClientProperty :: GenerationParams -> Property -> Q [Dec]
- generateSignalsFromInterface :: GenerationParams -> Interface -> Q [Dec]
- generateSignals :: GenerationParams -> InterfaceName -> [Signal] -> Q [Dec]
- generateSignal :: GenerationParams -> Signal -> Q [Dec]
- generateFromFilePath :: GenerationParams -> FilePath -> Q [Dec]

# Documentation

mkTupE :: [Exp] -> Exp Source #

Compatibility helper to create (total) tuple expressions

type ClientBusPathR a = ReaderT (Client, BusName, ObjectPath) IO a Source #

dbusInvoke :: (Client -> BusName -> ObjectPath -> a) -> ClientBusPathR a Source #

(??) :: Functor f => f (a -> b) -> a -> f b infixl 4 Source #

(?/?) :: ClientBusPathR (a -> IO b) -> a -> ClientBusPathR b infixl 4 Source #

data GenerationParams Source #

Constructors

GenerationParams |

Fields

- genBusName :: Maybe BusName
- genObjectPath :: Maybe ObjectPath
- genInterfaceName :: InterfaceName
- genTakeSignalErrorHandler :: Bool
- getTHType :: Type -> Type

defaultGetDictType :: Type -> Type -> Type Source #

defaultGetTHType :: Type -> Type Source #

buildGetTHType :: (Type -> Type) -> (Type -> Type -> Type) -> Type -> Type Source #

newNameDef :: String -> Q Name Source #

defaultGenerationParams :: GenerationParams Source #

addTypeArg :: Type -> Type -> Type Source #

addTypeArgIf :: Bool -> Type -> Type -> Type Source #

unitIOType :: Type Source #

addArgIf :: Bool -> a -> [a] -> [a] Source #

mkFunD :: Name -> [Name] -> Exp -> Dec Source #

generateClient :: GenerationParams -> Interface -> Q [Dec] Source #

maybeName :: a -> Bool -> Maybe a Source #

makeToVariantApp :: Name -> Exp Source #

makeFromVariantApp :: Name -> Exp Source #

makeJustPattern :: Name -> Pat Source #

mapOrHead :: (Num a, Eq a) => a -> (t -> b) -> [t] -> ([b] -> b) -> b Source #

runGetFirst :: [Maybe a] -> Maybe a Source #

buildGeneratedSignature :: Bool -> Bool -> Type -> Type Source #

getSetMethodCallParams :: Name -> Maybe Name -> Maybe Name -> ExpQ -> ExpQ Source #

clientArgumentUnpackingMessage :: String Source #

clientArgumentUnpackingError :: [Variant] -> MethodError Source #

generateClientMethod :: GenerationParams -> Method -> Q [Dec] Source #

generateClientProperty :: GenerationParams -> Property -> Q [Dec] Source #

generateSignalsFromInterface :: GenerationParams -> Interface -> Q [Dec] Source #

generateSignals :: GenerationParams -> InterfaceName -> [Signal] -> Q [Dec] Source #

generateSignal :: GenerationParams -> Signal -> Q [Dec] Source #

generateFromFilePath :: GenerationParams -> FilePath -> Q [Dec] Source #