Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
lightningCli :: Handle -> PartialCommand -> IO (Maybe (Res Value)) Source #
Function to interface with lightning-rpc commands. First argument is a Handle to rpcfile from the readerT, second is a Command withholding Id which will automatically increment.
type PartialCommand = Id -> Command Source #