protocol-radius-0.0.1.2: parser and printer for radius protocol packet
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Radius.Attribute.Pair

Synopsis

Documentation

data TypedNumber v a Source #

Instances

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

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 #

data Attribute' v Source #

Instances

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

Defined in Data.Radius.Attribute.Pair

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

data Attribute v a Source #

Constructors

Attribute !(TypedNumber v a) !a 

Instances

Instances details
(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 #

(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 #

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.