rtorrent-rpc-0.2.2.0: A library for communicating with RTorrent over its XML-RPC interface.

Copyright(c) Kai Lindholm, 2014
LicenseMIT
Maintainermegantti@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Network.RTorrent.Command

Contents

Description

 

Synopsis

Documentation

data a :*: b infixr 6 Source

A strict 2-tuple for easy combining of commands.

Constructors

(:*:) !a !b infixr 6 

Instances

(Show a, Show b) => Show ((:*:) a b) 
(NFData a, NFData b) => NFData ((:*:) a b) 
(Command a, Command b) => Command ((:*:) a b) 
type Ret ((:*:) a b) = (:*:) (Ret a) (Ret b) 

class Command a Source

A typeclass for commands that can be send to RTorrent.

Minimal complete definition

commandCall, commandValue

Associated Types

type Ret a Source

Return type of the command.

Instances

AnyCommand

data AnyCommand where Source

Existential wrapper for any command.

Commands wrapped in AnyCommand won't parse their results.

AnyCommand can be used when you want to call multiple commands but don't care about their return values.

Constructors

AnyCommand :: Command a => a -> AnyCommand