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

Safe HaskellNone
LanguageHaskell2010

Data.Radius.Attribute.Pair

Synopsis

Documentation

data TypedNumber v a Source #

Instances

Eq v => Eq (TypedNumber v a) Source # 

Methods

(==) :: TypedNumber v a -> TypedNumber v a -> Bool #

(/=) :: TypedNumber v a -> TypedNumber v a -> Bool #

Ord v => Ord (TypedNumber v a) Source # 

Methods

compare :: TypedNumber v a -> TypedNumber v a -> Ordering #

(<) :: TypedNumber v a -> TypedNumber v a -> Bool #

(<=) :: TypedNumber v a -> TypedNumber v a -> Bool #

(>) :: TypedNumber v a -> TypedNumber v a -> Bool #

(>=) :: TypedNumber v a -> TypedNumber v a -> Bool #

max :: TypedNumber v a -> TypedNumber v a -> TypedNumber v a #

min :: TypedNumber v a -> TypedNumber v a -> TypedNumber v a #

Show v => Show (TypedNumber v a) Source # 

Methods

showsPrec :: Int -> TypedNumber v a -> ShowS #

show :: TypedNumber v a -> String #

showList :: [TypedNumber v a] -> ShowS #

data Attribute v a Source #

Constructors

Attribute !(TypedNumber v a) !a 

Instances

(Eq a, Eq v) => Eq (Attribute v a) Source # 

Methods

(==) :: Attribute v a -> Attribute v a -> Bool #

(/=) :: Attribute v a -> Attribute v a -> Bool #

(Ord a, Ord v) => Ord (Attribute v a) Source # 

Methods

compare :: Attribute v a -> Attribute v a -> Ordering #

(<) :: Attribute v a -> Attribute v a -> Bool #

(<=) :: Attribute v a -> Attribute v a -> Bool #

(>) :: Attribute v a -> Attribute v a -> Bool #

(>=) :: Attribute v a -> Attribute v a -> Bool #

max :: Attribute v a -> Attribute v a -> Attribute v a #

min :: Attribute v a -> Attribute v a -> Attribute v a #

(Show a, Show v) => Show (Attribute v a) Source # 

Methods

showsPrec :: Int -> Attribute v a -> ShowS #

show :: Attribute v a -> String #

showList :: [Attribute v a] -> ShowS #

value :: Attribute v a -> a Source #

typed :: (Monad m, Functor m, Ord v) => TypedNumberSet v a -> (ByteString -> m b) -> Attribute' v -> MaybeT m (Attribute v b) Source #

Retryable error context with anthor attirbute value type MaybeT m, and parse error context m.