Runtime metadata functions, part of the RPC mechanism
- registerCalls :: [RemoteCallMetaData] -> Lookup
- data Lookup
- type Identifier = String
- putReg :: Typeable a => a -> Identifier -> Lookup -> Lookup
- getEntryByIdent :: Typeable a => Lookup -> Identifier -> Maybe a
- empty :: Lookup
- type RemoteCallMetaData = Lookup -> Lookup
Documentation
registerCalls :: [RemoteCallMetaData] -> LookupSource
Creates a metadata lookup table based on compile-time metadata.
You probably don't want to call this function yourself, but instead
use Remote.Init.remoteInit
.
type Identifier = StringSource
getEntryByIdent :: Typeable a => Lookup -> Identifier -> Maybe aSource
type RemoteCallMetaData = Lookup -> LookupSource
Data of this type is generated at compile-time
by remotable
and can be used with registerCalls
and remoteInit
to create a metadata lookup table, Lookup
.
The name __remoteCallMetaData
will be present
in any module that uses remotable
.