protocol-radius-0.0.1.1: parser and printer for radius protocol packet

Safe HaskellNone
LanguageHaskell2010

Data.Radius.StreamPut.Monadic

Contents

Synopsis

DSL to build attribute list of packet

type AttributePutM v = Writer (DList (Attribute' v)) Source #

Context monad type to build attribute list of packet

extractAttributes :: AttributePutM v a -> [Attribute' v] Source #

Extract attribute list from context

tellA :: AtValueEncode a => TypedNumber v a -> a -> AttributePutM v () Source #

Add attribute key and value into monadic context

low-level definitions

class AtValueEncode a Source #

Minimal complete definition

atValueEncode

exAttribute :: (a -> Put) -> Attribute v a -> AttributePutM v () Source #