ONC-RPC-0.2: ONC RPC (aka Sun RPC) and XDR library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.ONCRPC.XDR.Opaque

Description

Marshalling values into and out of Opaque byte strings. Not really part of XDR, but convenient way to avoid many conversion functions.

Synopsis

Documentation

class Opaqued a where Source #

Values that can be stored in an Opaque OpaqueString ByteString. The default implementation allows (re-)embedding of XDR-encoded data, such as with Opaque_auth.

Minimal complete definition

Nothing

Methods

opacify :: a -> ByteString Source #

default opacify :: XDR a => a -> ByteString Source #

unopacify :: MonadFail m => ByteString -> m a Source #

default unopacify :: (XDR a, MonadFail m) => ByteString -> m a Source #

Instances

Instances details
Opaqued Authsys_parms Source # 
Instance details

Defined in Network.ONCRPC.XDR.Opaque