opc-xml-da-client-0.1: OPC XML-DA Client
Safe HaskellNone
LanguageHaskell2010

OpcXmlDaClient

Synopsis

Operations

type Op i o = Manager -> RequestTimeout -> Uri -> i -> IO (Either Error o) Source #

Alias to an HTTP request operation in the scope of HTTP connection manager, timeout for the operation, URI of the server.

All errors are explicit and are wrapped by the Error type.

Operation parameter types

data Uri Source #

URI of the server.

textUri :: Text -> Maybe Uri Source #

Construct a correct URI by validating a textual value.

data RequestTimeout Source #

Instances

Instances details
Default RequestTimeout Source #

RequestTimeout of 30 seconds.

Instance details

Defined in OpcXmlDaClient

Methods

def :: RequestTimeout #

millisecondsRequestTimeout :: Int -> Maybe RequestTimeout Source #

Construct a request timeout value, ensuring that it's in the proper range.

Operation errors

data Error Source #

Error during the execution of an operation.

Instances

Instances details
Eq Error Source # 
Instance details

Defined in OpcXmlDaClient

Methods

(==) :: Error -> Error -> Bool #

(/=) :: Error -> Error -> Bool #

Show Error Source # 
Instance details

Defined in OpcXmlDaClient

Methods

showsPrec :: Int -> Error -> ShowS #

show :: Error -> String #

showList :: [Error] -> ShowS #

Value types