toxcore-0.2.11: A Tox protocol implementation in Haskell
Safe HaskellTrustworthy
LanguageHaskell2010

Network.Tox.Crypto.Key

Documentation

class IsEncoding a => CryptoNumber a where Source #

newtype Key a Source #

Constructors

Key 

Fields

Instances

Instances details
Eq a => Eq (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

(==) :: Key a -> Key a -> Bool #

(/=) :: Key a -> Key a -> Bool #

Ord a => Ord (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

compare :: Key a -> Key a -> Ordering #

(<) :: Key a -> Key a -> Bool #

(<=) :: Key a -> Key a -> Bool #

(>) :: Key a -> Key a -> Bool #

(>=) :: Key a -> Key a -> Bool #

max :: Key a -> Key a -> Key a #

min :: Key a -> Key a -> Key a #

CryptoNumber a => Read (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

CryptoNumber a => Show (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

showsPrec :: Int -> Key a -> ShowS #

show :: Key a -> String #

showList :: [Key a] -> ShowS #

CryptoNumber a => Arbitrary (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

arbitrary :: Gen (Key a) #

shrink :: Key a -> [Key a] #

CryptoNumber a => Binary (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

put :: Key a -> Put #

get :: Get (Key a) #

putList :: [Key a] -> Put #

CryptoNumber a => MessagePack (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

toObject :: Key a -> Object #

fromObject :: (Applicative m, Monad m, MonadFail m) => Object -> m (Key a) #

IsEncoding a => IsEncoding (Key a) Source # 
Instance details

Defined in Network.Tox.Crypto.Key

Methods

encode :: Key a -> ByteString #

decode :: ByteString -> Maybe (Key a) #

encoded :: (Choice p, Applicative f) => p (Key a) (f (Key a)) -> p ByteString (f ByteString) #