dbus-1.3.11: 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 #

Compatibility helper to create (total) tuple expressions

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

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

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

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

data GenerationParams #

Constructors

GenerationParams |
Fields 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] #