manatee-core-0.0.1: The core of Manatee.

Manatee.Core.TH

Synopsis

Documentation

unpackVariantList :: Name -> Name -> ExpQSource

Unpack variant with corresponding type.

signalArgsTemplate :: StringSource

This string is append in SignalArgs with MemberName. Example dbus member named Foo, and SignalArgs should be FooArgs. Otherwise, function checkSignalArgs will failed.

checkSignalArgs :: Name -> Name -> ExpQSource

Unpack variant with corresponding type.

packVariantList :: String -> Name -> Q [Dec]Source

Pack variant with corresponding type.

packStringList :: String -> Name -> Q [Dec]Source

Pack variant with corresponding type.

packListTemplate :: (Name -> ExpQ) -> String -> Name -> Q [Dec]Source

This is template code for transform typ to [a]

mkDec :: String -> ExpQ -> DecQSource

Build declaration. If this function got unbound variable, try use packVariantList style to build [PatQ] explicitly.

mkFunDec :: String -> ExpQ -> Q [Dec]Source

Build function declaration.