protocol-radius-0.0.1.1: 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 # 
Instance details

Defined in Data.Radius.Attribute.Pair

Methods

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

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

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

Defined in Data.Radius.Attribute.Pair

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 # 
Instance details

Defined in Data.Radius.Attribute.Pair

Methods

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

show :: TypedNumber v a -> String #

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

data Attribute' v Source #

Instances
Eq v => Eq (Attribute' v) Source # 
Instance details

Defined in Data.Radius.Attribute.Pair

Methods

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

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

Ord v => Ord (Attribute' v) Source # 
Instance details

Defined in Data.Radius.Attribute.Pair

Show v => Show (Attribute' v) Source # 
Instance details

Defined in Data.Radius.Attribute.Pair

data Attribute v a Source #

Constructors

Attribute !(TypedNumber v a) !a 
Instances
(Eq v, Eq a) => Eq (Attribute v a) Source # 
Instance details

Defined in Data.Radius.Attribute.Pair

Methods

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

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

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

Defined in Data.Radius.Attribute.Pair

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 v, Show a) => Show (Attribute v a) Source # 
Instance details

Defined in Data.Radius.Attribute.Pair

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.