managed-functions-1.0.0: Remote Management Framework
Safe HaskellSafe-Inferred
LanguageHaskell2010

Managed.Probe.ToProbe

Synopsis

Documentation

toProbe :: forall e fn. (Typeable fn, ToProbe fn e) => fn -> Probe e Source #

Converts any suitable function to a Probe

class ToProbe fn e where Source #

Class of functions that can be converted to a Probe

Methods

apply :: Proxy e -> fn -> [In e] -> IO (Out e) Source #

Read arguments from a list, apply them to a function, and encode the result

Instances

Instances details
Encode a e => ToProbe a e Source # 
Instance details

Defined in Managed.Probe.ToProbe

Methods

apply :: Proxy e -> a -> [In e] -> IO (Out e) Source #

Encode a e => ToProbe (IO a) e Source # 
Instance details

Defined in Managed.Probe.ToProbe

Methods

apply :: Proxy e -> IO a -> [In e] -> IO (Out e) Source #

(Decode a e, ToProbe b e) => ToProbe (a -> b) e Source # 
Instance details

Defined in Managed.Probe.ToProbe

Methods

apply :: Proxy e -> (a -> b) -> [In e] -> IO (Out e) Source #