{-# LANGUAGE DeriveGeneric #-}
module FFI.Tox.Tox where
import Data.MessagePack (MessagePack)
import Data.Word (Word16, Word32, Word64)
import Foreign.C.Enum (CEnum (..), CErr)
import Foreign.C.String (CString)
import Foreign.C.Types (CInt (..), CSize (..))
import Foreign.Ptr (FunPtr, Ptr)
import GHC.Generics (Generic)
import Test.QuickCheck.Arbitrary (Arbitrary (..),
arbitraryBoundedEnum)
data ToxStruct
type ToxPtr = Ptr ToxStruct
foreign import ccall tox_version_major :: Word32
foreign import ccall tox_version_minor :: Word32
foreign import ccall tox_version_patch :: Word32
foreign import ccall tox_version_is_compatible :: Word32 -> Word32 -> Word32 -> IO Bool
foreign import ccall tox_public_key_size :: Word32
foreign import ccall tox_secret_key_size :: Word32
foreign import ccall tox_conference_uid_size :: Word32
foreign import ccall tox_conference_id_size :: Word32
foreign import ccall tox_nospam_size :: Word32
foreign import ccall tox_address_size :: Word32
foreign import ccall tox_max_name_length :: Word32
foreign import ccall tox_max_status_message_length :: Word32
foreign import ccall tox_max_friend_request_length :: Word32
foreign import ccall tox_max_message_length :: Word32
foreign import ccall tox_max_custom_packet_size :: Word32
foreign import ccall tox_hash_length :: Word32
foreign import ccall tox_file_id_length :: Word32
foreign import ccall tox_max_filename_length :: Word32
foreign import ccall tox_max_hostname_length :: Word32
data UserStatus
= UserStatusNone
| UserStatusAway
| UserStatusBusy
deriving (UserStatus -> UserStatus -> Bool
(UserStatus -> UserStatus -> Bool)
-> (UserStatus -> UserStatus -> Bool) -> Eq UserStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UserStatus -> UserStatus -> Bool
$c/= :: UserStatus -> UserStatus -> Bool
== :: UserStatus -> UserStatus -> Bool
$c== :: UserStatus -> UserStatus -> Bool
Eq, Eq UserStatus
Eq UserStatus
-> (UserStatus -> UserStatus -> Ordering)
-> (UserStatus -> UserStatus -> Bool)
-> (UserStatus -> UserStatus -> Bool)
-> (UserStatus -> UserStatus -> Bool)
-> (UserStatus -> UserStatus -> Bool)
-> (UserStatus -> UserStatus -> UserStatus)
-> (UserStatus -> UserStatus -> UserStatus)
-> Ord UserStatus
UserStatus -> UserStatus -> Bool
UserStatus -> UserStatus -> Ordering
UserStatus -> UserStatus -> UserStatus
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: UserStatus -> UserStatus -> UserStatus
$cmin :: UserStatus -> UserStatus -> UserStatus
max :: UserStatus -> UserStatus -> UserStatus
$cmax :: UserStatus -> UserStatus -> UserStatus
>= :: UserStatus -> UserStatus -> Bool
$c>= :: UserStatus -> UserStatus -> Bool
> :: UserStatus -> UserStatus -> Bool
$c> :: UserStatus -> UserStatus -> Bool
<= :: UserStatus -> UserStatus -> Bool
$c<= :: UserStatus -> UserStatus -> Bool
< :: UserStatus -> UserStatus -> Bool
$c< :: UserStatus -> UserStatus -> Bool
compare :: UserStatus -> UserStatus -> Ordering
$ccompare :: UserStatus -> UserStatus -> Ordering
$cp1Ord :: Eq UserStatus
Ord, Int -> UserStatus
UserStatus -> Int
UserStatus -> [UserStatus]
UserStatus -> UserStatus
UserStatus -> UserStatus -> [UserStatus]
UserStatus -> UserStatus -> UserStatus -> [UserStatus]
(UserStatus -> UserStatus)
-> (UserStatus -> UserStatus)
-> (Int -> UserStatus)
-> (UserStatus -> Int)
-> (UserStatus -> [UserStatus])
-> (UserStatus -> UserStatus -> [UserStatus])
-> (UserStatus -> UserStatus -> [UserStatus])
-> (UserStatus -> UserStatus -> UserStatus -> [UserStatus])
-> Enum UserStatus
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: UserStatus -> UserStatus -> UserStatus -> [UserStatus]
$cenumFromThenTo :: UserStatus -> UserStatus -> UserStatus -> [UserStatus]
enumFromTo :: UserStatus -> UserStatus -> [UserStatus]
$cenumFromTo :: UserStatus -> UserStatus -> [UserStatus]
enumFromThen :: UserStatus -> UserStatus -> [UserStatus]
$cenumFromThen :: UserStatus -> UserStatus -> [UserStatus]
enumFrom :: UserStatus -> [UserStatus]
$cenumFrom :: UserStatus -> [UserStatus]
fromEnum :: UserStatus -> Int
$cfromEnum :: UserStatus -> Int
toEnum :: Int -> UserStatus
$ctoEnum :: Int -> UserStatus
pred :: UserStatus -> UserStatus
$cpred :: UserStatus -> UserStatus
succ :: UserStatus -> UserStatus
$csucc :: UserStatus -> UserStatus
Enum, UserStatus
UserStatus -> UserStatus -> Bounded UserStatus
forall a. a -> a -> Bounded a
maxBound :: UserStatus
$cmaxBound :: UserStatus
minBound :: UserStatus
$cminBound :: UserStatus
Bounded, ReadPrec [UserStatus]
ReadPrec UserStatus
Int -> ReadS UserStatus
ReadS [UserStatus]
(Int -> ReadS UserStatus)
-> ReadS [UserStatus]
-> ReadPrec UserStatus
-> ReadPrec [UserStatus]
-> Read UserStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UserStatus]
$creadListPrec :: ReadPrec [UserStatus]
readPrec :: ReadPrec UserStatus
$creadPrec :: ReadPrec UserStatus
readList :: ReadS [UserStatus]
$creadList :: ReadS [UserStatus]
readsPrec :: Int -> ReadS UserStatus
$creadsPrec :: Int -> ReadS UserStatus
Read, Int -> UserStatus -> ShowS
[UserStatus] -> ShowS
UserStatus -> String
(Int -> UserStatus -> ShowS)
-> (UserStatus -> String)
-> ([UserStatus] -> ShowS)
-> Show UserStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UserStatus] -> ShowS
$cshowList :: [UserStatus] -> ShowS
show :: UserStatus -> String
$cshow :: UserStatus -> String
showsPrec :: Int -> UserStatus -> ShowS
$cshowsPrec :: Int -> UserStatus -> ShowS
Show, (forall x. UserStatus -> Rep UserStatus x)
-> (forall x. Rep UserStatus x -> UserStatus) -> Generic UserStatus
forall x. Rep UserStatus x -> UserStatus
forall x. UserStatus -> Rep UserStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UserStatus x -> UserStatus
$cfrom :: forall x. UserStatus -> Rep UserStatus x
Generic)
instance MessagePack UserStatus
instance Arbitrary UserStatus where arbitrary :: Gen UserStatus
arbitrary = Gen UserStatus
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data MessageType
= MessageTypeNormal
| MessageTypeAction
deriving (MessageType -> MessageType -> Bool
(MessageType -> MessageType -> Bool)
-> (MessageType -> MessageType -> Bool) -> Eq MessageType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MessageType -> MessageType -> Bool
$c/= :: MessageType -> MessageType -> Bool
== :: MessageType -> MessageType -> Bool
$c== :: MessageType -> MessageType -> Bool
Eq, Eq MessageType
Eq MessageType
-> (MessageType -> MessageType -> Ordering)
-> (MessageType -> MessageType -> Bool)
-> (MessageType -> MessageType -> Bool)
-> (MessageType -> MessageType -> Bool)
-> (MessageType -> MessageType -> Bool)
-> (MessageType -> MessageType -> MessageType)
-> (MessageType -> MessageType -> MessageType)
-> Ord MessageType
MessageType -> MessageType -> Bool
MessageType -> MessageType -> Ordering
MessageType -> MessageType -> MessageType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: MessageType -> MessageType -> MessageType
$cmin :: MessageType -> MessageType -> MessageType
max :: MessageType -> MessageType -> MessageType
$cmax :: MessageType -> MessageType -> MessageType
>= :: MessageType -> MessageType -> Bool
$c>= :: MessageType -> MessageType -> Bool
> :: MessageType -> MessageType -> Bool
$c> :: MessageType -> MessageType -> Bool
<= :: MessageType -> MessageType -> Bool
$c<= :: MessageType -> MessageType -> Bool
< :: MessageType -> MessageType -> Bool
$c< :: MessageType -> MessageType -> Bool
compare :: MessageType -> MessageType -> Ordering
$ccompare :: MessageType -> MessageType -> Ordering
$cp1Ord :: Eq MessageType
Ord, Int -> MessageType
MessageType -> Int
MessageType -> [MessageType]
MessageType -> MessageType
MessageType -> MessageType -> [MessageType]
MessageType -> MessageType -> MessageType -> [MessageType]
(MessageType -> MessageType)
-> (MessageType -> MessageType)
-> (Int -> MessageType)
-> (MessageType -> Int)
-> (MessageType -> [MessageType])
-> (MessageType -> MessageType -> [MessageType])
-> (MessageType -> MessageType -> [MessageType])
-> (MessageType -> MessageType -> MessageType -> [MessageType])
-> Enum MessageType
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: MessageType -> MessageType -> MessageType -> [MessageType]
$cenumFromThenTo :: MessageType -> MessageType -> MessageType -> [MessageType]
enumFromTo :: MessageType -> MessageType -> [MessageType]
$cenumFromTo :: MessageType -> MessageType -> [MessageType]
enumFromThen :: MessageType -> MessageType -> [MessageType]
$cenumFromThen :: MessageType -> MessageType -> [MessageType]
enumFrom :: MessageType -> [MessageType]
$cenumFrom :: MessageType -> [MessageType]
fromEnum :: MessageType -> Int
$cfromEnum :: MessageType -> Int
toEnum :: Int -> MessageType
$ctoEnum :: Int -> MessageType
pred :: MessageType -> MessageType
$cpred :: MessageType -> MessageType
succ :: MessageType -> MessageType
$csucc :: MessageType -> MessageType
Enum, MessageType
MessageType -> MessageType -> Bounded MessageType
forall a. a -> a -> Bounded a
maxBound :: MessageType
$cmaxBound :: MessageType
minBound :: MessageType
$cminBound :: MessageType
Bounded, ReadPrec [MessageType]
ReadPrec MessageType
Int -> ReadS MessageType
ReadS [MessageType]
(Int -> ReadS MessageType)
-> ReadS [MessageType]
-> ReadPrec MessageType
-> ReadPrec [MessageType]
-> Read MessageType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MessageType]
$creadListPrec :: ReadPrec [MessageType]
readPrec :: ReadPrec MessageType
$creadPrec :: ReadPrec MessageType
readList :: ReadS [MessageType]
$creadList :: ReadS [MessageType]
readsPrec :: Int -> ReadS MessageType
$creadsPrec :: Int -> ReadS MessageType
Read, Int -> MessageType -> ShowS
[MessageType] -> ShowS
MessageType -> String
(Int -> MessageType -> ShowS)
-> (MessageType -> String)
-> ([MessageType] -> ShowS)
-> Show MessageType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MessageType] -> ShowS
$cshowList :: [MessageType] -> ShowS
show :: MessageType -> String
$cshow :: MessageType -> String
showsPrec :: Int -> MessageType -> ShowS
$cshowsPrec :: Int -> MessageType -> ShowS
Show, (forall x. MessageType -> Rep MessageType x)
-> (forall x. Rep MessageType x -> MessageType)
-> Generic MessageType
forall x. Rep MessageType x -> MessageType
forall x. MessageType -> Rep MessageType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep MessageType x -> MessageType
$cfrom :: forall x. MessageType -> Rep MessageType x
Generic)
instance MessagePack MessageType
instance Arbitrary MessageType where arbitrary :: Gen MessageType
arbitrary = Gen MessageType
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data ProxyType
= ProxyTypeNone
| ProxyTypeHttp
| ProxyTypeSocks5
deriving (ProxyType -> ProxyType -> Bool
(ProxyType -> ProxyType -> Bool)
-> (ProxyType -> ProxyType -> Bool) -> Eq ProxyType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProxyType -> ProxyType -> Bool
$c/= :: ProxyType -> ProxyType -> Bool
== :: ProxyType -> ProxyType -> Bool
$c== :: ProxyType -> ProxyType -> Bool
Eq, Eq ProxyType
Eq ProxyType
-> (ProxyType -> ProxyType -> Ordering)
-> (ProxyType -> ProxyType -> Bool)
-> (ProxyType -> ProxyType -> Bool)
-> (ProxyType -> ProxyType -> Bool)
-> (ProxyType -> ProxyType -> Bool)
-> (ProxyType -> ProxyType -> ProxyType)
-> (ProxyType -> ProxyType -> ProxyType)
-> Ord ProxyType
ProxyType -> ProxyType -> Bool
ProxyType -> ProxyType -> Ordering
ProxyType -> ProxyType -> ProxyType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ProxyType -> ProxyType -> ProxyType
$cmin :: ProxyType -> ProxyType -> ProxyType
max :: ProxyType -> ProxyType -> ProxyType
$cmax :: ProxyType -> ProxyType -> ProxyType
>= :: ProxyType -> ProxyType -> Bool
$c>= :: ProxyType -> ProxyType -> Bool
> :: ProxyType -> ProxyType -> Bool
$c> :: ProxyType -> ProxyType -> Bool
<= :: ProxyType -> ProxyType -> Bool
$c<= :: ProxyType -> ProxyType -> Bool
< :: ProxyType -> ProxyType -> Bool
$c< :: ProxyType -> ProxyType -> Bool
compare :: ProxyType -> ProxyType -> Ordering
$ccompare :: ProxyType -> ProxyType -> Ordering
$cp1Ord :: Eq ProxyType
Ord, Int -> ProxyType
ProxyType -> Int
ProxyType -> [ProxyType]
ProxyType -> ProxyType
ProxyType -> ProxyType -> [ProxyType]
ProxyType -> ProxyType -> ProxyType -> [ProxyType]
(ProxyType -> ProxyType)
-> (ProxyType -> ProxyType)
-> (Int -> ProxyType)
-> (ProxyType -> Int)
-> (ProxyType -> [ProxyType])
-> (ProxyType -> ProxyType -> [ProxyType])
-> (ProxyType -> ProxyType -> [ProxyType])
-> (ProxyType -> ProxyType -> ProxyType -> [ProxyType])
-> Enum ProxyType
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ProxyType -> ProxyType -> ProxyType -> [ProxyType]
$cenumFromThenTo :: ProxyType -> ProxyType -> ProxyType -> [ProxyType]
enumFromTo :: ProxyType -> ProxyType -> [ProxyType]
$cenumFromTo :: ProxyType -> ProxyType -> [ProxyType]
enumFromThen :: ProxyType -> ProxyType -> [ProxyType]
$cenumFromThen :: ProxyType -> ProxyType -> [ProxyType]
enumFrom :: ProxyType -> [ProxyType]
$cenumFrom :: ProxyType -> [ProxyType]
fromEnum :: ProxyType -> Int
$cfromEnum :: ProxyType -> Int
toEnum :: Int -> ProxyType
$ctoEnum :: Int -> ProxyType
pred :: ProxyType -> ProxyType
$cpred :: ProxyType -> ProxyType
succ :: ProxyType -> ProxyType
$csucc :: ProxyType -> ProxyType
Enum, ProxyType
ProxyType -> ProxyType -> Bounded ProxyType
forall a. a -> a -> Bounded a
maxBound :: ProxyType
$cmaxBound :: ProxyType
minBound :: ProxyType
$cminBound :: ProxyType
Bounded, ReadPrec [ProxyType]
ReadPrec ProxyType
Int -> ReadS ProxyType
ReadS [ProxyType]
(Int -> ReadS ProxyType)
-> ReadS [ProxyType]
-> ReadPrec ProxyType
-> ReadPrec [ProxyType]
-> Read ProxyType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProxyType]
$creadListPrec :: ReadPrec [ProxyType]
readPrec :: ReadPrec ProxyType
$creadPrec :: ReadPrec ProxyType
readList :: ReadS [ProxyType]
$creadList :: ReadS [ProxyType]
readsPrec :: Int -> ReadS ProxyType
$creadsPrec :: Int -> ReadS ProxyType
Read, Int -> ProxyType -> ShowS
[ProxyType] -> ShowS
ProxyType -> String
(Int -> ProxyType -> ShowS)
-> (ProxyType -> String)
-> ([ProxyType] -> ShowS)
-> Show ProxyType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProxyType] -> ShowS
$cshowList :: [ProxyType] -> ShowS
show :: ProxyType -> String
$cshow :: ProxyType -> String
showsPrec :: Int -> ProxyType -> ShowS
$cshowsPrec :: Int -> ProxyType -> ShowS
Show, (forall x. ProxyType -> Rep ProxyType x)
-> (forall x. Rep ProxyType x -> ProxyType) -> Generic ProxyType
forall x. Rep ProxyType x -> ProxyType
forall x. ProxyType -> Rep ProxyType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ProxyType x -> ProxyType
$cfrom :: forall x. ProxyType -> Rep ProxyType x
Generic)
instance MessagePack ProxyType
instance Arbitrary ProxyType where arbitrary :: Gen ProxyType
arbitrary = Gen ProxyType
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data SavedataType
= SavedataTypeNone
| SavedataTypeToxSave
| SavedataTypeSecretKey
deriving (SavedataType -> SavedataType -> Bool
(SavedataType -> SavedataType -> Bool)
-> (SavedataType -> SavedataType -> Bool) -> Eq SavedataType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: SavedataType -> SavedataType -> Bool
$c/= :: SavedataType -> SavedataType -> Bool
== :: SavedataType -> SavedataType -> Bool
$c== :: SavedataType -> SavedataType -> Bool
Eq, Eq SavedataType
Eq SavedataType
-> (SavedataType -> SavedataType -> Ordering)
-> (SavedataType -> SavedataType -> Bool)
-> (SavedataType -> SavedataType -> Bool)
-> (SavedataType -> SavedataType -> Bool)
-> (SavedataType -> SavedataType -> Bool)
-> (SavedataType -> SavedataType -> SavedataType)
-> (SavedataType -> SavedataType -> SavedataType)
-> Ord SavedataType
SavedataType -> SavedataType -> Bool
SavedataType -> SavedataType -> Ordering
SavedataType -> SavedataType -> SavedataType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: SavedataType -> SavedataType -> SavedataType
$cmin :: SavedataType -> SavedataType -> SavedataType
max :: SavedataType -> SavedataType -> SavedataType
$cmax :: SavedataType -> SavedataType -> SavedataType
>= :: SavedataType -> SavedataType -> Bool
$c>= :: SavedataType -> SavedataType -> Bool
> :: SavedataType -> SavedataType -> Bool
$c> :: SavedataType -> SavedataType -> Bool
<= :: SavedataType -> SavedataType -> Bool
$c<= :: SavedataType -> SavedataType -> Bool
< :: SavedataType -> SavedataType -> Bool
$c< :: SavedataType -> SavedataType -> Bool
compare :: SavedataType -> SavedataType -> Ordering
$ccompare :: SavedataType -> SavedataType -> Ordering
$cp1Ord :: Eq SavedataType
Ord, Int -> SavedataType
SavedataType -> Int
SavedataType -> [SavedataType]
SavedataType -> SavedataType
SavedataType -> SavedataType -> [SavedataType]
SavedataType -> SavedataType -> SavedataType -> [SavedataType]
(SavedataType -> SavedataType)
-> (SavedataType -> SavedataType)
-> (Int -> SavedataType)
-> (SavedataType -> Int)
-> (SavedataType -> [SavedataType])
-> (SavedataType -> SavedataType -> [SavedataType])
-> (SavedataType -> SavedataType -> [SavedataType])
-> (SavedataType -> SavedataType -> SavedataType -> [SavedataType])
-> Enum SavedataType
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: SavedataType -> SavedataType -> SavedataType -> [SavedataType]
$cenumFromThenTo :: SavedataType -> SavedataType -> SavedataType -> [SavedataType]
enumFromTo :: SavedataType -> SavedataType -> [SavedataType]
$cenumFromTo :: SavedataType -> SavedataType -> [SavedataType]
enumFromThen :: SavedataType -> SavedataType -> [SavedataType]
$cenumFromThen :: SavedataType -> SavedataType -> [SavedataType]
enumFrom :: SavedataType -> [SavedataType]
$cenumFrom :: SavedataType -> [SavedataType]
fromEnum :: SavedataType -> Int
$cfromEnum :: SavedataType -> Int
toEnum :: Int -> SavedataType
$ctoEnum :: Int -> SavedataType
pred :: SavedataType -> SavedataType
$cpred :: SavedataType -> SavedataType
succ :: SavedataType -> SavedataType
$csucc :: SavedataType -> SavedataType
Enum, SavedataType
SavedataType -> SavedataType -> Bounded SavedataType
forall a. a -> a -> Bounded a
maxBound :: SavedataType
$cmaxBound :: SavedataType
minBound :: SavedataType
$cminBound :: SavedataType
Bounded, ReadPrec [SavedataType]
ReadPrec SavedataType
Int -> ReadS SavedataType
ReadS [SavedataType]
(Int -> ReadS SavedataType)
-> ReadS [SavedataType]
-> ReadPrec SavedataType
-> ReadPrec [SavedataType]
-> Read SavedataType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [SavedataType]
$creadListPrec :: ReadPrec [SavedataType]
readPrec :: ReadPrec SavedataType
$creadPrec :: ReadPrec SavedataType
readList :: ReadS [SavedataType]
$creadList :: ReadS [SavedataType]
readsPrec :: Int -> ReadS SavedataType
$creadsPrec :: Int -> ReadS SavedataType
Read, Int -> SavedataType -> ShowS
[SavedataType] -> ShowS
SavedataType -> String
(Int -> SavedataType -> ShowS)
-> (SavedataType -> String)
-> ([SavedataType] -> ShowS)
-> Show SavedataType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [SavedataType] -> ShowS
$cshowList :: [SavedataType] -> ShowS
show :: SavedataType -> String
$cshow :: SavedataType -> String
showsPrec :: Int -> SavedataType -> ShowS
$cshowsPrec :: Int -> SavedataType -> ShowS
Show, (forall x. SavedataType -> Rep SavedataType x)
-> (forall x. Rep SavedataType x -> SavedataType)
-> Generic SavedataType
forall x. Rep SavedataType x -> SavedataType
forall x. SavedataType -> Rep SavedataType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep SavedataType x -> SavedataType
$cfrom :: forall x. SavedataType -> Rep SavedataType x
Generic)
instance MessagePack SavedataType
instance Arbitrary SavedataType where arbitrary :: Gen SavedataType
arbitrary = Gen SavedataType
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data LogLevel
= LogLevelTrace
| LogLevelDebug
| LogLevelInfo
| LogLevelWarning
| LogLevelError
deriving (LogLevel -> LogLevel -> Bool
(LogLevel -> LogLevel -> Bool)
-> (LogLevel -> LogLevel -> Bool) -> Eq LogLevel
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LogLevel -> LogLevel -> Bool
$c/= :: LogLevel -> LogLevel -> Bool
== :: LogLevel -> LogLevel -> Bool
$c== :: LogLevel -> LogLevel -> Bool
Eq, Eq LogLevel
Eq LogLevel
-> (LogLevel -> LogLevel -> Ordering)
-> (LogLevel -> LogLevel -> Bool)
-> (LogLevel -> LogLevel -> Bool)
-> (LogLevel -> LogLevel -> Bool)
-> (LogLevel -> LogLevel -> Bool)
-> (LogLevel -> LogLevel -> LogLevel)
-> (LogLevel -> LogLevel -> LogLevel)
-> Ord LogLevel
LogLevel -> LogLevel -> Bool
LogLevel -> LogLevel -> Ordering
LogLevel -> LogLevel -> LogLevel
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: LogLevel -> LogLevel -> LogLevel
$cmin :: LogLevel -> LogLevel -> LogLevel
max :: LogLevel -> LogLevel -> LogLevel
$cmax :: LogLevel -> LogLevel -> LogLevel
>= :: LogLevel -> LogLevel -> Bool
$c>= :: LogLevel -> LogLevel -> Bool
> :: LogLevel -> LogLevel -> Bool
$c> :: LogLevel -> LogLevel -> Bool
<= :: LogLevel -> LogLevel -> Bool
$c<= :: LogLevel -> LogLevel -> Bool
< :: LogLevel -> LogLevel -> Bool
$c< :: LogLevel -> LogLevel -> Bool
compare :: LogLevel -> LogLevel -> Ordering
$ccompare :: LogLevel -> LogLevel -> Ordering
$cp1Ord :: Eq LogLevel
Ord, Int -> LogLevel
LogLevel -> Int
LogLevel -> [LogLevel]
LogLevel -> LogLevel
LogLevel -> LogLevel -> [LogLevel]
LogLevel -> LogLevel -> LogLevel -> [LogLevel]
(LogLevel -> LogLevel)
-> (LogLevel -> LogLevel)
-> (Int -> LogLevel)
-> (LogLevel -> Int)
-> (LogLevel -> [LogLevel])
-> (LogLevel -> LogLevel -> [LogLevel])
-> (LogLevel -> LogLevel -> [LogLevel])
-> (LogLevel -> LogLevel -> LogLevel -> [LogLevel])
-> Enum LogLevel
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: LogLevel -> LogLevel -> LogLevel -> [LogLevel]
$cenumFromThenTo :: LogLevel -> LogLevel -> LogLevel -> [LogLevel]
enumFromTo :: LogLevel -> LogLevel -> [LogLevel]
$cenumFromTo :: LogLevel -> LogLevel -> [LogLevel]
enumFromThen :: LogLevel -> LogLevel -> [LogLevel]
$cenumFromThen :: LogLevel -> LogLevel -> [LogLevel]
enumFrom :: LogLevel -> [LogLevel]
$cenumFrom :: LogLevel -> [LogLevel]
fromEnum :: LogLevel -> Int
$cfromEnum :: LogLevel -> Int
toEnum :: Int -> LogLevel
$ctoEnum :: Int -> LogLevel
pred :: LogLevel -> LogLevel
$cpred :: LogLevel -> LogLevel
succ :: LogLevel -> LogLevel
$csucc :: LogLevel -> LogLevel
Enum, LogLevel
LogLevel -> LogLevel -> Bounded LogLevel
forall a. a -> a -> Bounded a
maxBound :: LogLevel
$cmaxBound :: LogLevel
minBound :: LogLevel
$cminBound :: LogLevel
Bounded, ReadPrec [LogLevel]
ReadPrec LogLevel
Int -> ReadS LogLevel
ReadS [LogLevel]
(Int -> ReadS LogLevel)
-> ReadS [LogLevel]
-> ReadPrec LogLevel
-> ReadPrec [LogLevel]
-> Read LogLevel
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LogLevel]
$creadListPrec :: ReadPrec [LogLevel]
readPrec :: ReadPrec LogLevel
$creadPrec :: ReadPrec LogLevel
readList :: ReadS [LogLevel]
$creadList :: ReadS [LogLevel]
readsPrec :: Int -> ReadS LogLevel
$creadsPrec :: Int -> ReadS LogLevel
Read, Int -> LogLevel -> ShowS
[LogLevel] -> ShowS
LogLevel -> String
(Int -> LogLevel -> ShowS)
-> (LogLevel -> String) -> ([LogLevel] -> ShowS) -> Show LogLevel
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LogLevel] -> ShowS
$cshowList :: [LogLevel] -> ShowS
show :: LogLevel -> String
$cshow :: LogLevel -> String
showsPrec :: Int -> LogLevel -> ShowS
$cshowsPrec :: Int -> LogLevel -> ShowS
Show, (forall x. LogLevel -> Rep LogLevel x)
-> (forall x. Rep LogLevel x -> LogLevel) -> Generic LogLevel
forall x. Rep LogLevel x -> LogLevel
forall x. LogLevel -> Rep LogLevel x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LogLevel x -> LogLevel
$cfrom :: forall x. LogLevel -> Rep LogLevel x
Generic)
instance MessagePack LogLevel
instance Arbitrary LogLevel where arbitrary :: Gen LogLevel
arbitrary = Gen LogLevel
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
type LogCb = ToxPtr -> CEnum LogLevel -> CString -> Word32 -> CString -> CString -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapLogCb :: LogCb -> IO (FunPtr LogCb)
data OptionsStruct
type OptionsPtr = Ptr OptionsStruct
foreign import ccall tox_options_get_ipv6_enabled :: OptionsPtr -> IO Bool
foreign import ccall tox_options_set_ipv6_enabled :: OptionsPtr -> Bool -> IO ()
foreign import ccall tox_options_get_udp_enabled :: OptionsPtr -> IO Bool
foreign import ccall tox_options_set_udp_enabled :: OptionsPtr -> Bool -> IO ()
foreign import ccall tox_options_get_local_discovery_enabled :: OptionsPtr -> IO Bool
foreign import ccall tox_options_set_local_discovery_enabled :: OptionsPtr -> Bool -> IO ()
foreign import ccall tox_options_get_dht_announcements_enabled :: OptionsPtr -> IO Bool
foreign import ccall tox_options_set_dht_announcements_enabled :: OptionsPtr -> Bool -> IO ()
foreign import ccall tox_options_get_proxy_type :: OptionsPtr -> IO (CEnum ProxyType)
foreign import ccall tox_options_set_proxy_type :: OptionsPtr -> CEnum ProxyType -> IO ()
foreign import ccall tox_options_get_proxy_host :: OptionsPtr -> IO CString
foreign import ccall tox_options_set_proxy_host :: OptionsPtr -> CString -> IO ()
foreign import ccall tox_options_get_proxy_port :: OptionsPtr -> IO Word16
foreign import ccall tox_options_set_proxy_port :: OptionsPtr -> Word16 -> IO ()
foreign import ccall tox_options_get_start_port :: OptionsPtr -> IO Word16
foreign import ccall tox_options_set_start_port :: OptionsPtr -> Word16 -> IO ()
foreign import ccall tox_options_get_end_port :: OptionsPtr -> IO Word16
foreign import ccall tox_options_set_end_port :: OptionsPtr -> Word16 -> IO ()
foreign import ccall tox_options_get_tcp_port :: OptionsPtr -> IO Word16
foreign import ccall tox_options_set_tcp_port :: OptionsPtr -> Word16 -> IO ()
foreign import ccall tox_options_get_hole_punching_enabled :: OptionsPtr -> IO Bool
foreign import ccall tox_options_set_hole_punching_enabled :: OptionsPtr -> Bool -> IO ()
foreign import ccall tox_options_get_savedata_type :: OptionsPtr -> IO (CEnum SavedataType)
foreign import ccall tox_options_set_savedata_type :: OptionsPtr -> CEnum SavedataType -> IO ()
foreign import ccall tox_options_get_savedata_data :: OptionsPtr -> IO CString
foreign import ccall tox_options_set_savedata_data :: OptionsPtr -> CString -> CSize -> IO ()
foreign import ccall tox_options_get_savedata_length :: OptionsPtr -> IO CSize
foreign import ccall tox_options_set_savedata_length :: OptionsPtr -> CSize -> IO ()
foreign import ccall tox_options_get_log_callback :: OptionsPtr -> IO (FunPtr LogCb)
foreign import ccall tox_options_set_log_callback :: OptionsPtr -> FunPtr LogCb -> IO ()
foreign import ccall tox_options_get_log_user_data :: OptionsPtr -> IO (Ptr ())
foreign import ccall tox_options_set_log_user_data :: OptionsPtr -> Ptr () -> IO ()
foreign import ccall tox_options_get_experimental_thread_safety :: OptionsPtr -> IO Bool
foreign import ccall tox_options_set_experimental_thread_safety :: OptionsPtr -> Bool -> IO ()
foreign import ccall tox_options_default :: OptionsPtr -> IO ()
data ErrOptionsNew
= ErrOptionsNewMalloc
deriving (ErrOptionsNew -> ErrOptionsNew -> Bool
(ErrOptionsNew -> ErrOptionsNew -> Bool)
-> (ErrOptionsNew -> ErrOptionsNew -> Bool) -> Eq ErrOptionsNew
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrOptionsNew -> ErrOptionsNew -> Bool
$c/= :: ErrOptionsNew -> ErrOptionsNew -> Bool
== :: ErrOptionsNew -> ErrOptionsNew -> Bool
$c== :: ErrOptionsNew -> ErrOptionsNew -> Bool
Eq, Eq ErrOptionsNew
Eq ErrOptionsNew
-> (ErrOptionsNew -> ErrOptionsNew -> Ordering)
-> (ErrOptionsNew -> ErrOptionsNew -> Bool)
-> (ErrOptionsNew -> ErrOptionsNew -> Bool)
-> (ErrOptionsNew -> ErrOptionsNew -> Bool)
-> (ErrOptionsNew -> ErrOptionsNew -> Bool)
-> (ErrOptionsNew -> ErrOptionsNew -> ErrOptionsNew)
-> (ErrOptionsNew -> ErrOptionsNew -> ErrOptionsNew)
-> Ord ErrOptionsNew
ErrOptionsNew -> ErrOptionsNew -> Bool
ErrOptionsNew -> ErrOptionsNew -> Ordering
ErrOptionsNew -> ErrOptionsNew -> ErrOptionsNew
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrOptionsNew -> ErrOptionsNew -> ErrOptionsNew
$cmin :: ErrOptionsNew -> ErrOptionsNew -> ErrOptionsNew
max :: ErrOptionsNew -> ErrOptionsNew -> ErrOptionsNew
$cmax :: ErrOptionsNew -> ErrOptionsNew -> ErrOptionsNew
>= :: ErrOptionsNew -> ErrOptionsNew -> Bool
$c>= :: ErrOptionsNew -> ErrOptionsNew -> Bool
> :: ErrOptionsNew -> ErrOptionsNew -> Bool
$c> :: ErrOptionsNew -> ErrOptionsNew -> Bool
<= :: ErrOptionsNew -> ErrOptionsNew -> Bool
$c<= :: ErrOptionsNew -> ErrOptionsNew -> Bool
< :: ErrOptionsNew -> ErrOptionsNew -> Bool
$c< :: ErrOptionsNew -> ErrOptionsNew -> Bool
compare :: ErrOptionsNew -> ErrOptionsNew -> Ordering
$ccompare :: ErrOptionsNew -> ErrOptionsNew -> Ordering
$cp1Ord :: Eq ErrOptionsNew
Ord, Int -> ErrOptionsNew
ErrOptionsNew -> Int
ErrOptionsNew -> [ErrOptionsNew]
ErrOptionsNew -> ErrOptionsNew
ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew]
ErrOptionsNew -> ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew]
(ErrOptionsNew -> ErrOptionsNew)
-> (ErrOptionsNew -> ErrOptionsNew)
-> (Int -> ErrOptionsNew)
-> (ErrOptionsNew -> Int)
-> (ErrOptionsNew -> [ErrOptionsNew])
-> (ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew])
-> (ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew])
-> (ErrOptionsNew
-> ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew])
-> Enum ErrOptionsNew
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrOptionsNew -> ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew]
$cenumFromThenTo :: ErrOptionsNew -> ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew]
enumFromTo :: ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew]
$cenumFromTo :: ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew]
enumFromThen :: ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew]
$cenumFromThen :: ErrOptionsNew -> ErrOptionsNew -> [ErrOptionsNew]
enumFrom :: ErrOptionsNew -> [ErrOptionsNew]
$cenumFrom :: ErrOptionsNew -> [ErrOptionsNew]
fromEnum :: ErrOptionsNew -> Int
$cfromEnum :: ErrOptionsNew -> Int
toEnum :: Int -> ErrOptionsNew
$ctoEnum :: Int -> ErrOptionsNew
pred :: ErrOptionsNew -> ErrOptionsNew
$cpred :: ErrOptionsNew -> ErrOptionsNew
succ :: ErrOptionsNew -> ErrOptionsNew
$csucc :: ErrOptionsNew -> ErrOptionsNew
Enum, ErrOptionsNew
ErrOptionsNew -> ErrOptionsNew -> Bounded ErrOptionsNew
forall a. a -> a -> Bounded a
maxBound :: ErrOptionsNew
$cmaxBound :: ErrOptionsNew
minBound :: ErrOptionsNew
$cminBound :: ErrOptionsNew
Bounded, ReadPrec [ErrOptionsNew]
ReadPrec ErrOptionsNew
Int -> ReadS ErrOptionsNew
ReadS [ErrOptionsNew]
(Int -> ReadS ErrOptionsNew)
-> ReadS [ErrOptionsNew]
-> ReadPrec ErrOptionsNew
-> ReadPrec [ErrOptionsNew]
-> Read ErrOptionsNew
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrOptionsNew]
$creadListPrec :: ReadPrec [ErrOptionsNew]
readPrec :: ReadPrec ErrOptionsNew
$creadPrec :: ReadPrec ErrOptionsNew
readList :: ReadS [ErrOptionsNew]
$creadList :: ReadS [ErrOptionsNew]
readsPrec :: Int -> ReadS ErrOptionsNew
$creadsPrec :: Int -> ReadS ErrOptionsNew
Read, Int -> ErrOptionsNew -> ShowS
[ErrOptionsNew] -> ShowS
ErrOptionsNew -> String
(Int -> ErrOptionsNew -> ShowS)
-> (ErrOptionsNew -> String)
-> ([ErrOptionsNew] -> ShowS)
-> Show ErrOptionsNew
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrOptionsNew] -> ShowS
$cshowList :: [ErrOptionsNew] -> ShowS
show :: ErrOptionsNew -> String
$cshow :: ErrOptionsNew -> String
showsPrec :: Int -> ErrOptionsNew -> ShowS
$cshowsPrec :: Int -> ErrOptionsNew -> ShowS
Show, (forall x. ErrOptionsNew -> Rep ErrOptionsNew x)
-> (forall x. Rep ErrOptionsNew x -> ErrOptionsNew)
-> Generic ErrOptionsNew
forall x. Rep ErrOptionsNew x -> ErrOptionsNew
forall x. ErrOptionsNew -> Rep ErrOptionsNew x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrOptionsNew x -> ErrOptionsNew
$cfrom :: forall x. ErrOptionsNew -> Rep ErrOptionsNew x
Generic)
instance MessagePack ErrOptionsNew
instance Arbitrary ErrOptionsNew where arbitrary :: Gen ErrOptionsNew
arbitrary = Gen ErrOptionsNew
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_options_new :: CErr ErrOptionsNew -> IO OptionsPtr
foreign import ccall tox_options_free :: OptionsPtr -> IO ()
data ErrNew
= ErrNewNull
| ErrNewMalloc
| ErrNewPortAlloc
| ErrNewProxyBadType
| ErrNewProxyBadHost
| ErrNewProxyBadPort
| ErrNewProxyNotFound
| ErrNewLoadEncrypted
| ErrNewLoadBadFormat
deriving (ErrNew -> ErrNew -> Bool
(ErrNew -> ErrNew -> Bool)
-> (ErrNew -> ErrNew -> Bool) -> Eq ErrNew
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrNew -> ErrNew -> Bool
$c/= :: ErrNew -> ErrNew -> Bool
== :: ErrNew -> ErrNew -> Bool
$c== :: ErrNew -> ErrNew -> Bool
Eq, Eq ErrNew
Eq ErrNew
-> (ErrNew -> ErrNew -> Ordering)
-> (ErrNew -> ErrNew -> Bool)
-> (ErrNew -> ErrNew -> Bool)
-> (ErrNew -> ErrNew -> Bool)
-> (ErrNew -> ErrNew -> Bool)
-> (ErrNew -> ErrNew -> ErrNew)
-> (ErrNew -> ErrNew -> ErrNew)
-> Ord ErrNew
ErrNew -> ErrNew -> Bool
ErrNew -> ErrNew -> Ordering
ErrNew -> ErrNew -> ErrNew
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrNew -> ErrNew -> ErrNew
$cmin :: ErrNew -> ErrNew -> ErrNew
max :: ErrNew -> ErrNew -> ErrNew
$cmax :: ErrNew -> ErrNew -> ErrNew
>= :: ErrNew -> ErrNew -> Bool
$c>= :: ErrNew -> ErrNew -> Bool
> :: ErrNew -> ErrNew -> Bool
$c> :: ErrNew -> ErrNew -> Bool
<= :: ErrNew -> ErrNew -> Bool
$c<= :: ErrNew -> ErrNew -> Bool
< :: ErrNew -> ErrNew -> Bool
$c< :: ErrNew -> ErrNew -> Bool
compare :: ErrNew -> ErrNew -> Ordering
$ccompare :: ErrNew -> ErrNew -> Ordering
$cp1Ord :: Eq ErrNew
Ord, Int -> ErrNew
ErrNew -> Int
ErrNew -> [ErrNew]
ErrNew -> ErrNew
ErrNew -> ErrNew -> [ErrNew]
ErrNew -> ErrNew -> ErrNew -> [ErrNew]
(ErrNew -> ErrNew)
-> (ErrNew -> ErrNew)
-> (Int -> ErrNew)
-> (ErrNew -> Int)
-> (ErrNew -> [ErrNew])
-> (ErrNew -> ErrNew -> [ErrNew])
-> (ErrNew -> ErrNew -> [ErrNew])
-> (ErrNew -> ErrNew -> ErrNew -> [ErrNew])
-> Enum ErrNew
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrNew -> ErrNew -> ErrNew -> [ErrNew]
$cenumFromThenTo :: ErrNew -> ErrNew -> ErrNew -> [ErrNew]
enumFromTo :: ErrNew -> ErrNew -> [ErrNew]
$cenumFromTo :: ErrNew -> ErrNew -> [ErrNew]
enumFromThen :: ErrNew -> ErrNew -> [ErrNew]
$cenumFromThen :: ErrNew -> ErrNew -> [ErrNew]
enumFrom :: ErrNew -> [ErrNew]
$cenumFrom :: ErrNew -> [ErrNew]
fromEnum :: ErrNew -> Int
$cfromEnum :: ErrNew -> Int
toEnum :: Int -> ErrNew
$ctoEnum :: Int -> ErrNew
pred :: ErrNew -> ErrNew
$cpred :: ErrNew -> ErrNew
succ :: ErrNew -> ErrNew
$csucc :: ErrNew -> ErrNew
Enum, ErrNew
ErrNew -> ErrNew -> Bounded ErrNew
forall a. a -> a -> Bounded a
maxBound :: ErrNew
$cmaxBound :: ErrNew
minBound :: ErrNew
$cminBound :: ErrNew
Bounded, ReadPrec [ErrNew]
ReadPrec ErrNew
Int -> ReadS ErrNew
ReadS [ErrNew]
(Int -> ReadS ErrNew)
-> ReadS [ErrNew]
-> ReadPrec ErrNew
-> ReadPrec [ErrNew]
-> Read ErrNew
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrNew]
$creadListPrec :: ReadPrec [ErrNew]
readPrec :: ReadPrec ErrNew
$creadPrec :: ReadPrec ErrNew
readList :: ReadS [ErrNew]
$creadList :: ReadS [ErrNew]
readsPrec :: Int -> ReadS ErrNew
$creadsPrec :: Int -> ReadS ErrNew
Read, Int -> ErrNew -> ShowS
[ErrNew] -> ShowS
ErrNew -> String
(Int -> ErrNew -> ShowS)
-> (ErrNew -> String) -> ([ErrNew] -> ShowS) -> Show ErrNew
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrNew] -> ShowS
$cshowList :: [ErrNew] -> ShowS
show :: ErrNew -> String
$cshow :: ErrNew -> String
showsPrec :: Int -> ErrNew -> ShowS
$cshowsPrec :: Int -> ErrNew -> ShowS
Show, (forall x. ErrNew -> Rep ErrNew x)
-> (forall x. Rep ErrNew x -> ErrNew) -> Generic ErrNew
forall x. Rep ErrNew x -> ErrNew
forall x. ErrNew -> Rep ErrNew x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrNew x -> ErrNew
$cfrom :: forall x. ErrNew -> Rep ErrNew x
Generic)
instance MessagePack ErrNew
instance Arbitrary ErrNew where arbitrary :: Gen ErrNew
arbitrary = Gen ErrNew
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_new :: OptionsPtr -> CErr ErrNew -> IO ToxPtr
foreign import ccall tox_kill :: ToxPtr -> IO ()
foreign import ccall tox_get_savedata_size :: ToxPtr -> IO CSize
foreign import ccall tox_get_savedata :: ToxPtr -> CString -> IO ()
data ErrBootstrap
= ErrBootstrapNull
| ErrBootstrapBadHost
| ErrBootstrapBadPort
deriving (ErrBootstrap -> ErrBootstrap -> Bool
(ErrBootstrap -> ErrBootstrap -> Bool)
-> (ErrBootstrap -> ErrBootstrap -> Bool) -> Eq ErrBootstrap
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrBootstrap -> ErrBootstrap -> Bool
$c/= :: ErrBootstrap -> ErrBootstrap -> Bool
== :: ErrBootstrap -> ErrBootstrap -> Bool
$c== :: ErrBootstrap -> ErrBootstrap -> Bool
Eq, Eq ErrBootstrap
Eq ErrBootstrap
-> (ErrBootstrap -> ErrBootstrap -> Ordering)
-> (ErrBootstrap -> ErrBootstrap -> Bool)
-> (ErrBootstrap -> ErrBootstrap -> Bool)
-> (ErrBootstrap -> ErrBootstrap -> Bool)
-> (ErrBootstrap -> ErrBootstrap -> Bool)
-> (ErrBootstrap -> ErrBootstrap -> ErrBootstrap)
-> (ErrBootstrap -> ErrBootstrap -> ErrBootstrap)
-> Ord ErrBootstrap
ErrBootstrap -> ErrBootstrap -> Bool
ErrBootstrap -> ErrBootstrap -> Ordering
ErrBootstrap -> ErrBootstrap -> ErrBootstrap
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrBootstrap -> ErrBootstrap -> ErrBootstrap
$cmin :: ErrBootstrap -> ErrBootstrap -> ErrBootstrap
max :: ErrBootstrap -> ErrBootstrap -> ErrBootstrap
$cmax :: ErrBootstrap -> ErrBootstrap -> ErrBootstrap
>= :: ErrBootstrap -> ErrBootstrap -> Bool
$c>= :: ErrBootstrap -> ErrBootstrap -> Bool
> :: ErrBootstrap -> ErrBootstrap -> Bool
$c> :: ErrBootstrap -> ErrBootstrap -> Bool
<= :: ErrBootstrap -> ErrBootstrap -> Bool
$c<= :: ErrBootstrap -> ErrBootstrap -> Bool
< :: ErrBootstrap -> ErrBootstrap -> Bool
$c< :: ErrBootstrap -> ErrBootstrap -> Bool
compare :: ErrBootstrap -> ErrBootstrap -> Ordering
$ccompare :: ErrBootstrap -> ErrBootstrap -> Ordering
$cp1Ord :: Eq ErrBootstrap
Ord, Int -> ErrBootstrap
ErrBootstrap -> Int
ErrBootstrap -> [ErrBootstrap]
ErrBootstrap -> ErrBootstrap
ErrBootstrap -> ErrBootstrap -> [ErrBootstrap]
ErrBootstrap -> ErrBootstrap -> ErrBootstrap -> [ErrBootstrap]
(ErrBootstrap -> ErrBootstrap)
-> (ErrBootstrap -> ErrBootstrap)
-> (Int -> ErrBootstrap)
-> (ErrBootstrap -> Int)
-> (ErrBootstrap -> [ErrBootstrap])
-> (ErrBootstrap -> ErrBootstrap -> [ErrBootstrap])
-> (ErrBootstrap -> ErrBootstrap -> [ErrBootstrap])
-> (ErrBootstrap -> ErrBootstrap -> ErrBootstrap -> [ErrBootstrap])
-> Enum ErrBootstrap
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrBootstrap -> ErrBootstrap -> ErrBootstrap -> [ErrBootstrap]
$cenumFromThenTo :: ErrBootstrap -> ErrBootstrap -> ErrBootstrap -> [ErrBootstrap]
enumFromTo :: ErrBootstrap -> ErrBootstrap -> [ErrBootstrap]
$cenumFromTo :: ErrBootstrap -> ErrBootstrap -> [ErrBootstrap]
enumFromThen :: ErrBootstrap -> ErrBootstrap -> [ErrBootstrap]
$cenumFromThen :: ErrBootstrap -> ErrBootstrap -> [ErrBootstrap]
enumFrom :: ErrBootstrap -> [ErrBootstrap]
$cenumFrom :: ErrBootstrap -> [ErrBootstrap]
fromEnum :: ErrBootstrap -> Int
$cfromEnum :: ErrBootstrap -> Int
toEnum :: Int -> ErrBootstrap
$ctoEnum :: Int -> ErrBootstrap
pred :: ErrBootstrap -> ErrBootstrap
$cpred :: ErrBootstrap -> ErrBootstrap
succ :: ErrBootstrap -> ErrBootstrap
$csucc :: ErrBootstrap -> ErrBootstrap
Enum, ErrBootstrap
ErrBootstrap -> ErrBootstrap -> Bounded ErrBootstrap
forall a. a -> a -> Bounded a
maxBound :: ErrBootstrap
$cmaxBound :: ErrBootstrap
minBound :: ErrBootstrap
$cminBound :: ErrBootstrap
Bounded, ReadPrec [ErrBootstrap]
ReadPrec ErrBootstrap
Int -> ReadS ErrBootstrap
ReadS [ErrBootstrap]
(Int -> ReadS ErrBootstrap)
-> ReadS [ErrBootstrap]
-> ReadPrec ErrBootstrap
-> ReadPrec [ErrBootstrap]
-> Read ErrBootstrap
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrBootstrap]
$creadListPrec :: ReadPrec [ErrBootstrap]
readPrec :: ReadPrec ErrBootstrap
$creadPrec :: ReadPrec ErrBootstrap
readList :: ReadS [ErrBootstrap]
$creadList :: ReadS [ErrBootstrap]
readsPrec :: Int -> ReadS ErrBootstrap
$creadsPrec :: Int -> ReadS ErrBootstrap
Read, Int -> ErrBootstrap -> ShowS
[ErrBootstrap] -> ShowS
ErrBootstrap -> String
(Int -> ErrBootstrap -> ShowS)
-> (ErrBootstrap -> String)
-> ([ErrBootstrap] -> ShowS)
-> Show ErrBootstrap
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrBootstrap] -> ShowS
$cshowList :: [ErrBootstrap] -> ShowS
show :: ErrBootstrap -> String
$cshow :: ErrBootstrap -> String
showsPrec :: Int -> ErrBootstrap -> ShowS
$cshowsPrec :: Int -> ErrBootstrap -> ShowS
Show, (forall x. ErrBootstrap -> Rep ErrBootstrap x)
-> (forall x. Rep ErrBootstrap x -> ErrBootstrap)
-> Generic ErrBootstrap
forall x. Rep ErrBootstrap x -> ErrBootstrap
forall x. ErrBootstrap -> Rep ErrBootstrap x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrBootstrap x -> ErrBootstrap
$cfrom :: forall x. ErrBootstrap -> Rep ErrBootstrap x
Generic)
instance MessagePack ErrBootstrap
instance Arbitrary ErrBootstrap where arbitrary :: Gen ErrBootstrap
arbitrary = Gen ErrBootstrap
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_bootstrap :: ToxPtr -> CString -> Word16 -> CString -> CErr ErrBootstrap -> IO Bool
foreign import ccall tox_add_tcp_relay :: ToxPtr -> CString -> Word16 -> CString -> CErr ErrBootstrap -> IO Bool
data Connection
= ConnectionNone
| ConnectionTcp
| ConnectionUdp
deriving (Connection -> Connection -> Bool
(Connection -> Connection -> Bool)
-> (Connection -> Connection -> Bool) -> Eq Connection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Connection -> Connection -> Bool
$c/= :: Connection -> Connection -> Bool
== :: Connection -> Connection -> Bool
$c== :: Connection -> Connection -> Bool
Eq, Eq Connection
Eq Connection
-> (Connection -> Connection -> Ordering)
-> (Connection -> Connection -> Bool)
-> (Connection -> Connection -> Bool)
-> (Connection -> Connection -> Bool)
-> (Connection -> Connection -> Bool)
-> (Connection -> Connection -> Connection)
-> (Connection -> Connection -> Connection)
-> Ord Connection
Connection -> Connection -> Bool
Connection -> Connection -> Ordering
Connection -> Connection -> Connection
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: Connection -> Connection -> Connection
$cmin :: Connection -> Connection -> Connection
max :: Connection -> Connection -> Connection
$cmax :: Connection -> Connection -> Connection
>= :: Connection -> Connection -> Bool
$c>= :: Connection -> Connection -> Bool
> :: Connection -> Connection -> Bool
$c> :: Connection -> Connection -> Bool
<= :: Connection -> Connection -> Bool
$c<= :: Connection -> Connection -> Bool
< :: Connection -> Connection -> Bool
$c< :: Connection -> Connection -> Bool
compare :: Connection -> Connection -> Ordering
$ccompare :: Connection -> Connection -> Ordering
$cp1Ord :: Eq Connection
Ord, Int -> Connection
Connection -> Int
Connection -> [Connection]
Connection -> Connection
Connection -> Connection -> [Connection]
Connection -> Connection -> Connection -> [Connection]
(Connection -> Connection)
-> (Connection -> Connection)
-> (Int -> Connection)
-> (Connection -> Int)
-> (Connection -> [Connection])
-> (Connection -> Connection -> [Connection])
-> (Connection -> Connection -> [Connection])
-> (Connection -> Connection -> Connection -> [Connection])
-> Enum Connection
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: Connection -> Connection -> Connection -> [Connection]
$cenumFromThenTo :: Connection -> Connection -> Connection -> [Connection]
enumFromTo :: Connection -> Connection -> [Connection]
$cenumFromTo :: Connection -> Connection -> [Connection]
enumFromThen :: Connection -> Connection -> [Connection]
$cenumFromThen :: Connection -> Connection -> [Connection]
enumFrom :: Connection -> [Connection]
$cenumFrom :: Connection -> [Connection]
fromEnum :: Connection -> Int
$cfromEnum :: Connection -> Int
toEnum :: Int -> Connection
$ctoEnum :: Int -> Connection
pred :: Connection -> Connection
$cpred :: Connection -> Connection
succ :: Connection -> Connection
$csucc :: Connection -> Connection
Enum, Connection
Connection -> Connection -> Bounded Connection
forall a. a -> a -> Bounded a
maxBound :: Connection
$cmaxBound :: Connection
minBound :: Connection
$cminBound :: Connection
Bounded, ReadPrec [Connection]
ReadPrec Connection
Int -> ReadS Connection
ReadS [Connection]
(Int -> ReadS Connection)
-> ReadS [Connection]
-> ReadPrec Connection
-> ReadPrec [Connection]
-> Read Connection
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Connection]
$creadListPrec :: ReadPrec [Connection]
readPrec :: ReadPrec Connection
$creadPrec :: ReadPrec Connection
readList :: ReadS [Connection]
$creadList :: ReadS [Connection]
readsPrec :: Int -> ReadS Connection
$creadsPrec :: Int -> ReadS Connection
Read, Int -> Connection -> ShowS
[Connection] -> ShowS
Connection -> String
(Int -> Connection -> ShowS)
-> (Connection -> String)
-> ([Connection] -> ShowS)
-> Show Connection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Connection] -> ShowS
$cshowList :: [Connection] -> ShowS
show :: Connection -> String
$cshow :: Connection -> String
showsPrec :: Int -> Connection -> ShowS
$cshowsPrec :: Int -> Connection -> ShowS
Show, (forall x. Connection -> Rep Connection x)
-> (forall x. Rep Connection x -> Connection) -> Generic Connection
forall x. Rep Connection x -> Connection
forall x. Connection -> Rep Connection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Connection x -> Connection
$cfrom :: forall x. Connection -> Rep Connection x
Generic)
instance MessagePack Connection
instance Arbitrary Connection where arbitrary :: Gen Connection
arbitrary = Gen Connection
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_self_get_connection_status :: ToxPtr -> IO (CEnum Connection)
type SelfConnectionStatusCb = ToxPtr -> CEnum Connection -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapSelfConnectionStatusCb :: SelfConnectionStatusCb -> IO (FunPtr SelfConnectionStatusCb)
foreign import ccall tox_callback_self_connection_status :: ToxPtr -> FunPtr SelfConnectionStatusCb -> IO ()
foreign import ccall tox_iteration_interval :: ToxPtr -> IO Word32
foreign import ccall tox_iterate :: ToxPtr -> Ptr () -> IO ()
foreign import ccall tox_self_get_address :: ToxPtr -> CString -> IO ()
foreign import ccall tox_self_set_nospam :: ToxPtr -> Word32 -> IO ()
foreign import ccall tox_self_get_nospam :: ToxPtr -> IO Word32
foreign import ccall tox_self_get_public_key :: ToxPtr -> CString -> IO ()
foreign import ccall tox_self_get_secret_key :: ToxPtr -> CString -> IO ()
data ErrSetInfo
= ErrSetInfoNull
| ErrSetInfoTooLong
deriving (ErrSetInfo -> ErrSetInfo -> Bool
(ErrSetInfo -> ErrSetInfo -> Bool)
-> (ErrSetInfo -> ErrSetInfo -> Bool) -> Eq ErrSetInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrSetInfo -> ErrSetInfo -> Bool
$c/= :: ErrSetInfo -> ErrSetInfo -> Bool
== :: ErrSetInfo -> ErrSetInfo -> Bool
$c== :: ErrSetInfo -> ErrSetInfo -> Bool
Eq, Eq ErrSetInfo
Eq ErrSetInfo
-> (ErrSetInfo -> ErrSetInfo -> Ordering)
-> (ErrSetInfo -> ErrSetInfo -> Bool)
-> (ErrSetInfo -> ErrSetInfo -> Bool)
-> (ErrSetInfo -> ErrSetInfo -> Bool)
-> (ErrSetInfo -> ErrSetInfo -> Bool)
-> (ErrSetInfo -> ErrSetInfo -> ErrSetInfo)
-> (ErrSetInfo -> ErrSetInfo -> ErrSetInfo)
-> Ord ErrSetInfo
ErrSetInfo -> ErrSetInfo -> Bool
ErrSetInfo -> ErrSetInfo -> Ordering
ErrSetInfo -> ErrSetInfo -> ErrSetInfo
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrSetInfo -> ErrSetInfo -> ErrSetInfo
$cmin :: ErrSetInfo -> ErrSetInfo -> ErrSetInfo
max :: ErrSetInfo -> ErrSetInfo -> ErrSetInfo
$cmax :: ErrSetInfo -> ErrSetInfo -> ErrSetInfo
>= :: ErrSetInfo -> ErrSetInfo -> Bool
$c>= :: ErrSetInfo -> ErrSetInfo -> Bool
> :: ErrSetInfo -> ErrSetInfo -> Bool
$c> :: ErrSetInfo -> ErrSetInfo -> Bool
<= :: ErrSetInfo -> ErrSetInfo -> Bool
$c<= :: ErrSetInfo -> ErrSetInfo -> Bool
< :: ErrSetInfo -> ErrSetInfo -> Bool
$c< :: ErrSetInfo -> ErrSetInfo -> Bool
compare :: ErrSetInfo -> ErrSetInfo -> Ordering
$ccompare :: ErrSetInfo -> ErrSetInfo -> Ordering
$cp1Ord :: Eq ErrSetInfo
Ord, Int -> ErrSetInfo
ErrSetInfo -> Int
ErrSetInfo -> [ErrSetInfo]
ErrSetInfo -> ErrSetInfo
ErrSetInfo -> ErrSetInfo -> [ErrSetInfo]
ErrSetInfo -> ErrSetInfo -> ErrSetInfo -> [ErrSetInfo]
(ErrSetInfo -> ErrSetInfo)
-> (ErrSetInfo -> ErrSetInfo)
-> (Int -> ErrSetInfo)
-> (ErrSetInfo -> Int)
-> (ErrSetInfo -> [ErrSetInfo])
-> (ErrSetInfo -> ErrSetInfo -> [ErrSetInfo])
-> (ErrSetInfo -> ErrSetInfo -> [ErrSetInfo])
-> (ErrSetInfo -> ErrSetInfo -> ErrSetInfo -> [ErrSetInfo])
-> Enum ErrSetInfo
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrSetInfo -> ErrSetInfo -> ErrSetInfo -> [ErrSetInfo]
$cenumFromThenTo :: ErrSetInfo -> ErrSetInfo -> ErrSetInfo -> [ErrSetInfo]
enumFromTo :: ErrSetInfo -> ErrSetInfo -> [ErrSetInfo]
$cenumFromTo :: ErrSetInfo -> ErrSetInfo -> [ErrSetInfo]
enumFromThen :: ErrSetInfo -> ErrSetInfo -> [ErrSetInfo]
$cenumFromThen :: ErrSetInfo -> ErrSetInfo -> [ErrSetInfo]
enumFrom :: ErrSetInfo -> [ErrSetInfo]
$cenumFrom :: ErrSetInfo -> [ErrSetInfo]
fromEnum :: ErrSetInfo -> Int
$cfromEnum :: ErrSetInfo -> Int
toEnum :: Int -> ErrSetInfo
$ctoEnum :: Int -> ErrSetInfo
pred :: ErrSetInfo -> ErrSetInfo
$cpred :: ErrSetInfo -> ErrSetInfo
succ :: ErrSetInfo -> ErrSetInfo
$csucc :: ErrSetInfo -> ErrSetInfo
Enum, ErrSetInfo
ErrSetInfo -> ErrSetInfo -> Bounded ErrSetInfo
forall a. a -> a -> Bounded a
maxBound :: ErrSetInfo
$cmaxBound :: ErrSetInfo
minBound :: ErrSetInfo
$cminBound :: ErrSetInfo
Bounded, ReadPrec [ErrSetInfo]
ReadPrec ErrSetInfo
Int -> ReadS ErrSetInfo
ReadS [ErrSetInfo]
(Int -> ReadS ErrSetInfo)
-> ReadS [ErrSetInfo]
-> ReadPrec ErrSetInfo
-> ReadPrec [ErrSetInfo]
-> Read ErrSetInfo
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrSetInfo]
$creadListPrec :: ReadPrec [ErrSetInfo]
readPrec :: ReadPrec ErrSetInfo
$creadPrec :: ReadPrec ErrSetInfo
readList :: ReadS [ErrSetInfo]
$creadList :: ReadS [ErrSetInfo]
readsPrec :: Int -> ReadS ErrSetInfo
$creadsPrec :: Int -> ReadS ErrSetInfo
Read, Int -> ErrSetInfo -> ShowS
[ErrSetInfo] -> ShowS
ErrSetInfo -> String
(Int -> ErrSetInfo -> ShowS)
-> (ErrSetInfo -> String)
-> ([ErrSetInfo] -> ShowS)
-> Show ErrSetInfo
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrSetInfo] -> ShowS
$cshowList :: [ErrSetInfo] -> ShowS
show :: ErrSetInfo -> String
$cshow :: ErrSetInfo -> String
showsPrec :: Int -> ErrSetInfo -> ShowS
$cshowsPrec :: Int -> ErrSetInfo -> ShowS
Show, (forall x. ErrSetInfo -> Rep ErrSetInfo x)
-> (forall x. Rep ErrSetInfo x -> ErrSetInfo) -> Generic ErrSetInfo
forall x. Rep ErrSetInfo x -> ErrSetInfo
forall x. ErrSetInfo -> Rep ErrSetInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrSetInfo x -> ErrSetInfo
$cfrom :: forall x. ErrSetInfo -> Rep ErrSetInfo x
Generic)
instance MessagePack ErrSetInfo
instance Arbitrary ErrSetInfo where arbitrary :: Gen ErrSetInfo
arbitrary = Gen ErrSetInfo
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_self_set_name :: ToxPtr -> CString -> CSize -> CErr ErrSetInfo -> IO Bool
foreign import ccall tox_self_get_name_size :: ToxPtr -> IO CSize
foreign import ccall tox_self_get_name :: ToxPtr -> CString -> IO ()
foreign import ccall tox_self_set_status_message :: ToxPtr -> CString -> CSize -> CErr ErrSetInfo -> IO Bool
foreign import ccall tox_self_get_status_message_size :: ToxPtr -> IO CSize
foreign import ccall tox_self_get_status_message :: ToxPtr -> CString -> IO ()
foreign import ccall tox_self_set_status :: ToxPtr -> CEnum UserStatus -> IO ()
foreign import ccall tox_self_get_status :: ToxPtr -> IO (CEnum UserStatus)
data ErrFriendAdd
= ErrFriendAddNull
| ErrFriendAddTooLong
| ErrFriendAddNoMessage
| ErrFriendAddOwnKey
| ErrFriendAddAlreadySent
| ErrFriendAddBadChecksum
| ErrFriendAddSetNewNospam
| ErrFriendAddMalloc
deriving (ErrFriendAdd -> ErrFriendAdd -> Bool
(ErrFriendAdd -> ErrFriendAdd -> Bool)
-> (ErrFriendAdd -> ErrFriendAdd -> Bool) -> Eq ErrFriendAdd
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFriendAdd -> ErrFriendAdd -> Bool
$c/= :: ErrFriendAdd -> ErrFriendAdd -> Bool
== :: ErrFriendAdd -> ErrFriendAdd -> Bool
$c== :: ErrFriendAdd -> ErrFriendAdd -> Bool
Eq, Eq ErrFriendAdd
Eq ErrFriendAdd
-> (ErrFriendAdd -> ErrFriendAdd -> Ordering)
-> (ErrFriendAdd -> ErrFriendAdd -> Bool)
-> (ErrFriendAdd -> ErrFriendAdd -> Bool)
-> (ErrFriendAdd -> ErrFriendAdd -> Bool)
-> (ErrFriendAdd -> ErrFriendAdd -> Bool)
-> (ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd)
-> (ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd)
-> Ord ErrFriendAdd
ErrFriendAdd -> ErrFriendAdd -> Bool
ErrFriendAdd -> ErrFriendAdd -> Ordering
ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd
$cmin :: ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd
max :: ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd
$cmax :: ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd
>= :: ErrFriendAdd -> ErrFriendAdd -> Bool
$c>= :: ErrFriendAdd -> ErrFriendAdd -> Bool
> :: ErrFriendAdd -> ErrFriendAdd -> Bool
$c> :: ErrFriendAdd -> ErrFriendAdd -> Bool
<= :: ErrFriendAdd -> ErrFriendAdd -> Bool
$c<= :: ErrFriendAdd -> ErrFriendAdd -> Bool
< :: ErrFriendAdd -> ErrFriendAdd -> Bool
$c< :: ErrFriendAdd -> ErrFriendAdd -> Bool
compare :: ErrFriendAdd -> ErrFriendAdd -> Ordering
$ccompare :: ErrFriendAdd -> ErrFriendAdd -> Ordering
$cp1Ord :: Eq ErrFriendAdd
Ord, Int -> ErrFriendAdd
ErrFriendAdd -> Int
ErrFriendAdd -> [ErrFriendAdd]
ErrFriendAdd -> ErrFriendAdd
ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd]
ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd]
(ErrFriendAdd -> ErrFriendAdd)
-> (ErrFriendAdd -> ErrFriendAdd)
-> (Int -> ErrFriendAdd)
-> (ErrFriendAdd -> Int)
-> (ErrFriendAdd -> [ErrFriendAdd])
-> (ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd])
-> (ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd])
-> (ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd])
-> Enum ErrFriendAdd
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd]
$cenumFromThenTo :: ErrFriendAdd -> ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd]
enumFromTo :: ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd]
$cenumFromTo :: ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd]
enumFromThen :: ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd]
$cenumFromThen :: ErrFriendAdd -> ErrFriendAdd -> [ErrFriendAdd]
enumFrom :: ErrFriendAdd -> [ErrFriendAdd]
$cenumFrom :: ErrFriendAdd -> [ErrFriendAdd]
fromEnum :: ErrFriendAdd -> Int
$cfromEnum :: ErrFriendAdd -> Int
toEnum :: Int -> ErrFriendAdd
$ctoEnum :: Int -> ErrFriendAdd
pred :: ErrFriendAdd -> ErrFriendAdd
$cpred :: ErrFriendAdd -> ErrFriendAdd
succ :: ErrFriendAdd -> ErrFriendAdd
$csucc :: ErrFriendAdd -> ErrFriendAdd
Enum, ErrFriendAdd
ErrFriendAdd -> ErrFriendAdd -> Bounded ErrFriendAdd
forall a. a -> a -> Bounded a
maxBound :: ErrFriendAdd
$cmaxBound :: ErrFriendAdd
minBound :: ErrFriendAdd
$cminBound :: ErrFriendAdd
Bounded, ReadPrec [ErrFriendAdd]
ReadPrec ErrFriendAdd
Int -> ReadS ErrFriendAdd
ReadS [ErrFriendAdd]
(Int -> ReadS ErrFriendAdd)
-> ReadS [ErrFriendAdd]
-> ReadPrec ErrFriendAdd
-> ReadPrec [ErrFriendAdd]
-> Read ErrFriendAdd
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFriendAdd]
$creadListPrec :: ReadPrec [ErrFriendAdd]
readPrec :: ReadPrec ErrFriendAdd
$creadPrec :: ReadPrec ErrFriendAdd
readList :: ReadS [ErrFriendAdd]
$creadList :: ReadS [ErrFriendAdd]
readsPrec :: Int -> ReadS ErrFriendAdd
$creadsPrec :: Int -> ReadS ErrFriendAdd
Read, Int -> ErrFriendAdd -> ShowS
[ErrFriendAdd] -> ShowS
ErrFriendAdd -> String
(Int -> ErrFriendAdd -> ShowS)
-> (ErrFriendAdd -> String)
-> ([ErrFriendAdd] -> ShowS)
-> Show ErrFriendAdd
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFriendAdd] -> ShowS
$cshowList :: [ErrFriendAdd] -> ShowS
show :: ErrFriendAdd -> String
$cshow :: ErrFriendAdd -> String
showsPrec :: Int -> ErrFriendAdd -> ShowS
$cshowsPrec :: Int -> ErrFriendAdd -> ShowS
Show, (forall x. ErrFriendAdd -> Rep ErrFriendAdd x)
-> (forall x. Rep ErrFriendAdd x -> ErrFriendAdd)
-> Generic ErrFriendAdd
forall x. Rep ErrFriendAdd x -> ErrFriendAdd
forall x. ErrFriendAdd -> Rep ErrFriendAdd x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFriendAdd x -> ErrFriendAdd
$cfrom :: forall x. ErrFriendAdd -> Rep ErrFriendAdd x
Generic)
instance MessagePack ErrFriendAdd
instance Arbitrary ErrFriendAdd where arbitrary :: Gen ErrFriendAdd
arbitrary = Gen ErrFriendAdd
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_friend_add :: ToxPtr -> CString -> CString -> CSize -> CErr ErrFriendAdd -> IO Word32
foreign import ccall tox_friend_add_norequest :: ToxPtr -> CString -> CErr ErrFriendAdd -> IO Word32
data ErrFriendDelete
= ErrFriendDeleteFriendNotFound
deriving (ErrFriendDelete -> ErrFriendDelete -> Bool
(ErrFriendDelete -> ErrFriendDelete -> Bool)
-> (ErrFriendDelete -> ErrFriendDelete -> Bool)
-> Eq ErrFriendDelete
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFriendDelete -> ErrFriendDelete -> Bool
$c/= :: ErrFriendDelete -> ErrFriendDelete -> Bool
== :: ErrFriendDelete -> ErrFriendDelete -> Bool
$c== :: ErrFriendDelete -> ErrFriendDelete -> Bool
Eq, Eq ErrFriendDelete
Eq ErrFriendDelete
-> (ErrFriendDelete -> ErrFriendDelete -> Ordering)
-> (ErrFriendDelete -> ErrFriendDelete -> Bool)
-> (ErrFriendDelete -> ErrFriendDelete -> Bool)
-> (ErrFriendDelete -> ErrFriendDelete -> Bool)
-> (ErrFriendDelete -> ErrFriendDelete -> Bool)
-> (ErrFriendDelete -> ErrFriendDelete -> ErrFriendDelete)
-> (ErrFriendDelete -> ErrFriendDelete -> ErrFriendDelete)
-> Ord ErrFriendDelete
ErrFriendDelete -> ErrFriendDelete -> Bool
ErrFriendDelete -> ErrFriendDelete -> Ordering
ErrFriendDelete -> ErrFriendDelete -> ErrFriendDelete
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFriendDelete -> ErrFriendDelete -> ErrFriendDelete
$cmin :: ErrFriendDelete -> ErrFriendDelete -> ErrFriendDelete
max :: ErrFriendDelete -> ErrFriendDelete -> ErrFriendDelete
$cmax :: ErrFriendDelete -> ErrFriendDelete -> ErrFriendDelete
>= :: ErrFriendDelete -> ErrFriendDelete -> Bool
$c>= :: ErrFriendDelete -> ErrFriendDelete -> Bool
> :: ErrFriendDelete -> ErrFriendDelete -> Bool
$c> :: ErrFriendDelete -> ErrFriendDelete -> Bool
<= :: ErrFriendDelete -> ErrFriendDelete -> Bool
$c<= :: ErrFriendDelete -> ErrFriendDelete -> Bool
< :: ErrFriendDelete -> ErrFriendDelete -> Bool
$c< :: ErrFriendDelete -> ErrFriendDelete -> Bool
compare :: ErrFriendDelete -> ErrFriendDelete -> Ordering
$ccompare :: ErrFriendDelete -> ErrFriendDelete -> Ordering
$cp1Ord :: Eq ErrFriendDelete
Ord, Int -> ErrFriendDelete
ErrFriendDelete -> Int
ErrFriendDelete -> [ErrFriendDelete]
ErrFriendDelete -> ErrFriendDelete
ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete]
ErrFriendDelete
-> ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete]
(ErrFriendDelete -> ErrFriendDelete)
-> (ErrFriendDelete -> ErrFriendDelete)
-> (Int -> ErrFriendDelete)
-> (ErrFriendDelete -> Int)
-> (ErrFriendDelete -> [ErrFriendDelete])
-> (ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete])
-> (ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete])
-> (ErrFriendDelete
-> ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete])
-> Enum ErrFriendDelete
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFriendDelete
-> ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete]
$cenumFromThenTo :: ErrFriendDelete
-> ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete]
enumFromTo :: ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete]
$cenumFromTo :: ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete]
enumFromThen :: ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete]
$cenumFromThen :: ErrFriendDelete -> ErrFriendDelete -> [ErrFriendDelete]
enumFrom :: ErrFriendDelete -> [ErrFriendDelete]
$cenumFrom :: ErrFriendDelete -> [ErrFriendDelete]
fromEnum :: ErrFriendDelete -> Int
$cfromEnum :: ErrFriendDelete -> Int
toEnum :: Int -> ErrFriendDelete
$ctoEnum :: Int -> ErrFriendDelete
pred :: ErrFriendDelete -> ErrFriendDelete
$cpred :: ErrFriendDelete -> ErrFriendDelete
succ :: ErrFriendDelete -> ErrFriendDelete
$csucc :: ErrFriendDelete -> ErrFriendDelete
Enum, ErrFriendDelete
ErrFriendDelete -> ErrFriendDelete -> Bounded ErrFriendDelete
forall a. a -> a -> Bounded a
maxBound :: ErrFriendDelete
$cmaxBound :: ErrFriendDelete
minBound :: ErrFriendDelete
$cminBound :: ErrFriendDelete
Bounded, ReadPrec [ErrFriendDelete]
ReadPrec ErrFriendDelete
Int -> ReadS ErrFriendDelete
ReadS [ErrFriendDelete]
(Int -> ReadS ErrFriendDelete)
-> ReadS [ErrFriendDelete]
-> ReadPrec ErrFriendDelete
-> ReadPrec [ErrFriendDelete]
-> Read ErrFriendDelete
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFriendDelete]
$creadListPrec :: ReadPrec [ErrFriendDelete]
readPrec :: ReadPrec ErrFriendDelete
$creadPrec :: ReadPrec ErrFriendDelete
readList :: ReadS [ErrFriendDelete]
$creadList :: ReadS [ErrFriendDelete]
readsPrec :: Int -> ReadS ErrFriendDelete
$creadsPrec :: Int -> ReadS ErrFriendDelete
Read, Int -> ErrFriendDelete -> ShowS
[ErrFriendDelete] -> ShowS
ErrFriendDelete -> String
(Int -> ErrFriendDelete -> ShowS)
-> (ErrFriendDelete -> String)
-> ([ErrFriendDelete] -> ShowS)
-> Show ErrFriendDelete
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFriendDelete] -> ShowS
$cshowList :: [ErrFriendDelete] -> ShowS
show :: ErrFriendDelete -> String
$cshow :: ErrFriendDelete -> String
showsPrec :: Int -> ErrFriendDelete -> ShowS
$cshowsPrec :: Int -> ErrFriendDelete -> ShowS
Show, (forall x. ErrFriendDelete -> Rep ErrFriendDelete x)
-> (forall x. Rep ErrFriendDelete x -> ErrFriendDelete)
-> Generic ErrFriendDelete
forall x. Rep ErrFriendDelete x -> ErrFriendDelete
forall x. ErrFriendDelete -> Rep ErrFriendDelete x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFriendDelete x -> ErrFriendDelete
$cfrom :: forall x. ErrFriendDelete -> Rep ErrFriendDelete x
Generic)
instance MessagePack ErrFriendDelete
instance Arbitrary ErrFriendDelete where arbitrary :: Gen ErrFriendDelete
arbitrary = Gen ErrFriendDelete
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_friend_delete :: ToxPtr -> Word32 -> CErr ErrFriendDelete -> IO Bool
data ErrFriendByPublicKey
= ErrFriendByPublicKeyNull
| ErrFriendByPublicKeyNotFound
deriving (ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
(ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool)
-> (ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool)
-> Eq ErrFriendByPublicKey
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
$c/= :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
== :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
$c== :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
Eq, Eq ErrFriendByPublicKey
Eq ErrFriendByPublicKey
-> (ErrFriendByPublicKey -> ErrFriendByPublicKey -> Ordering)
-> (ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool)
-> (ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool)
-> (ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool)
-> (ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool)
-> (ErrFriendByPublicKey
-> ErrFriendByPublicKey -> ErrFriendByPublicKey)
-> (ErrFriendByPublicKey
-> ErrFriendByPublicKey -> ErrFriendByPublicKey)
-> Ord ErrFriendByPublicKey
ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
ErrFriendByPublicKey -> ErrFriendByPublicKey -> Ordering
ErrFriendByPublicKey
-> ErrFriendByPublicKey -> ErrFriendByPublicKey
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFriendByPublicKey
-> ErrFriendByPublicKey -> ErrFriendByPublicKey
$cmin :: ErrFriendByPublicKey
-> ErrFriendByPublicKey -> ErrFriendByPublicKey
max :: ErrFriendByPublicKey
-> ErrFriendByPublicKey -> ErrFriendByPublicKey
$cmax :: ErrFriendByPublicKey
-> ErrFriendByPublicKey -> ErrFriendByPublicKey
>= :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
$c>= :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
> :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
$c> :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
<= :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
$c<= :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
< :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
$c< :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Bool
compare :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Ordering
$ccompare :: ErrFriendByPublicKey -> ErrFriendByPublicKey -> Ordering
$cp1Ord :: Eq ErrFriendByPublicKey
Ord, Int -> ErrFriendByPublicKey
ErrFriendByPublicKey -> Int
ErrFriendByPublicKey -> [ErrFriendByPublicKey]
ErrFriendByPublicKey -> ErrFriendByPublicKey
ErrFriendByPublicKey
-> ErrFriendByPublicKey -> [ErrFriendByPublicKey]
ErrFriendByPublicKey
-> ErrFriendByPublicKey
-> ErrFriendByPublicKey
-> [ErrFriendByPublicKey]
(ErrFriendByPublicKey -> ErrFriendByPublicKey)
-> (ErrFriendByPublicKey -> ErrFriendByPublicKey)
-> (Int -> ErrFriendByPublicKey)
-> (ErrFriendByPublicKey -> Int)
-> (ErrFriendByPublicKey -> [ErrFriendByPublicKey])
-> (ErrFriendByPublicKey
-> ErrFriendByPublicKey -> [ErrFriendByPublicKey])
-> (ErrFriendByPublicKey
-> ErrFriendByPublicKey -> [ErrFriendByPublicKey])
-> (ErrFriendByPublicKey
-> ErrFriendByPublicKey
-> ErrFriendByPublicKey
-> [ErrFriendByPublicKey])
-> Enum ErrFriendByPublicKey
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFriendByPublicKey
-> ErrFriendByPublicKey
-> ErrFriendByPublicKey
-> [ErrFriendByPublicKey]
$cenumFromThenTo :: ErrFriendByPublicKey
-> ErrFriendByPublicKey
-> ErrFriendByPublicKey
-> [ErrFriendByPublicKey]
enumFromTo :: ErrFriendByPublicKey
-> ErrFriendByPublicKey -> [ErrFriendByPublicKey]
$cenumFromTo :: ErrFriendByPublicKey
-> ErrFriendByPublicKey -> [ErrFriendByPublicKey]
enumFromThen :: ErrFriendByPublicKey
-> ErrFriendByPublicKey -> [ErrFriendByPublicKey]
$cenumFromThen :: ErrFriendByPublicKey
-> ErrFriendByPublicKey -> [ErrFriendByPublicKey]
enumFrom :: ErrFriendByPublicKey -> [ErrFriendByPublicKey]
$cenumFrom :: ErrFriendByPublicKey -> [ErrFriendByPublicKey]
fromEnum :: ErrFriendByPublicKey -> Int
$cfromEnum :: ErrFriendByPublicKey -> Int
toEnum :: Int -> ErrFriendByPublicKey
$ctoEnum :: Int -> ErrFriendByPublicKey
pred :: ErrFriendByPublicKey -> ErrFriendByPublicKey
$cpred :: ErrFriendByPublicKey -> ErrFriendByPublicKey
succ :: ErrFriendByPublicKey -> ErrFriendByPublicKey
$csucc :: ErrFriendByPublicKey -> ErrFriendByPublicKey
Enum, ErrFriendByPublicKey
ErrFriendByPublicKey
-> ErrFriendByPublicKey -> Bounded ErrFriendByPublicKey
forall a. a -> a -> Bounded a
maxBound :: ErrFriendByPublicKey
$cmaxBound :: ErrFriendByPublicKey
minBound :: ErrFriendByPublicKey
$cminBound :: ErrFriendByPublicKey
Bounded, ReadPrec [ErrFriendByPublicKey]
ReadPrec ErrFriendByPublicKey
Int -> ReadS ErrFriendByPublicKey
ReadS [ErrFriendByPublicKey]
(Int -> ReadS ErrFriendByPublicKey)
-> ReadS [ErrFriendByPublicKey]
-> ReadPrec ErrFriendByPublicKey
-> ReadPrec [ErrFriendByPublicKey]
-> Read ErrFriendByPublicKey
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFriendByPublicKey]
$creadListPrec :: ReadPrec [ErrFriendByPublicKey]
readPrec :: ReadPrec ErrFriendByPublicKey
$creadPrec :: ReadPrec ErrFriendByPublicKey
readList :: ReadS [ErrFriendByPublicKey]
$creadList :: ReadS [ErrFriendByPublicKey]
readsPrec :: Int -> ReadS ErrFriendByPublicKey
$creadsPrec :: Int -> ReadS ErrFriendByPublicKey
Read, Int -> ErrFriendByPublicKey -> ShowS
[ErrFriendByPublicKey] -> ShowS
ErrFriendByPublicKey -> String
(Int -> ErrFriendByPublicKey -> ShowS)
-> (ErrFriendByPublicKey -> String)
-> ([ErrFriendByPublicKey] -> ShowS)
-> Show ErrFriendByPublicKey
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFriendByPublicKey] -> ShowS
$cshowList :: [ErrFriendByPublicKey] -> ShowS
show :: ErrFriendByPublicKey -> String
$cshow :: ErrFriendByPublicKey -> String
showsPrec :: Int -> ErrFriendByPublicKey -> ShowS
$cshowsPrec :: Int -> ErrFriendByPublicKey -> ShowS
Show, (forall x. ErrFriendByPublicKey -> Rep ErrFriendByPublicKey x)
-> (forall x. Rep ErrFriendByPublicKey x -> ErrFriendByPublicKey)
-> Generic ErrFriendByPublicKey
forall x. Rep ErrFriendByPublicKey x -> ErrFriendByPublicKey
forall x. ErrFriendByPublicKey -> Rep ErrFriendByPublicKey x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFriendByPublicKey x -> ErrFriendByPublicKey
$cfrom :: forall x. ErrFriendByPublicKey -> Rep ErrFriendByPublicKey x
Generic)
instance MessagePack ErrFriendByPublicKey
instance Arbitrary ErrFriendByPublicKey where arbitrary :: Gen ErrFriendByPublicKey
arbitrary = Gen ErrFriendByPublicKey
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_friend_by_public_key :: ToxPtr -> CString -> CErr ErrFriendByPublicKey -> IO Word32
foreign import ccall tox_friend_exists :: ToxPtr -> Word32 -> IO Bool
foreign import ccall tox_self_get_friend_list_size :: ToxPtr -> IO CSize
foreign import ccall tox_self_get_friend_list :: ToxPtr -> Ptr Word32 -> IO ()
data ErrFriendGetPublicKey
= ErrFriendGetPublicKeyFriendNotFound
deriving (ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
(ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool)
-> (ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool)
-> Eq ErrFriendGetPublicKey
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
$c/= :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
== :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
$c== :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
Eq, Eq ErrFriendGetPublicKey
Eq ErrFriendGetPublicKey
-> (ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Ordering)
-> (ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool)
-> (ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool)
-> (ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool)
-> (ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool)
-> (ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> ErrFriendGetPublicKey)
-> (ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> ErrFriendGetPublicKey)
-> Ord ErrFriendGetPublicKey
ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Ordering
ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> ErrFriendGetPublicKey
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> ErrFriendGetPublicKey
$cmin :: ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> ErrFriendGetPublicKey
max :: ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> ErrFriendGetPublicKey
$cmax :: ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> ErrFriendGetPublicKey
>= :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
$c>= :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
> :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
$c> :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
<= :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
$c<= :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
< :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
$c< :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Bool
compare :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Ordering
$ccompare :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey -> Ordering
$cp1Ord :: Eq ErrFriendGetPublicKey
Ord, Int -> ErrFriendGetPublicKey
ErrFriendGetPublicKey -> Int
ErrFriendGetPublicKey -> [ErrFriendGetPublicKey]
ErrFriendGetPublicKey -> ErrFriendGetPublicKey
ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> [ErrFriendGetPublicKey]
ErrFriendGetPublicKey
-> ErrFriendGetPublicKey
-> ErrFriendGetPublicKey
-> [ErrFriendGetPublicKey]
(ErrFriendGetPublicKey -> ErrFriendGetPublicKey)
-> (ErrFriendGetPublicKey -> ErrFriendGetPublicKey)
-> (Int -> ErrFriendGetPublicKey)
-> (ErrFriendGetPublicKey -> Int)
-> (ErrFriendGetPublicKey -> [ErrFriendGetPublicKey])
-> (ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> [ErrFriendGetPublicKey])
-> (ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> [ErrFriendGetPublicKey])
-> (ErrFriendGetPublicKey
-> ErrFriendGetPublicKey
-> ErrFriendGetPublicKey
-> [ErrFriendGetPublicKey])
-> Enum ErrFriendGetPublicKey
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFriendGetPublicKey
-> ErrFriendGetPublicKey
-> ErrFriendGetPublicKey
-> [ErrFriendGetPublicKey]
$cenumFromThenTo :: ErrFriendGetPublicKey
-> ErrFriendGetPublicKey
-> ErrFriendGetPublicKey
-> [ErrFriendGetPublicKey]
enumFromTo :: ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> [ErrFriendGetPublicKey]
$cenumFromTo :: ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> [ErrFriendGetPublicKey]
enumFromThen :: ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> [ErrFriendGetPublicKey]
$cenumFromThen :: ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> [ErrFriendGetPublicKey]
enumFrom :: ErrFriendGetPublicKey -> [ErrFriendGetPublicKey]
$cenumFrom :: ErrFriendGetPublicKey -> [ErrFriendGetPublicKey]
fromEnum :: ErrFriendGetPublicKey -> Int
$cfromEnum :: ErrFriendGetPublicKey -> Int
toEnum :: Int -> ErrFriendGetPublicKey
$ctoEnum :: Int -> ErrFriendGetPublicKey
pred :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey
$cpred :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey
succ :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey
$csucc :: ErrFriendGetPublicKey -> ErrFriendGetPublicKey
Enum, ErrFriendGetPublicKey
ErrFriendGetPublicKey
-> ErrFriendGetPublicKey -> Bounded ErrFriendGetPublicKey
forall a. a -> a -> Bounded a
maxBound :: ErrFriendGetPublicKey
$cmaxBound :: ErrFriendGetPublicKey
minBound :: ErrFriendGetPublicKey
$cminBound :: ErrFriendGetPublicKey
Bounded, ReadPrec [ErrFriendGetPublicKey]
ReadPrec ErrFriendGetPublicKey
Int -> ReadS ErrFriendGetPublicKey
ReadS [ErrFriendGetPublicKey]
(Int -> ReadS ErrFriendGetPublicKey)
-> ReadS [ErrFriendGetPublicKey]
-> ReadPrec ErrFriendGetPublicKey
-> ReadPrec [ErrFriendGetPublicKey]
-> Read ErrFriendGetPublicKey
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFriendGetPublicKey]
$creadListPrec :: ReadPrec [ErrFriendGetPublicKey]
readPrec :: ReadPrec ErrFriendGetPublicKey
$creadPrec :: ReadPrec ErrFriendGetPublicKey
readList :: ReadS [ErrFriendGetPublicKey]
$creadList :: ReadS [ErrFriendGetPublicKey]
readsPrec :: Int -> ReadS ErrFriendGetPublicKey
$creadsPrec :: Int -> ReadS ErrFriendGetPublicKey
Read, Int -> ErrFriendGetPublicKey -> ShowS
[ErrFriendGetPublicKey] -> ShowS
ErrFriendGetPublicKey -> String
(Int -> ErrFriendGetPublicKey -> ShowS)
-> (ErrFriendGetPublicKey -> String)
-> ([ErrFriendGetPublicKey] -> ShowS)
-> Show ErrFriendGetPublicKey
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFriendGetPublicKey] -> ShowS
$cshowList :: [ErrFriendGetPublicKey] -> ShowS
show :: ErrFriendGetPublicKey -> String
$cshow :: ErrFriendGetPublicKey -> String
showsPrec :: Int -> ErrFriendGetPublicKey -> ShowS
$cshowsPrec :: Int -> ErrFriendGetPublicKey -> ShowS
Show, (forall x. ErrFriendGetPublicKey -> Rep ErrFriendGetPublicKey x)
-> (forall x. Rep ErrFriendGetPublicKey x -> ErrFriendGetPublicKey)
-> Generic ErrFriendGetPublicKey
forall x. Rep ErrFriendGetPublicKey x -> ErrFriendGetPublicKey
forall x. ErrFriendGetPublicKey -> Rep ErrFriendGetPublicKey x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFriendGetPublicKey x -> ErrFriendGetPublicKey
$cfrom :: forall x. ErrFriendGetPublicKey -> Rep ErrFriendGetPublicKey x
Generic)
instance MessagePack ErrFriendGetPublicKey
instance Arbitrary ErrFriendGetPublicKey where arbitrary :: Gen ErrFriendGetPublicKey
arbitrary = Gen ErrFriendGetPublicKey
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_friend_get_public_key :: ToxPtr -> Word32 -> CString -> CErr ErrFriendGetPublicKey -> IO Bool
data ErrFriendGetLastOnline
= ErrFriendGetLastOnlineFriendNotFound
deriving (ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
(ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool)
-> (ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool)
-> Eq ErrFriendGetLastOnline
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
$c/= :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
== :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
$c== :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
Eq, Eq ErrFriendGetLastOnline
Eq ErrFriendGetLastOnline
-> (ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Ordering)
-> (ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool)
-> (ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool)
-> (ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool)
-> (ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool)
-> (ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> ErrFriendGetLastOnline)
-> (ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> ErrFriendGetLastOnline)
-> Ord ErrFriendGetLastOnline
ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Ordering
ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> ErrFriendGetLastOnline
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> ErrFriendGetLastOnline
$cmin :: ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> ErrFriendGetLastOnline
max :: ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> ErrFriendGetLastOnline
$cmax :: ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> ErrFriendGetLastOnline
>= :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
$c>= :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
> :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
$c> :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
<= :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
$c<= :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
< :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
$c< :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Bool
compare :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Ordering
$ccompare :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline -> Ordering
$cp1Ord :: Eq ErrFriendGetLastOnline
Ord, Int -> ErrFriendGetLastOnline
ErrFriendGetLastOnline -> Int
ErrFriendGetLastOnline -> [ErrFriendGetLastOnline]
ErrFriendGetLastOnline -> ErrFriendGetLastOnline
ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> [ErrFriendGetLastOnline]
ErrFriendGetLastOnline
-> ErrFriendGetLastOnline
-> ErrFriendGetLastOnline
-> [ErrFriendGetLastOnline]
(ErrFriendGetLastOnline -> ErrFriendGetLastOnline)
-> (ErrFriendGetLastOnline -> ErrFriendGetLastOnline)
-> (Int -> ErrFriendGetLastOnline)
-> (ErrFriendGetLastOnline -> Int)
-> (ErrFriendGetLastOnline -> [ErrFriendGetLastOnline])
-> (ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> [ErrFriendGetLastOnline])
-> (ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> [ErrFriendGetLastOnline])
-> (ErrFriendGetLastOnline
-> ErrFriendGetLastOnline
-> ErrFriendGetLastOnline
-> [ErrFriendGetLastOnline])
-> Enum ErrFriendGetLastOnline
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFriendGetLastOnline
-> ErrFriendGetLastOnline
-> ErrFriendGetLastOnline
-> [ErrFriendGetLastOnline]
$cenumFromThenTo :: ErrFriendGetLastOnline
-> ErrFriendGetLastOnline
-> ErrFriendGetLastOnline
-> [ErrFriendGetLastOnline]
enumFromTo :: ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> [ErrFriendGetLastOnline]
$cenumFromTo :: ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> [ErrFriendGetLastOnline]
enumFromThen :: ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> [ErrFriendGetLastOnline]
$cenumFromThen :: ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> [ErrFriendGetLastOnline]
enumFrom :: ErrFriendGetLastOnline -> [ErrFriendGetLastOnline]
$cenumFrom :: ErrFriendGetLastOnline -> [ErrFriendGetLastOnline]
fromEnum :: ErrFriendGetLastOnline -> Int
$cfromEnum :: ErrFriendGetLastOnline -> Int
toEnum :: Int -> ErrFriendGetLastOnline
$ctoEnum :: Int -> ErrFriendGetLastOnline
pred :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline
$cpred :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline
succ :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline
$csucc :: ErrFriendGetLastOnline -> ErrFriendGetLastOnline
Enum, ErrFriendGetLastOnline
ErrFriendGetLastOnline
-> ErrFriendGetLastOnline -> Bounded ErrFriendGetLastOnline
forall a. a -> a -> Bounded a
maxBound :: ErrFriendGetLastOnline
$cmaxBound :: ErrFriendGetLastOnline
minBound :: ErrFriendGetLastOnline
$cminBound :: ErrFriendGetLastOnline
Bounded, ReadPrec [ErrFriendGetLastOnline]
ReadPrec ErrFriendGetLastOnline
Int -> ReadS ErrFriendGetLastOnline
ReadS [ErrFriendGetLastOnline]
(Int -> ReadS ErrFriendGetLastOnline)
-> ReadS [ErrFriendGetLastOnline]
-> ReadPrec ErrFriendGetLastOnline
-> ReadPrec [ErrFriendGetLastOnline]
-> Read ErrFriendGetLastOnline
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFriendGetLastOnline]
$creadListPrec :: ReadPrec [ErrFriendGetLastOnline]
readPrec :: ReadPrec ErrFriendGetLastOnline
$creadPrec :: ReadPrec ErrFriendGetLastOnline
readList :: ReadS [ErrFriendGetLastOnline]
$creadList :: ReadS [ErrFriendGetLastOnline]
readsPrec :: Int -> ReadS ErrFriendGetLastOnline
$creadsPrec :: Int -> ReadS ErrFriendGetLastOnline
Read, Int -> ErrFriendGetLastOnline -> ShowS
[ErrFriendGetLastOnline] -> ShowS
ErrFriendGetLastOnline -> String
(Int -> ErrFriendGetLastOnline -> ShowS)
-> (ErrFriendGetLastOnline -> String)
-> ([ErrFriendGetLastOnline] -> ShowS)
-> Show ErrFriendGetLastOnline
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFriendGetLastOnline] -> ShowS
$cshowList :: [ErrFriendGetLastOnline] -> ShowS
show :: ErrFriendGetLastOnline -> String
$cshow :: ErrFriendGetLastOnline -> String
showsPrec :: Int -> ErrFriendGetLastOnline -> ShowS
$cshowsPrec :: Int -> ErrFriendGetLastOnline -> ShowS
Show, (forall x. ErrFriendGetLastOnline -> Rep ErrFriendGetLastOnline x)
-> (forall x.
Rep ErrFriendGetLastOnline x -> ErrFriendGetLastOnline)
-> Generic ErrFriendGetLastOnline
forall x. Rep ErrFriendGetLastOnline x -> ErrFriendGetLastOnline
forall x. ErrFriendGetLastOnline -> Rep ErrFriendGetLastOnline x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFriendGetLastOnline x -> ErrFriendGetLastOnline
$cfrom :: forall x. ErrFriendGetLastOnline -> Rep ErrFriendGetLastOnline x
Generic)
instance MessagePack ErrFriendGetLastOnline
instance Arbitrary ErrFriendGetLastOnline where arbitrary :: Gen ErrFriendGetLastOnline
arbitrary = Gen ErrFriendGetLastOnline
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_friend_get_last_online :: ToxPtr -> Word32 -> CErr ErrFriendGetLastOnline -> IO Word64
data ErrFriendQuery
= ErrFriendQueryNull
| ErrFriendQueryFriendNotFound
deriving (ErrFriendQuery -> ErrFriendQuery -> Bool
(ErrFriendQuery -> ErrFriendQuery -> Bool)
-> (ErrFriendQuery -> ErrFriendQuery -> Bool) -> Eq ErrFriendQuery
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFriendQuery -> ErrFriendQuery -> Bool
$c/= :: ErrFriendQuery -> ErrFriendQuery -> Bool
== :: ErrFriendQuery -> ErrFriendQuery -> Bool
$c== :: ErrFriendQuery -> ErrFriendQuery -> Bool
Eq, Eq ErrFriendQuery
Eq ErrFriendQuery
-> (ErrFriendQuery -> ErrFriendQuery -> Ordering)
-> (ErrFriendQuery -> ErrFriendQuery -> Bool)
-> (ErrFriendQuery -> ErrFriendQuery -> Bool)
-> (ErrFriendQuery -> ErrFriendQuery -> Bool)
-> (ErrFriendQuery -> ErrFriendQuery -> Bool)
-> (ErrFriendQuery -> ErrFriendQuery -> ErrFriendQuery)
-> (ErrFriendQuery -> ErrFriendQuery -> ErrFriendQuery)
-> Ord ErrFriendQuery
ErrFriendQuery -> ErrFriendQuery -> Bool
ErrFriendQuery -> ErrFriendQuery -> Ordering
ErrFriendQuery -> ErrFriendQuery -> ErrFriendQuery
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFriendQuery -> ErrFriendQuery -> ErrFriendQuery
$cmin :: ErrFriendQuery -> ErrFriendQuery -> ErrFriendQuery
max :: ErrFriendQuery -> ErrFriendQuery -> ErrFriendQuery
$cmax :: ErrFriendQuery -> ErrFriendQuery -> ErrFriendQuery
>= :: ErrFriendQuery -> ErrFriendQuery -> Bool
$c>= :: ErrFriendQuery -> ErrFriendQuery -> Bool
> :: ErrFriendQuery -> ErrFriendQuery -> Bool
$c> :: ErrFriendQuery -> ErrFriendQuery -> Bool
<= :: ErrFriendQuery -> ErrFriendQuery -> Bool
$c<= :: ErrFriendQuery -> ErrFriendQuery -> Bool
< :: ErrFriendQuery -> ErrFriendQuery -> Bool
$c< :: ErrFriendQuery -> ErrFriendQuery -> Bool
compare :: ErrFriendQuery -> ErrFriendQuery -> Ordering
$ccompare :: ErrFriendQuery -> ErrFriendQuery -> Ordering
$cp1Ord :: Eq ErrFriendQuery
Ord, Int -> ErrFriendQuery
ErrFriendQuery -> Int
ErrFriendQuery -> [ErrFriendQuery]
ErrFriendQuery -> ErrFriendQuery
ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery]
ErrFriendQuery
-> ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery]
(ErrFriendQuery -> ErrFriendQuery)
-> (ErrFriendQuery -> ErrFriendQuery)
-> (Int -> ErrFriendQuery)
-> (ErrFriendQuery -> Int)
-> (ErrFriendQuery -> [ErrFriendQuery])
-> (ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery])
-> (ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery])
-> (ErrFriendQuery
-> ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery])
-> Enum ErrFriendQuery
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFriendQuery
-> ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery]
$cenumFromThenTo :: ErrFriendQuery
-> ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery]
enumFromTo :: ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery]
$cenumFromTo :: ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery]
enumFromThen :: ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery]
$cenumFromThen :: ErrFriendQuery -> ErrFriendQuery -> [ErrFriendQuery]
enumFrom :: ErrFriendQuery -> [ErrFriendQuery]
$cenumFrom :: ErrFriendQuery -> [ErrFriendQuery]
fromEnum :: ErrFriendQuery -> Int
$cfromEnum :: ErrFriendQuery -> Int
toEnum :: Int -> ErrFriendQuery
$ctoEnum :: Int -> ErrFriendQuery
pred :: ErrFriendQuery -> ErrFriendQuery
$cpred :: ErrFriendQuery -> ErrFriendQuery
succ :: ErrFriendQuery -> ErrFriendQuery
$csucc :: ErrFriendQuery -> ErrFriendQuery
Enum, ErrFriendQuery
ErrFriendQuery -> ErrFriendQuery -> Bounded ErrFriendQuery
forall a. a -> a -> Bounded a
maxBound :: ErrFriendQuery
$cmaxBound :: ErrFriendQuery
minBound :: ErrFriendQuery
$cminBound :: ErrFriendQuery
Bounded, ReadPrec [ErrFriendQuery]
ReadPrec ErrFriendQuery
Int -> ReadS ErrFriendQuery
ReadS [ErrFriendQuery]
(Int -> ReadS ErrFriendQuery)
-> ReadS [ErrFriendQuery]
-> ReadPrec ErrFriendQuery
-> ReadPrec [ErrFriendQuery]
-> Read ErrFriendQuery
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFriendQuery]
$creadListPrec :: ReadPrec [ErrFriendQuery]
readPrec :: ReadPrec ErrFriendQuery
$creadPrec :: ReadPrec ErrFriendQuery
readList :: ReadS [ErrFriendQuery]
$creadList :: ReadS [ErrFriendQuery]
readsPrec :: Int -> ReadS ErrFriendQuery
$creadsPrec :: Int -> ReadS ErrFriendQuery
Read, Int -> ErrFriendQuery -> ShowS
[ErrFriendQuery] -> ShowS
ErrFriendQuery -> String
(Int -> ErrFriendQuery -> ShowS)
-> (ErrFriendQuery -> String)
-> ([ErrFriendQuery] -> ShowS)
-> Show ErrFriendQuery
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFriendQuery] -> ShowS
$cshowList :: [ErrFriendQuery] -> ShowS
show :: ErrFriendQuery -> String
$cshow :: ErrFriendQuery -> String
showsPrec :: Int -> ErrFriendQuery -> ShowS
$cshowsPrec :: Int -> ErrFriendQuery -> ShowS
Show, (forall x. ErrFriendQuery -> Rep ErrFriendQuery x)
-> (forall x. Rep ErrFriendQuery x -> ErrFriendQuery)
-> Generic ErrFriendQuery
forall x. Rep ErrFriendQuery x -> ErrFriendQuery
forall x. ErrFriendQuery -> Rep ErrFriendQuery x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFriendQuery x -> ErrFriendQuery
$cfrom :: forall x. ErrFriendQuery -> Rep ErrFriendQuery x
Generic)
instance MessagePack ErrFriendQuery
instance Arbitrary ErrFriendQuery where arbitrary :: Gen ErrFriendQuery
arbitrary = Gen ErrFriendQuery
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_friend_get_name_size :: ToxPtr -> Word32 -> CErr ErrFriendQuery -> IO CSize
foreign import ccall tox_friend_get_name :: ToxPtr -> Word32 -> CString -> CErr ErrFriendQuery -> IO Bool
type FriendNameCb = ToxPtr -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFriendNameCb :: FriendNameCb -> IO (FunPtr FriendNameCb)
foreign import ccall tox_callback_friend_name :: ToxPtr -> FunPtr FriendNameCb -> IO ()
foreign import ccall tox_friend_get_status_message_size :: ToxPtr -> Word32 -> CErr ErrFriendQuery -> IO CSize
foreign import ccall tox_friend_get_status_message :: ToxPtr -> Word32 -> CString -> CErr ErrFriendQuery -> IO Bool
type FriendStatusMessageCb = ToxPtr -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFriendStatusMessageCb :: FriendStatusMessageCb -> IO (FunPtr FriendStatusMessageCb)
foreign import ccall tox_callback_friend_status_message :: ToxPtr -> FunPtr FriendStatusMessageCb -> IO ()
foreign import ccall tox_friend_get_status :: ToxPtr -> Word32 -> CErr ErrFriendQuery -> IO (CEnum UserStatus)
type FriendStatusCb = ToxPtr -> Word32 -> CEnum UserStatus -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFriendStatusCb :: FriendStatusCb -> IO (FunPtr FriendStatusCb)
foreign import ccall tox_callback_friend_status :: ToxPtr -> FunPtr FriendStatusCb -> IO ()
foreign import ccall tox_friend_get_connection_status :: ToxPtr -> Word32 -> CErr ErrFriendQuery -> IO (CEnum Connection)
type FriendConnectionStatusCb = ToxPtr -> Word32 -> CEnum Connection -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFriendConnectionStatusCb :: FriendConnectionStatusCb -> IO (FunPtr FriendConnectionStatusCb)
foreign import ccall tox_callback_friend_connection_status :: ToxPtr -> FunPtr FriendConnectionStatusCb -> IO ()
foreign import ccall tox_friend_get_typing :: ToxPtr -> Word32 -> CErr ErrFriendQuery -> IO Bool
type FriendTypingCb = ToxPtr -> Word32 -> Bool -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFriendTypingCb :: FriendTypingCb -> IO (FunPtr FriendTypingCb)
foreign import ccall tox_callback_friend_typing :: ToxPtr -> FunPtr FriendTypingCb -> IO ()
data ErrSetTyping
= ErrSetTypingFriendNotFound
deriving (ErrSetTyping -> ErrSetTyping -> Bool
(ErrSetTyping -> ErrSetTyping -> Bool)
-> (ErrSetTyping -> ErrSetTyping -> Bool) -> Eq ErrSetTyping
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrSetTyping -> ErrSetTyping -> Bool
$c/= :: ErrSetTyping -> ErrSetTyping -> Bool
== :: ErrSetTyping -> ErrSetTyping -> Bool
$c== :: ErrSetTyping -> ErrSetTyping -> Bool
Eq, Eq ErrSetTyping
Eq ErrSetTyping
-> (ErrSetTyping -> ErrSetTyping -> Ordering)
-> (ErrSetTyping -> ErrSetTyping -> Bool)
-> (ErrSetTyping -> ErrSetTyping -> Bool)
-> (ErrSetTyping -> ErrSetTyping -> Bool)
-> (ErrSetTyping -> ErrSetTyping -> Bool)
-> (ErrSetTyping -> ErrSetTyping -> ErrSetTyping)
-> (ErrSetTyping -> ErrSetTyping -> ErrSetTyping)
-> Ord ErrSetTyping
ErrSetTyping -> ErrSetTyping -> Bool
ErrSetTyping -> ErrSetTyping -> Ordering
ErrSetTyping -> ErrSetTyping -> ErrSetTyping
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrSetTyping -> ErrSetTyping -> ErrSetTyping
$cmin :: ErrSetTyping -> ErrSetTyping -> ErrSetTyping
max :: ErrSetTyping -> ErrSetTyping -> ErrSetTyping
$cmax :: ErrSetTyping -> ErrSetTyping -> ErrSetTyping
>= :: ErrSetTyping -> ErrSetTyping -> Bool
$c>= :: ErrSetTyping -> ErrSetTyping -> Bool
> :: ErrSetTyping -> ErrSetTyping -> Bool
$c> :: ErrSetTyping -> ErrSetTyping -> Bool
<= :: ErrSetTyping -> ErrSetTyping -> Bool
$c<= :: ErrSetTyping -> ErrSetTyping -> Bool
< :: ErrSetTyping -> ErrSetTyping -> Bool
$c< :: ErrSetTyping -> ErrSetTyping -> Bool
compare :: ErrSetTyping -> ErrSetTyping -> Ordering
$ccompare :: ErrSetTyping -> ErrSetTyping -> Ordering
$cp1Ord :: Eq ErrSetTyping
Ord, Int -> ErrSetTyping
ErrSetTyping -> Int
ErrSetTyping -> [ErrSetTyping]
ErrSetTyping -> ErrSetTyping
ErrSetTyping -> ErrSetTyping -> [ErrSetTyping]
ErrSetTyping -> ErrSetTyping -> ErrSetTyping -> [ErrSetTyping]
(ErrSetTyping -> ErrSetTyping)
-> (ErrSetTyping -> ErrSetTyping)
-> (Int -> ErrSetTyping)
-> (ErrSetTyping -> Int)
-> (ErrSetTyping -> [ErrSetTyping])
-> (ErrSetTyping -> ErrSetTyping -> [ErrSetTyping])
-> (ErrSetTyping -> ErrSetTyping -> [ErrSetTyping])
-> (ErrSetTyping -> ErrSetTyping -> ErrSetTyping -> [ErrSetTyping])
-> Enum ErrSetTyping
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrSetTyping -> ErrSetTyping -> ErrSetTyping -> [ErrSetTyping]
$cenumFromThenTo :: ErrSetTyping -> ErrSetTyping -> ErrSetTyping -> [ErrSetTyping]
enumFromTo :: ErrSetTyping -> ErrSetTyping -> [ErrSetTyping]
$cenumFromTo :: ErrSetTyping -> ErrSetTyping -> [ErrSetTyping]
enumFromThen :: ErrSetTyping -> ErrSetTyping -> [ErrSetTyping]
$cenumFromThen :: ErrSetTyping -> ErrSetTyping -> [ErrSetTyping]
enumFrom :: ErrSetTyping -> [ErrSetTyping]
$cenumFrom :: ErrSetTyping -> [ErrSetTyping]
fromEnum :: ErrSetTyping -> Int
$cfromEnum :: ErrSetTyping -> Int
toEnum :: Int -> ErrSetTyping
$ctoEnum :: Int -> ErrSetTyping
pred :: ErrSetTyping -> ErrSetTyping
$cpred :: ErrSetTyping -> ErrSetTyping
succ :: ErrSetTyping -> ErrSetTyping
$csucc :: ErrSetTyping -> ErrSetTyping
Enum, ErrSetTyping
ErrSetTyping -> ErrSetTyping -> Bounded ErrSetTyping
forall a. a -> a -> Bounded a
maxBound :: ErrSetTyping
$cmaxBound :: ErrSetTyping
minBound :: ErrSetTyping
$cminBound :: ErrSetTyping
Bounded, ReadPrec [ErrSetTyping]
ReadPrec ErrSetTyping
Int -> ReadS ErrSetTyping
ReadS [ErrSetTyping]
(Int -> ReadS ErrSetTyping)
-> ReadS [ErrSetTyping]
-> ReadPrec ErrSetTyping
-> ReadPrec [ErrSetTyping]
-> Read ErrSetTyping
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrSetTyping]
$creadListPrec :: ReadPrec [ErrSetTyping]
readPrec :: ReadPrec ErrSetTyping
$creadPrec :: ReadPrec ErrSetTyping
readList :: ReadS [ErrSetTyping]
$creadList :: ReadS [ErrSetTyping]
readsPrec :: Int -> ReadS ErrSetTyping
$creadsPrec :: Int -> ReadS ErrSetTyping
Read, Int -> ErrSetTyping -> ShowS
[ErrSetTyping] -> ShowS
ErrSetTyping -> String
(Int -> ErrSetTyping -> ShowS)
-> (ErrSetTyping -> String)
-> ([ErrSetTyping] -> ShowS)
-> Show ErrSetTyping
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrSetTyping] -> ShowS
$cshowList :: [ErrSetTyping] -> ShowS
show :: ErrSetTyping -> String
$cshow :: ErrSetTyping -> String
showsPrec :: Int -> ErrSetTyping -> ShowS
$cshowsPrec :: Int -> ErrSetTyping -> ShowS
Show, (forall x. ErrSetTyping -> Rep ErrSetTyping x)
-> (forall x. Rep ErrSetTyping x -> ErrSetTyping)
-> Generic ErrSetTyping
forall x. Rep ErrSetTyping x -> ErrSetTyping
forall x. ErrSetTyping -> Rep ErrSetTyping x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrSetTyping x -> ErrSetTyping
$cfrom :: forall x. ErrSetTyping -> Rep ErrSetTyping x
Generic)
instance MessagePack ErrSetTyping
instance Arbitrary ErrSetTyping where arbitrary :: Gen ErrSetTyping
arbitrary = Gen ErrSetTyping
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_self_set_typing :: ToxPtr -> Word32 -> Bool -> CErr ErrSetTyping -> IO Bool
data ErrFriendSendMessage
= ErrFriendSendMessageNull
| ErrFriendSendMessageFriendNotFound
| ErrFriendSendMessageFriendNotConnected
| ErrFriendSendMessageSendq
| ErrFriendSendMessageTooLong
| ErrFriendSendMessageEmpty
deriving (ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
(ErrFriendSendMessage -> ErrFriendSendMessage -> Bool)
-> (ErrFriendSendMessage -> ErrFriendSendMessage -> Bool)
-> Eq ErrFriendSendMessage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
$c/= :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
== :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
$c== :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
Eq, Eq ErrFriendSendMessage
Eq ErrFriendSendMessage
-> (ErrFriendSendMessage -> ErrFriendSendMessage -> Ordering)
-> (ErrFriendSendMessage -> ErrFriendSendMessage -> Bool)
-> (ErrFriendSendMessage -> ErrFriendSendMessage -> Bool)
-> (ErrFriendSendMessage -> ErrFriendSendMessage -> Bool)
-> (ErrFriendSendMessage -> ErrFriendSendMessage -> Bool)
-> (ErrFriendSendMessage
-> ErrFriendSendMessage -> ErrFriendSendMessage)
-> (ErrFriendSendMessage
-> ErrFriendSendMessage -> ErrFriendSendMessage)
-> Ord ErrFriendSendMessage
ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
ErrFriendSendMessage -> ErrFriendSendMessage -> Ordering
ErrFriendSendMessage
-> ErrFriendSendMessage -> ErrFriendSendMessage
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFriendSendMessage
-> ErrFriendSendMessage -> ErrFriendSendMessage
$cmin :: ErrFriendSendMessage
-> ErrFriendSendMessage -> ErrFriendSendMessage
max :: ErrFriendSendMessage
-> ErrFriendSendMessage -> ErrFriendSendMessage
$cmax :: ErrFriendSendMessage
-> ErrFriendSendMessage -> ErrFriendSendMessage
>= :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
$c>= :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
> :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
$c> :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
<= :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
$c<= :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
< :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
$c< :: ErrFriendSendMessage -> ErrFriendSendMessage -> Bool
compare :: ErrFriendSendMessage -> ErrFriendSendMessage -> Ordering
$ccompare :: ErrFriendSendMessage -> ErrFriendSendMessage -> Ordering
$cp1Ord :: Eq ErrFriendSendMessage
Ord, Int -> ErrFriendSendMessage
ErrFriendSendMessage -> Int
ErrFriendSendMessage -> [ErrFriendSendMessage]
ErrFriendSendMessage -> ErrFriendSendMessage
ErrFriendSendMessage
-> ErrFriendSendMessage -> [ErrFriendSendMessage]
ErrFriendSendMessage
-> ErrFriendSendMessage
-> ErrFriendSendMessage
-> [ErrFriendSendMessage]
(ErrFriendSendMessage -> ErrFriendSendMessage)
-> (ErrFriendSendMessage -> ErrFriendSendMessage)
-> (Int -> ErrFriendSendMessage)
-> (ErrFriendSendMessage -> Int)
-> (ErrFriendSendMessage -> [ErrFriendSendMessage])
-> (ErrFriendSendMessage
-> ErrFriendSendMessage -> [ErrFriendSendMessage])
-> (ErrFriendSendMessage
-> ErrFriendSendMessage -> [ErrFriendSendMessage])
-> (ErrFriendSendMessage
-> ErrFriendSendMessage
-> ErrFriendSendMessage
-> [ErrFriendSendMessage])
-> Enum ErrFriendSendMessage
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFriendSendMessage
-> ErrFriendSendMessage
-> ErrFriendSendMessage
-> [ErrFriendSendMessage]
$cenumFromThenTo :: ErrFriendSendMessage
-> ErrFriendSendMessage
-> ErrFriendSendMessage
-> [ErrFriendSendMessage]
enumFromTo :: ErrFriendSendMessage
-> ErrFriendSendMessage -> [ErrFriendSendMessage]
$cenumFromTo :: ErrFriendSendMessage
-> ErrFriendSendMessage -> [ErrFriendSendMessage]
enumFromThen :: ErrFriendSendMessage
-> ErrFriendSendMessage -> [ErrFriendSendMessage]
$cenumFromThen :: ErrFriendSendMessage
-> ErrFriendSendMessage -> [ErrFriendSendMessage]
enumFrom :: ErrFriendSendMessage -> [ErrFriendSendMessage]
$cenumFrom :: ErrFriendSendMessage -> [ErrFriendSendMessage]
fromEnum :: ErrFriendSendMessage -> Int
$cfromEnum :: ErrFriendSendMessage -> Int
toEnum :: Int -> ErrFriendSendMessage
$ctoEnum :: Int -> ErrFriendSendMessage
pred :: ErrFriendSendMessage -> ErrFriendSendMessage
$cpred :: ErrFriendSendMessage -> ErrFriendSendMessage
succ :: ErrFriendSendMessage -> ErrFriendSendMessage
$csucc :: ErrFriendSendMessage -> ErrFriendSendMessage
Enum, ErrFriendSendMessage
ErrFriendSendMessage
-> ErrFriendSendMessage -> Bounded ErrFriendSendMessage
forall a. a -> a -> Bounded a
maxBound :: ErrFriendSendMessage
$cmaxBound :: ErrFriendSendMessage
minBound :: ErrFriendSendMessage
$cminBound :: ErrFriendSendMessage
Bounded, ReadPrec [ErrFriendSendMessage]
ReadPrec ErrFriendSendMessage
Int -> ReadS ErrFriendSendMessage
ReadS [ErrFriendSendMessage]
(Int -> ReadS ErrFriendSendMessage)
-> ReadS [ErrFriendSendMessage]
-> ReadPrec ErrFriendSendMessage
-> ReadPrec [ErrFriendSendMessage]
-> Read ErrFriendSendMessage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFriendSendMessage]
$creadListPrec :: ReadPrec [ErrFriendSendMessage]
readPrec :: ReadPrec ErrFriendSendMessage
$creadPrec :: ReadPrec ErrFriendSendMessage
readList :: ReadS [ErrFriendSendMessage]
$creadList :: ReadS [ErrFriendSendMessage]
readsPrec :: Int -> ReadS ErrFriendSendMessage
$creadsPrec :: Int -> ReadS ErrFriendSendMessage
Read, Int -> ErrFriendSendMessage -> ShowS
[ErrFriendSendMessage] -> ShowS
ErrFriendSendMessage -> String
(Int -> ErrFriendSendMessage -> ShowS)
-> (ErrFriendSendMessage -> String)
-> ([ErrFriendSendMessage] -> ShowS)
-> Show ErrFriendSendMessage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFriendSendMessage] -> ShowS
$cshowList :: [ErrFriendSendMessage] -> ShowS
show :: ErrFriendSendMessage -> String
$cshow :: ErrFriendSendMessage -> String
showsPrec :: Int -> ErrFriendSendMessage -> ShowS
$cshowsPrec :: Int -> ErrFriendSendMessage -> ShowS
Show, (forall x. ErrFriendSendMessage -> Rep ErrFriendSendMessage x)
-> (forall x. Rep ErrFriendSendMessage x -> ErrFriendSendMessage)
-> Generic ErrFriendSendMessage
forall x. Rep ErrFriendSendMessage x -> ErrFriendSendMessage
forall x. ErrFriendSendMessage -> Rep ErrFriendSendMessage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFriendSendMessage x -> ErrFriendSendMessage
$cfrom :: forall x. ErrFriendSendMessage -> Rep ErrFriendSendMessage x
Generic)
instance MessagePack ErrFriendSendMessage
instance Arbitrary ErrFriendSendMessage where arbitrary :: Gen ErrFriendSendMessage
arbitrary = Gen ErrFriendSendMessage
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_friend_send_message :: ToxPtr -> Word32 -> CEnum MessageType -> CString -> CSize -> CErr ErrFriendSendMessage -> IO Word32
type FriendReadReceiptCb = ToxPtr -> Word32 -> Word32 -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFriendReadReceiptCb :: FriendReadReceiptCb -> IO (FunPtr FriendReadReceiptCb)
foreign import ccall tox_callback_friend_read_receipt :: ToxPtr -> FunPtr FriendReadReceiptCb -> IO ()
type FriendRequestCb = ToxPtr -> CString -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFriendRequestCb :: FriendRequestCb -> IO (FunPtr FriendRequestCb)
foreign import ccall tox_callback_friend_request :: ToxPtr -> FunPtr FriendRequestCb -> IO ()
type FriendMessageCb = ToxPtr -> Word32 -> CEnum MessageType -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFriendMessageCb :: FriendMessageCb -> IO (FunPtr FriendMessageCb)
foreign import ccall tox_callback_friend_message :: ToxPtr -> FunPtr FriendMessageCb -> IO ()
foreign import ccall tox_hash :: CString -> CString -> CSize -> IO Bool
data FileKind
= FileKindData
| FileKindAvatar
deriving (FileKind -> FileKind -> Bool
(FileKind -> FileKind -> Bool)
-> (FileKind -> FileKind -> Bool) -> Eq FileKind
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FileKind -> FileKind -> Bool
$c/= :: FileKind -> FileKind -> Bool
== :: FileKind -> FileKind -> Bool
$c== :: FileKind -> FileKind -> Bool
Eq, Eq FileKind
Eq FileKind
-> (FileKind -> FileKind -> Ordering)
-> (FileKind -> FileKind -> Bool)
-> (FileKind -> FileKind -> Bool)
-> (FileKind -> FileKind -> Bool)
-> (FileKind -> FileKind -> Bool)
-> (FileKind -> FileKind -> FileKind)
-> (FileKind -> FileKind -> FileKind)
-> Ord FileKind
FileKind -> FileKind -> Bool
FileKind -> FileKind -> Ordering
FileKind -> FileKind -> FileKind
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: FileKind -> FileKind -> FileKind
$cmin :: FileKind -> FileKind -> FileKind
max :: FileKind -> FileKind -> FileKind
$cmax :: FileKind -> FileKind -> FileKind
>= :: FileKind -> FileKind -> Bool
$c>= :: FileKind -> FileKind -> Bool
> :: FileKind -> FileKind -> Bool
$c> :: FileKind -> FileKind -> Bool
<= :: FileKind -> FileKind -> Bool
$c<= :: FileKind -> FileKind -> Bool
< :: FileKind -> FileKind -> Bool
$c< :: FileKind -> FileKind -> Bool
compare :: FileKind -> FileKind -> Ordering
$ccompare :: FileKind -> FileKind -> Ordering
$cp1Ord :: Eq FileKind
Ord, Int -> FileKind
FileKind -> Int
FileKind -> [FileKind]
FileKind -> FileKind
FileKind -> FileKind -> [FileKind]
FileKind -> FileKind -> FileKind -> [FileKind]
(FileKind -> FileKind)
-> (FileKind -> FileKind)
-> (Int -> FileKind)
-> (FileKind -> Int)
-> (FileKind -> [FileKind])
-> (FileKind -> FileKind -> [FileKind])
-> (FileKind -> FileKind -> [FileKind])
-> (FileKind -> FileKind -> FileKind -> [FileKind])
-> Enum FileKind
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: FileKind -> FileKind -> FileKind -> [FileKind]
$cenumFromThenTo :: FileKind -> FileKind -> FileKind -> [FileKind]
enumFromTo :: FileKind -> FileKind -> [FileKind]
$cenumFromTo :: FileKind -> FileKind -> [FileKind]
enumFromThen :: FileKind -> FileKind -> [FileKind]
$cenumFromThen :: FileKind -> FileKind -> [FileKind]
enumFrom :: FileKind -> [FileKind]
$cenumFrom :: FileKind -> [FileKind]
fromEnum :: FileKind -> Int
$cfromEnum :: FileKind -> Int
toEnum :: Int -> FileKind
$ctoEnum :: Int -> FileKind
pred :: FileKind -> FileKind
$cpred :: FileKind -> FileKind
succ :: FileKind -> FileKind
$csucc :: FileKind -> FileKind
Enum, FileKind
FileKind -> FileKind -> Bounded FileKind
forall a. a -> a -> Bounded a
maxBound :: FileKind
$cmaxBound :: FileKind
minBound :: FileKind
$cminBound :: FileKind
Bounded, ReadPrec [FileKind]
ReadPrec FileKind
Int -> ReadS FileKind
ReadS [FileKind]
(Int -> ReadS FileKind)
-> ReadS [FileKind]
-> ReadPrec FileKind
-> ReadPrec [FileKind]
-> Read FileKind
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FileKind]
$creadListPrec :: ReadPrec [FileKind]
readPrec :: ReadPrec FileKind
$creadPrec :: ReadPrec FileKind
readList :: ReadS [FileKind]
$creadList :: ReadS [FileKind]
readsPrec :: Int -> ReadS FileKind
$creadsPrec :: Int -> ReadS FileKind
Read, Int -> FileKind -> ShowS
[FileKind] -> ShowS
FileKind -> String
(Int -> FileKind -> ShowS)
-> (FileKind -> String) -> ([FileKind] -> ShowS) -> Show FileKind
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FileKind] -> ShowS
$cshowList :: [FileKind] -> ShowS
show :: FileKind -> String
$cshow :: FileKind -> String
showsPrec :: Int -> FileKind -> ShowS
$cshowsPrec :: Int -> FileKind -> ShowS
Show, (forall x. FileKind -> Rep FileKind x)
-> (forall x. Rep FileKind x -> FileKind) -> Generic FileKind
forall x. Rep FileKind x -> FileKind
forall x. FileKind -> Rep FileKind x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FileKind x -> FileKind
$cfrom :: forall x. FileKind -> Rep FileKind x
Generic)
instance MessagePack FileKind
instance Arbitrary FileKind where arbitrary :: Gen FileKind
arbitrary = Gen FileKind
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data FileControl
= FileControlResume
| FileControlPause
| FileControlCancel
deriving (FileControl -> FileControl -> Bool
(FileControl -> FileControl -> Bool)
-> (FileControl -> FileControl -> Bool) -> Eq FileControl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FileControl -> FileControl -> Bool
$c/= :: FileControl -> FileControl -> Bool
== :: FileControl -> FileControl -> Bool
$c== :: FileControl -> FileControl -> Bool
Eq, Eq FileControl
Eq FileControl
-> (FileControl -> FileControl -> Ordering)
-> (FileControl -> FileControl -> Bool)
-> (FileControl -> FileControl -> Bool)
-> (FileControl -> FileControl -> Bool)
-> (FileControl -> FileControl -> Bool)
-> (FileControl -> FileControl -> FileControl)
-> (FileControl -> FileControl -> FileControl)
-> Ord FileControl
FileControl -> FileControl -> Bool
FileControl -> FileControl -> Ordering
FileControl -> FileControl -> FileControl
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: FileControl -> FileControl -> FileControl
$cmin :: FileControl -> FileControl -> FileControl
max :: FileControl -> FileControl -> FileControl
$cmax :: FileControl -> FileControl -> FileControl
>= :: FileControl -> FileControl -> Bool
$c>= :: FileControl -> FileControl -> Bool
> :: FileControl -> FileControl -> Bool
$c> :: FileControl -> FileControl -> Bool
<= :: FileControl -> FileControl -> Bool
$c<= :: FileControl -> FileControl -> Bool
< :: FileControl -> FileControl -> Bool
$c< :: FileControl -> FileControl -> Bool
compare :: FileControl -> FileControl -> Ordering
$ccompare :: FileControl -> FileControl -> Ordering
$cp1Ord :: Eq FileControl
Ord, Int -> FileControl
FileControl -> Int
FileControl -> [FileControl]
FileControl -> FileControl
FileControl -> FileControl -> [FileControl]
FileControl -> FileControl -> FileControl -> [FileControl]
(FileControl -> FileControl)
-> (FileControl -> FileControl)
-> (Int -> FileControl)
-> (FileControl -> Int)
-> (FileControl -> [FileControl])
-> (FileControl -> FileControl -> [FileControl])
-> (FileControl -> FileControl -> [FileControl])
-> (FileControl -> FileControl -> FileControl -> [FileControl])
-> Enum FileControl
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: FileControl -> FileControl -> FileControl -> [FileControl]
$cenumFromThenTo :: FileControl -> FileControl -> FileControl -> [FileControl]
enumFromTo :: FileControl -> FileControl -> [FileControl]
$cenumFromTo :: FileControl -> FileControl -> [FileControl]
enumFromThen :: FileControl -> FileControl -> [FileControl]
$cenumFromThen :: FileControl -> FileControl -> [FileControl]
enumFrom :: FileControl -> [FileControl]
$cenumFrom :: FileControl -> [FileControl]
fromEnum :: FileControl -> Int
$cfromEnum :: FileControl -> Int
toEnum :: Int -> FileControl
$ctoEnum :: Int -> FileControl
pred :: FileControl -> FileControl
$cpred :: FileControl -> FileControl
succ :: FileControl -> FileControl
$csucc :: FileControl -> FileControl
Enum, FileControl
FileControl -> FileControl -> Bounded FileControl
forall a. a -> a -> Bounded a
maxBound :: FileControl
$cmaxBound :: FileControl
minBound :: FileControl
$cminBound :: FileControl
Bounded, ReadPrec [FileControl]
ReadPrec FileControl
Int -> ReadS FileControl
ReadS [FileControl]
(Int -> ReadS FileControl)
-> ReadS [FileControl]
-> ReadPrec FileControl
-> ReadPrec [FileControl]
-> Read FileControl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FileControl]
$creadListPrec :: ReadPrec [FileControl]
readPrec :: ReadPrec FileControl
$creadPrec :: ReadPrec FileControl
readList :: ReadS [FileControl]
$creadList :: ReadS [FileControl]
readsPrec :: Int -> ReadS FileControl
$creadsPrec :: Int -> ReadS FileControl
Read, Int -> FileControl -> ShowS
[FileControl] -> ShowS
FileControl -> String
(Int -> FileControl -> ShowS)
-> (FileControl -> String)
-> ([FileControl] -> ShowS)
-> Show FileControl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FileControl] -> ShowS
$cshowList :: [FileControl] -> ShowS
show :: FileControl -> String
$cshow :: FileControl -> String
showsPrec :: Int -> FileControl -> ShowS
$cshowsPrec :: Int -> FileControl -> ShowS
Show, (forall x. FileControl -> Rep FileControl x)
-> (forall x. Rep FileControl x -> FileControl)
-> Generic FileControl
forall x. Rep FileControl x -> FileControl
forall x. FileControl -> Rep FileControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FileControl x -> FileControl
$cfrom :: forall x. FileControl -> Rep FileControl x
Generic)
instance MessagePack FileControl
instance Arbitrary FileControl where arbitrary :: Gen FileControl
arbitrary = Gen FileControl
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data ErrFileControl
= ErrFileControlFriendNotFound
| ErrFileControlFriendNotConnected
| ErrFileControlNotFound
| ErrFileControlNotPaused
| ErrFileControlDenied
| ErrFileControlAlreadyPaused
| ErrFileControlSendq
deriving (ErrFileControl -> ErrFileControl -> Bool
(ErrFileControl -> ErrFileControl -> Bool)
-> (ErrFileControl -> ErrFileControl -> Bool) -> Eq ErrFileControl
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFileControl -> ErrFileControl -> Bool
$c/= :: ErrFileControl -> ErrFileControl -> Bool
== :: ErrFileControl -> ErrFileControl -> Bool
$c== :: ErrFileControl -> ErrFileControl -> Bool
Eq, Eq ErrFileControl
Eq ErrFileControl
-> (ErrFileControl -> ErrFileControl -> Ordering)
-> (ErrFileControl -> ErrFileControl -> Bool)
-> (ErrFileControl -> ErrFileControl -> Bool)
-> (ErrFileControl -> ErrFileControl -> Bool)
-> (ErrFileControl -> ErrFileControl -> Bool)
-> (ErrFileControl -> ErrFileControl -> ErrFileControl)
-> (ErrFileControl -> ErrFileControl -> ErrFileControl)
-> Ord ErrFileControl
ErrFileControl -> ErrFileControl -> Bool
ErrFileControl -> ErrFileControl -> Ordering
ErrFileControl -> ErrFileControl -> ErrFileControl
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFileControl -> ErrFileControl -> ErrFileControl
$cmin :: ErrFileControl -> ErrFileControl -> ErrFileControl
max :: ErrFileControl -> ErrFileControl -> ErrFileControl
$cmax :: ErrFileControl -> ErrFileControl -> ErrFileControl
>= :: ErrFileControl -> ErrFileControl -> Bool
$c>= :: ErrFileControl -> ErrFileControl -> Bool
> :: ErrFileControl -> ErrFileControl -> Bool
$c> :: ErrFileControl -> ErrFileControl -> Bool
<= :: ErrFileControl -> ErrFileControl -> Bool
$c<= :: ErrFileControl -> ErrFileControl -> Bool
< :: ErrFileControl -> ErrFileControl -> Bool
$c< :: ErrFileControl -> ErrFileControl -> Bool
compare :: ErrFileControl -> ErrFileControl -> Ordering
$ccompare :: ErrFileControl -> ErrFileControl -> Ordering
$cp1Ord :: Eq ErrFileControl
Ord, Int -> ErrFileControl
ErrFileControl -> Int
ErrFileControl -> [ErrFileControl]
ErrFileControl -> ErrFileControl
ErrFileControl -> ErrFileControl -> [ErrFileControl]
ErrFileControl
-> ErrFileControl -> ErrFileControl -> [ErrFileControl]
(ErrFileControl -> ErrFileControl)
-> (ErrFileControl -> ErrFileControl)
-> (Int -> ErrFileControl)
-> (ErrFileControl -> Int)
-> (ErrFileControl -> [ErrFileControl])
-> (ErrFileControl -> ErrFileControl -> [ErrFileControl])
-> (ErrFileControl -> ErrFileControl -> [ErrFileControl])
-> (ErrFileControl
-> ErrFileControl -> ErrFileControl -> [ErrFileControl])
-> Enum ErrFileControl
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFileControl
-> ErrFileControl -> ErrFileControl -> [ErrFileControl]
$cenumFromThenTo :: ErrFileControl
-> ErrFileControl -> ErrFileControl -> [ErrFileControl]
enumFromTo :: ErrFileControl -> ErrFileControl -> [ErrFileControl]
$cenumFromTo :: ErrFileControl -> ErrFileControl -> [ErrFileControl]
enumFromThen :: ErrFileControl -> ErrFileControl -> [ErrFileControl]
$cenumFromThen :: ErrFileControl -> ErrFileControl -> [ErrFileControl]
enumFrom :: ErrFileControl -> [ErrFileControl]
$cenumFrom :: ErrFileControl -> [ErrFileControl]
fromEnum :: ErrFileControl -> Int
$cfromEnum :: ErrFileControl -> Int
toEnum :: Int -> ErrFileControl
$ctoEnum :: Int -> ErrFileControl
pred :: ErrFileControl -> ErrFileControl
$cpred :: ErrFileControl -> ErrFileControl
succ :: ErrFileControl -> ErrFileControl
$csucc :: ErrFileControl -> ErrFileControl
Enum, ErrFileControl
ErrFileControl -> ErrFileControl -> Bounded ErrFileControl
forall a. a -> a -> Bounded a
maxBound :: ErrFileControl
$cmaxBound :: ErrFileControl
minBound :: ErrFileControl
$cminBound :: ErrFileControl
Bounded, ReadPrec [ErrFileControl]
ReadPrec ErrFileControl
Int -> ReadS ErrFileControl
ReadS [ErrFileControl]
(Int -> ReadS ErrFileControl)
-> ReadS [ErrFileControl]
-> ReadPrec ErrFileControl
-> ReadPrec [ErrFileControl]
-> Read ErrFileControl
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFileControl]
$creadListPrec :: ReadPrec [ErrFileControl]
readPrec :: ReadPrec ErrFileControl
$creadPrec :: ReadPrec ErrFileControl
readList :: ReadS [ErrFileControl]
$creadList :: ReadS [ErrFileControl]
readsPrec :: Int -> ReadS ErrFileControl
$creadsPrec :: Int -> ReadS ErrFileControl
Read, Int -> ErrFileControl -> ShowS
[ErrFileControl] -> ShowS
ErrFileControl -> String
(Int -> ErrFileControl -> ShowS)
-> (ErrFileControl -> String)
-> ([ErrFileControl] -> ShowS)
-> Show ErrFileControl
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFileControl] -> ShowS
$cshowList :: [ErrFileControl] -> ShowS
show :: ErrFileControl -> String
$cshow :: ErrFileControl -> String
showsPrec :: Int -> ErrFileControl -> ShowS
$cshowsPrec :: Int -> ErrFileControl -> ShowS
Show, (forall x. ErrFileControl -> Rep ErrFileControl x)
-> (forall x. Rep ErrFileControl x -> ErrFileControl)
-> Generic ErrFileControl
forall x. Rep ErrFileControl x -> ErrFileControl
forall x. ErrFileControl -> Rep ErrFileControl x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFileControl x -> ErrFileControl
$cfrom :: forall x. ErrFileControl -> Rep ErrFileControl x
Generic)
instance MessagePack ErrFileControl
instance Arbitrary ErrFileControl where arbitrary :: Gen ErrFileControl
arbitrary = Gen ErrFileControl
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_file_control :: ToxPtr -> Word32 -> Word32 -> CEnum FileControl -> CErr ErrFileControl -> IO Bool
type FileRecvControlCb = ToxPtr -> Word32 -> Word32 -> CEnum FileControl -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFileRecvControlCb :: FileRecvControlCb -> IO (FunPtr FileRecvControlCb)
foreign import ccall tox_callback_file_recv_control :: ToxPtr -> FunPtr FileRecvControlCb -> IO ()
data ErrFileSeek
= ErrFileSeekFriendNotFound
| ErrFileSeekFriendNotConnected
| ErrFileSeekNotFound
| ErrFileSeekDenied
| ErrFileSeekInvalidPosition
| ErrFileSeekSendq
deriving (ErrFileSeek -> ErrFileSeek -> Bool
(ErrFileSeek -> ErrFileSeek -> Bool)
-> (ErrFileSeek -> ErrFileSeek -> Bool) -> Eq ErrFileSeek
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFileSeek -> ErrFileSeek -> Bool
$c/= :: ErrFileSeek -> ErrFileSeek -> Bool
== :: ErrFileSeek -> ErrFileSeek -> Bool
$c== :: ErrFileSeek -> ErrFileSeek -> Bool
Eq, Eq ErrFileSeek
Eq ErrFileSeek
-> (ErrFileSeek -> ErrFileSeek -> Ordering)
-> (ErrFileSeek -> ErrFileSeek -> Bool)
-> (ErrFileSeek -> ErrFileSeek -> Bool)
-> (ErrFileSeek -> ErrFileSeek -> Bool)
-> (ErrFileSeek -> ErrFileSeek -> Bool)
-> (ErrFileSeek -> ErrFileSeek -> ErrFileSeek)
-> (ErrFileSeek -> ErrFileSeek -> ErrFileSeek)
-> Ord ErrFileSeek
ErrFileSeek -> ErrFileSeek -> Bool
ErrFileSeek -> ErrFileSeek -> Ordering
ErrFileSeek -> ErrFileSeek -> ErrFileSeek
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFileSeek -> ErrFileSeek -> ErrFileSeek
$cmin :: ErrFileSeek -> ErrFileSeek -> ErrFileSeek
max :: ErrFileSeek -> ErrFileSeek -> ErrFileSeek
$cmax :: ErrFileSeek -> ErrFileSeek -> ErrFileSeek
>= :: ErrFileSeek -> ErrFileSeek -> Bool
$c>= :: ErrFileSeek -> ErrFileSeek -> Bool
> :: ErrFileSeek -> ErrFileSeek -> Bool
$c> :: ErrFileSeek -> ErrFileSeek -> Bool
<= :: ErrFileSeek -> ErrFileSeek -> Bool
$c<= :: ErrFileSeek -> ErrFileSeek -> Bool
< :: ErrFileSeek -> ErrFileSeek -> Bool
$c< :: ErrFileSeek -> ErrFileSeek -> Bool
compare :: ErrFileSeek -> ErrFileSeek -> Ordering
$ccompare :: ErrFileSeek -> ErrFileSeek -> Ordering
$cp1Ord :: Eq ErrFileSeek
Ord, Int -> ErrFileSeek
ErrFileSeek -> Int
ErrFileSeek -> [ErrFileSeek]
ErrFileSeek -> ErrFileSeek
ErrFileSeek -> ErrFileSeek -> [ErrFileSeek]
ErrFileSeek -> ErrFileSeek -> ErrFileSeek -> [ErrFileSeek]
(ErrFileSeek -> ErrFileSeek)
-> (ErrFileSeek -> ErrFileSeek)
-> (Int -> ErrFileSeek)
-> (ErrFileSeek -> Int)
-> (ErrFileSeek -> [ErrFileSeek])
-> (ErrFileSeek -> ErrFileSeek -> [ErrFileSeek])
-> (ErrFileSeek -> ErrFileSeek -> [ErrFileSeek])
-> (ErrFileSeek -> ErrFileSeek -> ErrFileSeek -> [ErrFileSeek])
-> Enum ErrFileSeek
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFileSeek -> ErrFileSeek -> ErrFileSeek -> [ErrFileSeek]
$cenumFromThenTo :: ErrFileSeek -> ErrFileSeek -> ErrFileSeek -> [ErrFileSeek]
enumFromTo :: ErrFileSeek -> ErrFileSeek -> [ErrFileSeek]
$cenumFromTo :: ErrFileSeek -> ErrFileSeek -> [ErrFileSeek]
enumFromThen :: ErrFileSeek -> ErrFileSeek -> [ErrFileSeek]
$cenumFromThen :: ErrFileSeek -> ErrFileSeek -> [ErrFileSeek]
enumFrom :: ErrFileSeek -> [ErrFileSeek]
$cenumFrom :: ErrFileSeek -> [ErrFileSeek]
fromEnum :: ErrFileSeek -> Int
$cfromEnum :: ErrFileSeek -> Int
toEnum :: Int -> ErrFileSeek
$ctoEnum :: Int -> ErrFileSeek
pred :: ErrFileSeek -> ErrFileSeek
$cpred :: ErrFileSeek -> ErrFileSeek
succ :: ErrFileSeek -> ErrFileSeek
$csucc :: ErrFileSeek -> ErrFileSeek
Enum, ErrFileSeek
ErrFileSeek -> ErrFileSeek -> Bounded ErrFileSeek
forall a. a -> a -> Bounded a
maxBound :: ErrFileSeek
$cmaxBound :: ErrFileSeek
minBound :: ErrFileSeek
$cminBound :: ErrFileSeek
Bounded, ReadPrec [ErrFileSeek]
ReadPrec ErrFileSeek
Int -> ReadS ErrFileSeek
ReadS [ErrFileSeek]
(Int -> ReadS ErrFileSeek)
-> ReadS [ErrFileSeek]
-> ReadPrec ErrFileSeek
-> ReadPrec [ErrFileSeek]
-> Read ErrFileSeek
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFileSeek]
$creadListPrec :: ReadPrec [ErrFileSeek]
readPrec :: ReadPrec ErrFileSeek
$creadPrec :: ReadPrec ErrFileSeek
readList :: ReadS [ErrFileSeek]
$creadList :: ReadS [ErrFileSeek]
readsPrec :: Int -> ReadS ErrFileSeek
$creadsPrec :: Int -> ReadS ErrFileSeek
Read, Int -> ErrFileSeek -> ShowS
[ErrFileSeek] -> ShowS
ErrFileSeek -> String
(Int -> ErrFileSeek -> ShowS)
-> (ErrFileSeek -> String)
-> ([ErrFileSeek] -> ShowS)
-> Show ErrFileSeek
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFileSeek] -> ShowS
$cshowList :: [ErrFileSeek] -> ShowS
show :: ErrFileSeek -> String
$cshow :: ErrFileSeek -> String
showsPrec :: Int -> ErrFileSeek -> ShowS
$cshowsPrec :: Int -> ErrFileSeek -> ShowS
Show, (forall x. ErrFileSeek -> Rep ErrFileSeek x)
-> (forall x. Rep ErrFileSeek x -> ErrFileSeek)
-> Generic ErrFileSeek
forall x. Rep ErrFileSeek x -> ErrFileSeek
forall x. ErrFileSeek -> Rep ErrFileSeek x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFileSeek x -> ErrFileSeek
$cfrom :: forall x. ErrFileSeek -> Rep ErrFileSeek x
Generic)
instance MessagePack ErrFileSeek
instance Arbitrary ErrFileSeek where arbitrary :: Gen ErrFileSeek
arbitrary = Gen ErrFileSeek
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_file_seek :: ToxPtr -> Word32 -> Word32 -> Word64 -> CErr ErrFileSeek -> IO Bool
data ErrFileGet
= ErrFileGetNull
| ErrFileGetFriendNotFound
| ErrFileGetNotFound
deriving (ErrFileGet -> ErrFileGet -> Bool
(ErrFileGet -> ErrFileGet -> Bool)
-> (ErrFileGet -> ErrFileGet -> Bool) -> Eq ErrFileGet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFileGet -> ErrFileGet -> Bool
$c/= :: ErrFileGet -> ErrFileGet -> Bool
== :: ErrFileGet -> ErrFileGet -> Bool
$c== :: ErrFileGet -> ErrFileGet -> Bool
Eq, Eq ErrFileGet
Eq ErrFileGet
-> (ErrFileGet -> ErrFileGet -> Ordering)
-> (ErrFileGet -> ErrFileGet -> Bool)
-> (ErrFileGet -> ErrFileGet -> Bool)
-> (ErrFileGet -> ErrFileGet -> Bool)
-> (ErrFileGet -> ErrFileGet -> Bool)
-> (ErrFileGet -> ErrFileGet -> ErrFileGet)
-> (ErrFileGet -> ErrFileGet -> ErrFileGet)
-> Ord ErrFileGet
ErrFileGet -> ErrFileGet -> Bool
ErrFileGet -> ErrFileGet -> Ordering
ErrFileGet -> ErrFileGet -> ErrFileGet
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFileGet -> ErrFileGet -> ErrFileGet
$cmin :: ErrFileGet -> ErrFileGet -> ErrFileGet
max :: ErrFileGet -> ErrFileGet -> ErrFileGet
$cmax :: ErrFileGet -> ErrFileGet -> ErrFileGet
>= :: ErrFileGet -> ErrFileGet -> Bool
$c>= :: ErrFileGet -> ErrFileGet -> Bool
> :: ErrFileGet -> ErrFileGet -> Bool
$c> :: ErrFileGet -> ErrFileGet -> Bool
<= :: ErrFileGet -> ErrFileGet -> Bool
$c<= :: ErrFileGet -> ErrFileGet -> Bool
< :: ErrFileGet -> ErrFileGet -> Bool
$c< :: ErrFileGet -> ErrFileGet -> Bool
compare :: ErrFileGet -> ErrFileGet -> Ordering
$ccompare :: ErrFileGet -> ErrFileGet -> Ordering
$cp1Ord :: Eq ErrFileGet
Ord, Int -> ErrFileGet
ErrFileGet -> Int
ErrFileGet -> [ErrFileGet]
ErrFileGet -> ErrFileGet
ErrFileGet -> ErrFileGet -> [ErrFileGet]
ErrFileGet -> ErrFileGet -> ErrFileGet -> [ErrFileGet]
(ErrFileGet -> ErrFileGet)
-> (ErrFileGet -> ErrFileGet)
-> (Int -> ErrFileGet)
-> (ErrFileGet -> Int)
-> (ErrFileGet -> [ErrFileGet])
-> (ErrFileGet -> ErrFileGet -> [ErrFileGet])
-> (ErrFileGet -> ErrFileGet -> [ErrFileGet])
-> (ErrFileGet -> ErrFileGet -> ErrFileGet -> [ErrFileGet])
-> Enum ErrFileGet
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFileGet -> ErrFileGet -> ErrFileGet -> [ErrFileGet]
$cenumFromThenTo :: ErrFileGet -> ErrFileGet -> ErrFileGet -> [ErrFileGet]
enumFromTo :: ErrFileGet -> ErrFileGet -> [ErrFileGet]
$cenumFromTo :: ErrFileGet -> ErrFileGet -> [ErrFileGet]
enumFromThen :: ErrFileGet -> ErrFileGet -> [ErrFileGet]
$cenumFromThen :: ErrFileGet -> ErrFileGet -> [ErrFileGet]
enumFrom :: ErrFileGet -> [ErrFileGet]
$cenumFrom :: ErrFileGet -> [ErrFileGet]
fromEnum :: ErrFileGet -> Int
$cfromEnum :: ErrFileGet -> Int
toEnum :: Int -> ErrFileGet
$ctoEnum :: Int -> ErrFileGet
pred :: ErrFileGet -> ErrFileGet
$cpred :: ErrFileGet -> ErrFileGet
succ :: ErrFileGet -> ErrFileGet
$csucc :: ErrFileGet -> ErrFileGet
Enum, ErrFileGet
ErrFileGet -> ErrFileGet -> Bounded ErrFileGet
forall a. a -> a -> Bounded a
maxBound :: ErrFileGet
$cmaxBound :: ErrFileGet
minBound :: ErrFileGet
$cminBound :: ErrFileGet
Bounded, ReadPrec [ErrFileGet]
ReadPrec ErrFileGet
Int -> ReadS ErrFileGet
ReadS [ErrFileGet]
(Int -> ReadS ErrFileGet)
-> ReadS [ErrFileGet]
-> ReadPrec ErrFileGet
-> ReadPrec [ErrFileGet]
-> Read ErrFileGet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFileGet]
$creadListPrec :: ReadPrec [ErrFileGet]
readPrec :: ReadPrec ErrFileGet
$creadPrec :: ReadPrec ErrFileGet
readList :: ReadS [ErrFileGet]
$creadList :: ReadS [ErrFileGet]
readsPrec :: Int -> ReadS ErrFileGet
$creadsPrec :: Int -> ReadS ErrFileGet
Read, Int -> ErrFileGet -> ShowS
[ErrFileGet] -> ShowS
ErrFileGet -> String
(Int -> ErrFileGet -> ShowS)
-> (ErrFileGet -> String)
-> ([ErrFileGet] -> ShowS)
-> Show ErrFileGet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFileGet] -> ShowS
$cshowList :: [ErrFileGet] -> ShowS
show :: ErrFileGet -> String
$cshow :: ErrFileGet -> String
showsPrec :: Int -> ErrFileGet -> ShowS
$cshowsPrec :: Int -> ErrFileGet -> ShowS
Show, (forall x. ErrFileGet -> Rep ErrFileGet x)
-> (forall x. Rep ErrFileGet x -> ErrFileGet) -> Generic ErrFileGet
forall x. Rep ErrFileGet x -> ErrFileGet
forall x. ErrFileGet -> Rep ErrFileGet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFileGet x -> ErrFileGet
$cfrom :: forall x. ErrFileGet -> Rep ErrFileGet x
Generic)
instance MessagePack ErrFileGet
instance Arbitrary ErrFileGet where arbitrary :: Gen ErrFileGet
arbitrary = Gen ErrFileGet
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_file_get_file_id :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrFileGet -> IO Bool
data ErrFileSend
= ErrFileSendNull
| ErrFileSendFriendNotFound
| ErrFileSendFriendNotConnected
| ErrFileSendNameTooLong
| ErrFileSendTooMany
deriving (ErrFileSend -> ErrFileSend -> Bool
(ErrFileSend -> ErrFileSend -> Bool)
-> (ErrFileSend -> ErrFileSend -> Bool) -> Eq ErrFileSend
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFileSend -> ErrFileSend -> Bool
$c/= :: ErrFileSend -> ErrFileSend -> Bool
== :: ErrFileSend -> ErrFileSend -> Bool
$c== :: ErrFileSend -> ErrFileSend -> Bool
Eq, Eq ErrFileSend
Eq ErrFileSend
-> (ErrFileSend -> ErrFileSend -> Ordering)
-> (ErrFileSend -> ErrFileSend -> Bool)
-> (ErrFileSend -> ErrFileSend -> Bool)
-> (ErrFileSend -> ErrFileSend -> Bool)
-> (ErrFileSend -> ErrFileSend -> Bool)
-> (ErrFileSend -> ErrFileSend -> ErrFileSend)
-> (ErrFileSend -> ErrFileSend -> ErrFileSend)
-> Ord ErrFileSend
ErrFileSend -> ErrFileSend -> Bool
ErrFileSend -> ErrFileSend -> Ordering
ErrFileSend -> ErrFileSend -> ErrFileSend
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFileSend -> ErrFileSend -> ErrFileSend
$cmin :: ErrFileSend -> ErrFileSend -> ErrFileSend
max :: ErrFileSend -> ErrFileSend -> ErrFileSend
$cmax :: ErrFileSend -> ErrFileSend -> ErrFileSend
>= :: ErrFileSend -> ErrFileSend -> Bool
$c>= :: ErrFileSend -> ErrFileSend -> Bool
> :: ErrFileSend -> ErrFileSend -> Bool
$c> :: ErrFileSend -> ErrFileSend -> Bool
<= :: ErrFileSend -> ErrFileSend -> Bool
$c<= :: ErrFileSend -> ErrFileSend -> Bool
< :: ErrFileSend -> ErrFileSend -> Bool
$c< :: ErrFileSend -> ErrFileSend -> Bool
compare :: ErrFileSend -> ErrFileSend -> Ordering
$ccompare :: ErrFileSend -> ErrFileSend -> Ordering
$cp1Ord :: Eq ErrFileSend
Ord, Int -> ErrFileSend
ErrFileSend -> Int
ErrFileSend -> [ErrFileSend]
ErrFileSend -> ErrFileSend
ErrFileSend -> ErrFileSend -> [ErrFileSend]
ErrFileSend -> ErrFileSend -> ErrFileSend -> [ErrFileSend]
(ErrFileSend -> ErrFileSend)
-> (ErrFileSend -> ErrFileSend)
-> (Int -> ErrFileSend)
-> (ErrFileSend -> Int)
-> (ErrFileSend -> [ErrFileSend])
-> (ErrFileSend -> ErrFileSend -> [ErrFileSend])
-> (ErrFileSend -> ErrFileSend -> [ErrFileSend])
-> (ErrFileSend -> ErrFileSend -> ErrFileSend -> [ErrFileSend])
-> Enum ErrFileSend
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFileSend -> ErrFileSend -> ErrFileSend -> [ErrFileSend]
$cenumFromThenTo :: ErrFileSend -> ErrFileSend -> ErrFileSend -> [ErrFileSend]
enumFromTo :: ErrFileSend -> ErrFileSend -> [ErrFileSend]
$cenumFromTo :: ErrFileSend -> ErrFileSend -> [ErrFileSend]
enumFromThen :: ErrFileSend -> ErrFileSend -> [ErrFileSend]
$cenumFromThen :: ErrFileSend -> ErrFileSend -> [ErrFileSend]
enumFrom :: ErrFileSend -> [ErrFileSend]
$cenumFrom :: ErrFileSend -> [ErrFileSend]
fromEnum :: ErrFileSend -> Int
$cfromEnum :: ErrFileSend -> Int
toEnum :: Int -> ErrFileSend
$ctoEnum :: Int -> ErrFileSend
pred :: ErrFileSend -> ErrFileSend
$cpred :: ErrFileSend -> ErrFileSend
succ :: ErrFileSend -> ErrFileSend
$csucc :: ErrFileSend -> ErrFileSend
Enum, ErrFileSend
ErrFileSend -> ErrFileSend -> Bounded ErrFileSend
forall a. a -> a -> Bounded a
maxBound :: ErrFileSend
$cmaxBound :: ErrFileSend
minBound :: ErrFileSend
$cminBound :: ErrFileSend
Bounded, ReadPrec [ErrFileSend]
ReadPrec ErrFileSend
Int -> ReadS ErrFileSend
ReadS [ErrFileSend]
(Int -> ReadS ErrFileSend)
-> ReadS [ErrFileSend]
-> ReadPrec ErrFileSend
-> ReadPrec [ErrFileSend]
-> Read ErrFileSend
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFileSend]
$creadListPrec :: ReadPrec [ErrFileSend]
readPrec :: ReadPrec ErrFileSend
$creadPrec :: ReadPrec ErrFileSend
readList :: ReadS [ErrFileSend]
$creadList :: ReadS [ErrFileSend]
readsPrec :: Int -> ReadS ErrFileSend
$creadsPrec :: Int -> ReadS ErrFileSend
Read, Int -> ErrFileSend -> ShowS
[ErrFileSend] -> ShowS
ErrFileSend -> String
(Int -> ErrFileSend -> ShowS)
-> (ErrFileSend -> String)
-> ([ErrFileSend] -> ShowS)
-> Show ErrFileSend
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFileSend] -> ShowS
$cshowList :: [ErrFileSend] -> ShowS
show :: ErrFileSend -> String
$cshow :: ErrFileSend -> String
showsPrec :: Int -> ErrFileSend -> ShowS
$cshowsPrec :: Int -> ErrFileSend -> ShowS
Show, (forall x. ErrFileSend -> Rep ErrFileSend x)
-> (forall x. Rep ErrFileSend x -> ErrFileSend)
-> Generic ErrFileSend
forall x. Rep ErrFileSend x -> ErrFileSend
forall x. ErrFileSend -> Rep ErrFileSend x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFileSend x -> ErrFileSend
$cfrom :: forall x. ErrFileSend -> Rep ErrFileSend x
Generic)
instance MessagePack ErrFileSend
instance Arbitrary ErrFileSend where arbitrary :: Gen ErrFileSend
arbitrary = Gen ErrFileSend
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_file_send :: ToxPtr -> Word32 -> Word32 -> Word64 -> CString -> CString -> CSize -> CErr ErrFileSend -> IO Word32
data ErrFileSendChunk
= ErrFileSendChunkNull
| ErrFileSendChunkFriendNotFound
| ErrFileSendChunkFriendNotConnected
| ErrFileSendChunkNotFound
| ErrFileSendChunkNotTransferring
| ErrFileSendChunkInvalidLength
| ErrFileSendChunkSendq
| ErrFileSendChunkWrongPosition
deriving (ErrFileSendChunk -> ErrFileSendChunk -> Bool
(ErrFileSendChunk -> ErrFileSendChunk -> Bool)
-> (ErrFileSendChunk -> ErrFileSendChunk -> Bool)
-> Eq ErrFileSendChunk
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
$c/= :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
== :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
$c== :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
Eq, Eq ErrFileSendChunk
Eq ErrFileSendChunk
-> (ErrFileSendChunk -> ErrFileSendChunk -> Ordering)
-> (ErrFileSendChunk -> ErrFileSendChunk -> Bool)
-> (ErrFileSendChunk -> ErrFileSendChunk -> Bool)
-> (ErrFileSendChunk -> ErrFileSendChunk -> Bool)
-> (ErrFileSendChunk -> ErrFileSendChunk -> Bool)
-> (ErrFileSendChunk -> ErrFileSendChunk -> ErrFileSendChunk)
-> (ErrFileSendChunk -> ErrFileSendChunk -> ErrFileSendChunk)
-> Ord ErrFileSendChunk
ErrFileSendChunk -> ErrFileSendChunk -> Bool
ErrFileSendChunk -> ErrFileSendChunk -> Ordering
ErrFileSendChunk -> ErrFileSendChunk -> ErrFileSendChunk
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFileSendChunk -> ErrFileSendChunk -> ErrFileSendChunk
$cmin :: ErrFileSendChunk -> ErrFileSendChunk -> ErrFileSendChunk
max :: ErrFileSendChunk -> ErrFileSendChunk -> ErrFileSendChunk
$cmax :: ErrFileSendChunk -> ErrFileSendChunk -> ErrFileSendChunk
>= :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
$c>= :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
> :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
$c> :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
<= :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
$c<= :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
< :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
$c< :: ErrFileSendChunk -> ErrFileSendChunk -> Bool
compare :: ErrFileSendChunk -> ErrFileSendChunk -> Ordering
$ccompare :: ErrFileSendChunk -> ErrFileSendChunk -> Ordering
$cp1Ord :: Eq ErrFileSendChunk
Ord, Int -> ErrFileSendChunk
ErrFileSendChunk -> Int
ErrFileSendChunk -> [ErrFileSendChunk]
ErrFileSendChunk -> ErrFileSendChunk
ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk]
ErrFileSendChunk
-> ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk]
(ErrFileSendChunk -> ErrFileSendChunk)
-> (ErrFileSendChunk -> ErrFileSendChunk)
-> (Int -> ErrFileSendChunk)
-> (ErrFileSendChunk -> Int)
-> (ErrFileSendChunk -> [ErrFileSendChunk])
-> (ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk])
-> (ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk])
-> (ErrFileSendChunk
-> ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk])
-> Enum ErrFileSendChunk
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFileSendChunk
-> ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk]
$cenumFromThenTo :: ErrFileSendChunk
-> ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk]
enumFromTo :: ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk]
$cenumFromTo :: ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk]
enumFromThen :: ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk]
$cenumFromThen :: ErrFileSendChunk -> ErrFileSendChunk -> [ErrFileSendChunk]
enumFrom :: ErrFileSendChunk -> [ErrFileSendChunk]
$cenumFrom :: ErrFileSendChunk -> [ErrFileSendChunk]
fromEnum :: ErrFileSendChunk -> Int
$cfromEnum :: ErrFileSendChunk -> Int
toEnum :: Int -> ErrFileSendChunk
$ctoEnum :: Int -> ErrFileSendChunk
pred :: ErrFileSendChunk -> ErrFileSendChunk
$cpred :: ErrFileSendChunk -> ErrFileSendChunk
succ :: ErrFileSendChunk -> ErrFileSendChunk
$csucc :: ErrFileSendChunk -> ErrFileSendChunk
Enum, ErrFileSendChunk
ErrFileSendChunk -> ErrFileSendChunk -> Bounded ErrFileSendChunk
forall a. a -> a -> Bounded a
maxBound :: ErrFileSendChunk
$cmaxBound :: ErrFileSendChunk
minBound :: ErrFileSendChunk
$cminBound :: ErrFileSendChunk
Bounded, ReadPrec [ErrFileSendChunk]
ReadPrec ErrFileSendChunk
Int -> ReadS ErrFileSendChunk
ReadS [ErrFileSendChunk]
(Int -> ReadS ErrFileSendChunk)
-> ReadS [ErrFileSendChunk]
-> ReadPrec ErrFileSendChunk
-> ReadPrec [ErrFileSendChunk]
-> Read ErrFileSendChunk
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFileSendChunk]
$creadListPrec :: ReadPrec [ErrFileSendChunk]
readPrec :: ReadPrec ErrFileSendChunk
$creadPrec :: ReadPrec ErrFileSendChunk
readList :: ReadS [ErrFileSendChunk]
$creadList :: ReadS [ErrFileSendChunk]
readsPrec :: Int -> ReadS ErrFileSendChunk
$creadsPrec :: Int -> ReadS ErrFileSendChunk
Read, Int -> ErrFileSendChunk -> ShowS
[ErrFileSendChunk] -> ShowS
ErrFileSendChunk -> String
(Int -> ErrFileSendChunk -> ShowS)
-> (ErrFileSendChunk -> String)
-> ([ErrFileSendChunk] -> ShowS)
-> Show ErrFileSendChunk
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFileSendChunk] -> ShowS
$cshowList :: [ErrFileSendChunk] -> ShowS
show :: ErrFileSendChunk -> String
$cshow :: ErrFileSendChunk -> String
showsPrec :: Int -> ErrFileSendChunk -> ShowS
$cshowsPrec :: Int -> ErrFileSendChunk -> ShowS
Show, (forall x. ErrFileSendChunk -> Rep ErrFileSendChunk x)
-> (forall x. Rep ErrFileSendChunk x -> ErrFileSendChunk)
-> Generic ErrFileSendChunk
forall x. Rep ErrFileSendChunk x -> ErrFileSendChunk
forall x. ErrFileSendChunk -> Rep ErrFileSendChunk x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFileSendChunk x -> ErrFileSendChunk
$cfrom :: forall x. ErrFileSendChunk -> Rep ErrFileSendChunk x
Generic)
instance MessagePack ErrFileSendChunk
instance Arbitrary ErrFileSendChunk where arbitrary :: Gen ErrFileSendChunk
arbitrary = Gen ErrFileSendChunk
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_file_send_chunk :: ToxPtr -> Word32 -> Word32 -> Word64 -> CString -> CSize -> CErr ErrFileSendChunk -> IO Bool
type FileChunkRequestCb = ToxPtr -> Word32 -> Word32 -> Word64 -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFileChunkRequestCb :: FileChunkRequestCb -> IO (FunPtr FileChunkRequestCb)
foreign import ccall tox_callback_file_chunk_request :: ToxPtr -> FunPtr FileChunkRequestCb -> IO ()
type FileRecvCb = ToxPtr -> Word32 -> Word32 -> Word32 -> Word64 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFileRecvCb :: FileRecvCb -> IO (FunPtr FileRecvCb)
foreign import ccall tox_callback_file_recv :: ToxPtr -> FunPtr FileRecvCb -> IO ()
type FileRecvChunkCb = ToxPtr -> Word32 -> Word32 -> Word64 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFileRecvChunkCb :: FileRecvChunkCb -> IO (FunPtr FileRecvChunkCb)
foreign import ccall tox_callback_file_recv_chunk :: ToxPtr -> FunPtr FileRecvChunkCb -> IO ()
data ConferenceType
= ConferenceTypeText
| ConferenceTypeAv
deriving (ConferenceType -> ConferenceType -> Bool
(ConferenceType -> ConferenceType -> Bool)
-> (ConferenceType -> ConferenceType -> Bool) -> Eq ConferenceType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ConferenceType -> ConferenceType -> Bool
$c/= :: ConferenceType -> ConferenceType -> Bool
== :: ConferenceType -> ConferenceType -> Bool
$c== :: ConferenceType -> ConferenceType -> Bool
Eq, Eq ConferenceType
Eq ConferenceType
-> (ConferenceType -> ConferenceType -> Ordering)
-> (ConferenceType -> ConferenceType -> Bool)
-> (ConferenceType -> ConferenceType -> Bool)
-> (ConferenceType -> ConferenceType -> Bool)
-> (ConferenceType -> ConferenceType -> Bool)
-> (ConferenceType -> ConferenceType -> ConferenceType)
-> (ConferenceType -> ConferenceType -> ConferenceType)
-> Ord ConferenceType
ConferenceType -> ConferenceType -> Bool
ConferenceType -> ConferenceType -> Ordering
ConferenceType -> ConferenceType -> ConferenceType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ConferenceType -> ConferenceType -> ConferenceType
$cmin :: ConferenceType -> ConferenceType -> ConferenceType
max :: ConferenceType -> ConferenceType -> ConferenceType
$cmax :: ConferenceType -> ConferenceType -> ConferenceType
>= :: ConferenceType -> ConferenceType -> Bool
$c>= :: ConferenceType -> ConferenceType -> Bool
> :: ConferenceType -> ConferenceType -> Bool
$c> :: ConferenceType -> ConferenceType -> Bool
<= :: ConferenceType -> ConferenceType -> Bool
$c<= :: ConferenceType -> ConferenceType -> Bool
< :: ConferenceType -> ConferenceType -> Bool
$c< :: ConferenceType -> ConferenceType -> Bool
compare :: ConferenceType -> ConferenceType -> Ordering
$ccompare :: ConferenceType -> ConferenceType -> Ordering
$cp1Ord :: Eq ConferenceType
Ord, Int -> ConferenceType
ConferenceType -> Int
ConferenceType -> [ConferenceType]
ConferenceType -> ConferenceType
ConferenceType -> ConferenceType -> [ConferenceType]
ConferenceType
-> ConferenceType -> ConferenceType -> [ConferenceType]
(ConferenceType -> ConferenceType)
-> (ConferenceType -> ConferenceType)
-> (Int -> ConferenceType)
-> (ConferenceType -> Int)
-> (ConferenceType -> [ConferenceType])
-> (ConferenceType -> ConferenceType -> [ConferenceType])
-> (ConferenceType -> ConferenceType -> [ConferenceType])
-> (ConferenceType
-> ConferenceType -> ConferenceType -> [ConferenceType])
-> Enum ConferenceType
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ConferenceType
-> ConferenceType -> ConferenceType -> [ConferenceType]
$cenumFromThenTo :: ConferenceType
-> ConferenceType -> ConferenceType -> [ConferenceType]
enumFromTo :: ConferenceType -> ConferenceType -> [ConferenceType]
$cenumFromTo :: ConferenceType -> ConferenceType -> [ConferenceType]
enumFromThen :: ConferenceType -> ConferenceType -> [ConferenceType]
$cenumFromThen :: ConferenceType -> ConferenceType -> [ConferenceType]
enumFrom :: ConferenceType -> [ConferenceType]
$cenumFrom :: ConferenceType -> [ConferenceType]
fromEnum :: ConferenceType -> Int
$cfromEnum :: ConferenceType -> Int
toEnum :: Int -> ConferenceType
$ctoEnum :: Int -> ConferenceType
pred :: ConferenceType -> ConferenceType
$cpred :: ConferenceType -> ConferenceType
succ :: ConferenceType -> ConferenceType
$csucc :: ConferenceType -> ConferenceType
Enum, ConferenceType
ConferenceType -> ConferenceType -> Bounded ConferenceType
forall a. a -> a -> Bounded a
maxBound :: ConferenceType
$cmaxBound :: ConferenceType
minBound :: ConferenceType
$cminBound :: ConferenceType
Bounded, ReadPrec [ConferenceType]
ReadPrec ConferenceType
Int -> ReadS ConferenceType
ReadS [ConferenceType]
(Int -> ReadS ConferenceType)
-> ReadS [ConferenceType]
-> ReadPrec ConferenceType
-> ReadPrec [ConferenceType]
-> Read ConferenceType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ConferenceType]
$creadListPrec :: ReadPrec [ConferenceType]
readPrec :: ReadPrec ConferenceType
$creadPrec :: ReadPrec ConferenceType
readList :: ReadS [ConferenceType]
$creadList :: ReadS [ConferenceType]
readsPrec :: Int -> ReadS ConferenceType
$creadsPrec :: Int -> ReadS ConferenceType
Read, Int -> ConferenceType -> ShowS
[ConferenceType] -> ShowS
ConferenceType -> String
(Int -> ConferenceType -> ShowS)
-> (ConferenceType -> String)
-> ([ConferenceType] -> ShowS)
-> Show ConferenceType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ConferenceType] -> ShowS
$cshowList :: [ConferenceType] -> ShowS
show :: ConferenceType -> String
$cshow :: ConferenceType -> String
showsPrec :: Int -> ConferenceType -> ShowS
$cshowsPrec :: Int -> ConferenceType -> ShowS
Show, (forall x. ConferenceType -> Rep ConferenceType x)
-> (forall x. Rep ConferenceType x -> ConferenceType)
-> Generic ConferenceType
forall x. Rep ConferenceType x -> ConferenceType
forall x. ConferenceType -> Rep ConferenceType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ConferenceType x -> ConferenceType
$cfrom :: forall x. ConferenceType -> Rep ConferenceType x
Generic)
instance MessagePack ConferenceType
instance Arbitrary ConferenceType where arbitrary :: Gen ConferenceType
arbitrary = Gen ConferenceType
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
type ConferenceInviteCb = ToxPtr -> Word32 -> CEnum ConferenceType -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapConferenceInviteCb :: ConferenceInviteCb -> IO (FunPtr ConferenceInviteCb)
foreign import ccall tox_callback_conference_invite :: ToxPtr -> FunPtr ConferenceInviteCb -> IO ()
type ConferenceConnectedCb = ToxPtr -> Word32 -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapConferenceConnectedCb :: ConferenceConnectedCb -> IO (FunPtr ConferenceConnectedCb)
foreign import ccall tox_callback_conference_connected :: ToxPtr -> FunPtr ConferenceConnectedCb -> IO ()
type ConferenceMessageCb = ToxPtr -> Word32 -> Word32 -> CEnum MessageType -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapConferenceMessageCb :: ConferenceMessageCb -> IO (FunPtr ConferenceMessageCb)
foreign import ccall tox_callback_conference_message :: ToxPtr -> FunPtr ConferenceMessageCb -> IO ()
type ConferenceTitleCb = ToxPtr -> Word32 -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapConferenceTitleCb :: ConferenceTitleCb -> IO (FunPtr ConferenceTitleCb)
foreign import ccall tox_callback_conference_title :: ToxPtr -> FunPtr ConferenceTitleCb -> IO ()
type ConferencePeerNameCb = ToxPtr -> Word32 -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapConferencePeerNameCb :: ConferencePeerNameCb -> IO (FunPtr ConferencePeerNameCb)
foreign import ccall tox_callback_conference_peer_name :: ToxPtr -> FunPtr ConferencePeerNameCb -> IO ()
type ConferencePeerListChangedCb = ToxPtr -> Word32 -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapConferencePeerListChangedCb :: ConferencePeerListChangedCb -> IO (FunPtr ConferencePeerListChangedCb)
foreign import ccall tox_callback_conference_peer_list_changed :: ToxPtr -> FunPtr ConferencePeerListChangedCb -> IO ()
data ErrConferenceNew
= ErrConferenceNewInit
deriving (ErrConferenceNew -> ErrConferenceNew -> Bool
(ErrConferenceNew -> ErrConferenceNew -> Bool)
-> (ErrConferenceNew -> ErrConferenceNew -> Bool)
-> Eq ErrConferenceNew
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferenceNew -> ErrConferenceNew -> Bool
$c/= :: ErrConferenceNew -> ErrConferenceNew -> Bool
== :: ErrConferenceNew -> ErrConferenceNew -> Bool
$c== :: ErrConferenceNew -> ErrConferenceNew -> Bool
Eq, Eq ErrConferenceNew
Eq ErrConferenceNew
-> (ErrConferenceNew -> ErrConferenceNew -> Ordering)
-> (ErrConferenceNew -> ErrConferenceNew -> Bool)
-> (ErrConferenceNew -> ErrConferenceNew -> Bool)
-> (ErrConferenceNew -> ErrConferenceNew -> Bool)
-> (ErrConferenceNew -> ErrConferenceNew -> Bool)
-> (ErrConferenceNew -> ErrConferenceNew -> ErrConferenceNew)
-> (ErrConferenceNew -> ErrConferenceNew -> ErrConferenceNew)
-> Ord ErrConferenceNew
ErrConferenceNew -> ErrConferenceNew -> Bool
ErrConferenceNew -> ErrConferenceNew -> Ordering
ErrConferenceNew -> ErrConferenceNew -> ErrConferenceNew
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferenceNew -> ErrConferenceNew -> ErrConferenceNew
$cmin :: ErrConferenceNew -> ErrConferenceNew -> ErrConferenceNew
max :: ErrConferenceNew -> ErrConferenceNew -> ErrConferenceNew
$cmax :: ErrConferenceNew -> ErrConferenceNew -> ErrConferenceNew
>= :: ErrConferenceNew -> ErrConferenceNew -> Bool
$c>= :: ErrConferenceNew -> ErrConferenceNew -> Bool
> :: ErrConferenceNew -> ErrConferenceNew -> Bool
$c> :: ErrConferenceNew -> ErrConferenceNew -> Bool
<= :: ErrConferenceNew -> ErrConferenceNew -> Bool
$c<= :: ErrConferenceNew -> ErrConferenceNew -> Bool
< :: ErrConferenceNew -> ErrConferenceNew -> Bool
$c< :: ErrConferenceNew -> ErrConferenceNew -> Bool
compare :: ErrConferenceNew -> ErrConferenceNew -> Ordering
$ccompare :: ErrConferenceNew -> ErrConferenceNew -> Ordering
$cp1Ord :: Eq ErrConferenceNew
Ord, Int -> ErrConferenceNew
ErrConferenceNew -> Int
ErrConferenceNew -> [ErrConferenceNew]
ErrConferenceNew -> ErrConferenceNew
ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew]
ErrConferenceNew
-> ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew]
(ErrConferenceNew -> ErrConferenceNew)
-> (ErrConferenceNew -> ErrConferenceNew)
-> (Int -> ErrConferenceNew)
-> (ErrConferenceNew -> Int)
-> (ErrConferenceNew -> [ErrConferenceNew])
-> (ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew])
-> (ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew])
-> (ErrConferenceNew
-> ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew])
-> Enum ErrConferenceNew
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferenceNew
-> ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew]
$cenumFromThenTo :: ErrConferenceNew
-> ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew]
enumFromTo :: ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew]
$cenumFromTo :: ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew]
enumFromThen :: ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew]
$cenumFromThen :: ErrConferenceNew -> ErrConferenceNew -> [ErrConferenceNew]
enumFrom :: ErrConferenceNew -> [ErrConferenceNew]
$cenumFrom :: ErrConferenceNew -> [ErrConferenceNew]
fromEnum :: ErrConferenceNew -> Int
$cfromEnum :: ErrConferenceNew -> Int
toEnum :: Int -> ErrConferenceNew
$ctoEnum :: Int -> ErrConferenceNew
pred :: ErrConferenceNew -> ErrConferenceNew
$cpred :: ErrConferenceNew -> ErrConferenceNew
succ :: ErrConferenceNew -> ErrConferenceNew
$csucc :: ErrConferenceNew -> ErrConferenceNew
Enum, ErrConferenceNew
ErrConferenceNew -> ErrConferenceNew -> Bounded ErrConferenceNew
forall a. a -> a -> Bounded a
maxBound :: ErrConferenceNew
$cmaxBound :: ErrConferenceNew
minBound :: ErrConferenceNew
$cminBound :: ErrConferenceNew
Bounded, ReadPrec [ErrConferenceNew]
ReadPrec ErrConferenceNew
Int -> ReadS ErrConferenceNew
ReadS [ErrConferenceNew]
(Int -> ReadS ErrConferenceNew)
-> ReadS [ErrConferenceNew]
-> ReadPrec ErrConferenceNew
-> ReadPrec [ErrConferenceNew]
-> Read ErrConferenceNew
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferenceNew]
$creadListPrec :: ReadPrec [ErrConferenceNew]
readPrec :: ReadPrec ErrConferenceNew
$creadPrec :: ReadPrec ErrConferenceNew
readList :: ReadS [ErrConferenceNew]
$creadList :: ReadS [ErrConferenceNew]
readsPrec :: Int -> ReadS ErrConferenceNew
$creadsPrec :: Int -> ReadS ErrConferenceNew
Read, Int -> ErrConferenceNew -> ShowS
[ErrConferenceNew] -> ShowS
ErrConferenceNew -> String
(Int -> ErrConferenceNew -> ShowS)
-> (ErrConferenceNew -> String)
-> ([ErrConferenceNew] -> ShowS)
-> Show ErrConferenceNew
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferenceNew] -> ShowS
$cshowList :: [ErrConferenceNew] -> ShowS
show :: ErrConferenceNew -> String
$cshow :: ErrConferenceNew -> String
showsPrec :: Int -> ErrConferenceNew -> ShowS
$cshowsPrec :: Int -> ErrConferenceNew -> ShowS
Show, (forall x. ErrConferenceNew -> Rep ErrConferenceNew x)
-> (forall x. Rep ErrConferenceNew x -> ErrConferenceNew)
-> Generic ErrConferenceNew
forall x. Rep ErrConferenceNew x -> ErrConferenceNew
forall x. ErrConferenceNew -> Rep ErrConferenceNew x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrConferenceNew x -> ErrConferenceNew
$cfrom :: forall x. ErrConferenceNew -> Rep ErrConferenceNew x
Generic)
instance MessagePack ErrConferenceNew
instance Arbitrary ErrConferenceNew where arbitrary :: Gen ErrConferenceNew
arbitrary = Gen ErrConferenceNew
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_new :: ToxPtr -> CErr ErrConferenceNew -> IO Word32
data ErrConferenceDelete
= ErrConferenceDeleteConferenceNotFound
deriving (ErrConferenceDelete -> ErrConferenceDelete -> Bool
(ErrConferenceDelete -> ErrConferenceDelete -> Bool)
-> (ErrConferenceDelete -> ErrConferenceDelete -> Bool)
-> Eq ErrConferenceDelete
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
$c/= :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
== :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
$c== :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
Eq, Eq ErrConferenceDelete
Eq ErrConferenceDelete
-> (ErrConferenceDelete -> ErrConferenceDelete -> Ordering)
-> (ErrConferenceDelete -> ErrConferenceDelete -> Bool)
-> (ErrConferenceDelete -> ErrConferenceDelete -> Bool)
-> (ErrConferenceDelete -> ErrConferenceDelete -> Bool)
-> (ErrConferenceDelete -> ErrConferenceDelete -> Bool)
-> (ErrConferenceDelete
-> ErrConferenceDelete -> ErrConferenceDelete)
-> (ErrConferenceDelete
-> ErrConferenceDelete -> ErrConferenceDelete)
-> Ord ErrConferenceDelete
ErrConferenceDelete -> ErrConferenceDelete -> Bool
ErrConferenceDelete -> ErrConferenceDelete -> Ordering
ErrConferenceDelete -> ErrConferenceDelete -> ErrConferenceDelete
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferenceDelete -> ErrConferenceDelete -> ErrConferenceDelete
$cmin :: ErrConferenceDelete -> ErrConferenceDelete -> ErrConferenceDelete
max :: ErrConferenceDelete -> ErrConferenceDelete -> ErrConferenceDelete
$cmax :: ErrConferenceDelete -> ErrConferenceDelete -> ErrConferenceDelete
>= :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
$c>= :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
> :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
$c> :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
<= :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
$c<= :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
< :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
$c< :: ErrConferenceDelete -> ErrConferenceDelete -> Bool
compare :: ErrConferenceDelete -> ErrConferenceDelete -> Ordering
$ccompare :: ErrConferenceDelete -> ErrConferenceDelete -> Ordering
$cp1Ord :: Eq ErrConferenceDelete
Ord, Int -> ErrConferenceDelete
ErrConferenceDelete -> Int
ErrConferenceDelete -> [ErrConferenceDelete]
ErrConferenceDelete -> ErrConferenceDelete
ErrConferenceDelete -> ErrConferenceDelete -> [ErrConferenceDelete]
ErrConferenceDelete
-> ErrConferenceDelete
-> ErrConferenceDelete
-> [ErrConferenceDelete]
(ErrConferenceDelete -> ErrConferenceDelete)
-> (ErrConferenceDelete -> ErrConferenceDelete)
-> (Int -> ErrConferenceDelete)
-> (ErrConferenceDelete -> Int)
-> (ErrConferenceDelete -> [ErrConferenceDelete])
-> (ErrConferenceDelete
-> ErrConferenceDelete -> [ErrConferenceDelete])
-> (ErrConferenceDelete
-> ErrConferenceDelete -> [ErrConferenceDelete])
-> (ErrConferenceDelete
-> ErrConferenceDelete
-> ErrConferenceDelete
-> [ErrConferenceDelete])
-> Enum ErrConferenceDelete
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferenceDelete
-> ErrConferenceDelete
-> ErrConferenceDelete
-> [ErrConferenceDelete]
$cenumFromThenTo :: ErrConferenceDelete
-> ErrConferenceDelete
-> ErrConferenceDelete
-> [ErrConferenceDelete]
enumFromTo :: ErrConferenceDelete -> ErrConferenceDelete -> [ErrConferenceDelete]
$cenumFromTo :: ErrConferenceDelete -> ErrConferenceDelete -> [ErrConferenceDelete]
enumFromThen :: ErrConferenceDelete -> ErrConferenceDelete -> [ErrConferenceDelete]
$cenumFromThen :: ErrConferenceDelete -> ErrConferenceDelete -> [ErrConferenceDelete]
enumFrom :: ErrConferenceDelete -> [ErrConferenceDelete]
$cenumFrom :: ErrConferenceDelete -> [ErrConferenceDelete]
fromEnum :: ErrConferenceDelete -> Int
$cfromEnum :: ErrConferenceDelete -> Int
toEnum :: Int -> ErrConferenceDelete
$ctoEnum :: Int -> ErrConferenceDelete
pred :: ErrConferenceDelete -> ErrConferenceDelete
$cpred :: ErrConferenceDelete -> ErrConferenceDelete
succ :: ErrConferenceDelete -> ErrConferenceDelete
$csucc :: ErrConferenceDelete -> ErrConferenceDelete
Enum, ErrConferenceDelete
ErrConferenceDelete
-> ErrConferenceDelete -> Bounded ErrConferenceDelete
forall a. a -> a -> Bounded a
maxBound :: ErrConferenceDelete
$cmaxBound :: ErrConferenceDelete
minBound :: ErrConferenceDelete
$cminBound :: ErrConferenceDelete
Bounded, ReadPrec [ErrConferenceDelete]
ReadPrec ErrConferenceDelete
Int -> ReadS ErrConferenceDelete
ReadS [ErrConferenceDelete]
(Int -> ReadS ErrConferenceDelete)
-> ReadS [ErrConferenceDelete]
-> ReadPrec ErrConferenceDelete
-> ReadPrec [ErrConferenceDelete]
-> Read ErrConferenceDelete
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferenceDelete]
$creadListPrec :: ReadPrec [ErrConferenceDelete]
readPrec :: ReadPrec ErrConferenceDelete
$creadPrec :: ReadPrec ErrConferenceDelete
readList :: ReadS [ErrConferenceDelete]
$creadList :: ReadS [ErrConferenceDelete]
readsPrec :: Int -> ReadS ErrConferenceDelete
$creadsPrec :: Int -> ReadS ErrConferenceDelete
Read, Int -> ErrConferenceDelete -> ShowS
[ErrConferenceDelete] -> ShowS
ErrConferenceDelete -> String
(Int -> ErrConferenceDelete -> ShowS)
-> (ErrConferenceDelete -> String)
-> ([ErrConferenceDelete] -> ShowS)
-> Show ErrConferenceDelete
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferenceDelete] -> ShowS
$cshowList :: [ErrConferenceDelete] -> ShowS
show :: ErrConferenceDelete -> String
$cshow :: ErrConferenceDelete -> String
showsPrec :: Int -> ErrConferenceDelete -> ShowS
$cshowsPrec :: Int -> ErrConferenceDelete -> ShowS
Show, (forall x. ErrConferenceDelete -> Rep ErrConferenceDelete x)
-> (forall x. Rep ErrConferenceDelete x -> ErrConferenceDelete)
-> Generic ErrConferenceDelete
forall x. Rep ErrConferenceDelete x -> ErrConferenceDelete
forall x. ErrConferenceDelete -> Rep ErrConferenceDelete x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrConferenceDelete x -> ErrConferenceDelete
$cfrom :: forall x. ErrConferenceDelete -> Rep ErrConferenceDelete x
Generic)
instance MessagePack ErrConferenceDelete
instance Arbitrary ErrConferenceDelete where arbitrary :: Gen ErrConferenceDelete
arbitrary = Gen ErrConferenceDelete
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_delete :: ToxPtr -> Word32 -> CErr ErrConferenceDelete -> IO Bool
data ErrConferencePeerQuery
= ErrConferencePeerQueryConferenceNotFound
| ErrConferencePeerQueryPeerNotFound
| ErrConferencePeerQueryNoConnection
deriving (ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
(ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool)
-> (ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool)
-> Eq ErrConferencePeerQuery
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
$c/= :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
== :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
$c== :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
Eq, Eq ErrConferencePeerQuery
Eq ErrConferencePeerQuery
-> (ErrConferencePeerQuery -> ErrConferencePeerQuery -> Ordering)
-> (ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool)
-> (ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool)
-> (ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool)
-> (ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool)
-> (ErrConferencePeerQuery
-> ErrConferencePeerQuery -> ErrConferencePeerQuery)
-> (ErrConferencePeerQuery
-> ErrConferencePeerQuery -> ErrConferencePeerQuery)
-> Ord ErrConferencePeerQuery
ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
ErrConferencePeerQuery -> ErrConferencePeerQuery -> Ordering
ErrConferencePeerQuery
-> ErrConferencePeerQuery -> ErrConferencePeerQuery
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferencePeerQuery
-> ErrConferencePeerQuery -> ErrConferencePeerQuery
$cmin :: ErrConferencePeerQuery
-> ErrConferencePeerQuery -> ErrConferencePeerQuery
max :: ErrConferencePeerQuery
-> ErrConferencePeerQuery -> ErrConferencePeerQuery
$cmax :: ErrConferencePeerQuery
-> ErrConferencePeerQuery -> ErrConferencePeerQuery
>= :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
$c>= :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
> :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
$c> :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
<= :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
$c<= :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
< :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
$c< :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Bool
compare :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Ordering
$ccompare :: ErrConferencePeerQuery -> ErrConferencePeerQuery -> Ordering
$cp1Ord :: Eq ErrConferencePeerQuery
Ord, Int -> ErrConferencePeerQuery
ErrConferencePeerQuery -> Int
ErrConferencePeerQuery -> [ErrConferencePeerQuery]
ErrConferencePeerQuery -> ErrConferencePeerQuery
ErrConferencePeerQuery
-> ErrConferencePeerQuery -> [ErrConferencePeerQuery]
ErrConferencePeerQuery
-> ErrConferencePeerQuery
-> ErrConferencePeerQuery
-> [ErrConferencePeerQuery]
(ErrConferencePeerQuery -> ErrConferencePeerQuery)
-> (ErrConferencePeerQuery -> ErrConferencePeerQuery)
-> (Int -> ErrConferencePeerQuery)
-> (ErrConferencePeerQuery -> Int)
-> (ErrConferencePeerQuery -> [ErrConferencePeerQuery])
-> (ErrConferencePeerQuery
-> ErrConferencePeerQuery -> [ErrConferencePeerQuery])
-> (ErrConferencePeerQuery
-> ErrConferencePeerQuery -> [ErrConferencePeerQuery])
-> (ErrConferencePeerQuery
-> ErrConferencePeerQuery
-> ErrConferencePeerQuery
-> [ErrConferencePeerQuery])
-> Enum ErrConferencePeerQuery
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferencePeerQuery
-> ErrConferencePeerQuery
-> ErrConferencePeerQuery
-> [ErrConferencePeerQuery]
$cenumFromThenTo :: ErrConferencePeerQuery
-> ErrConferencePeerQuery
-> ErrConferencePeerQuery
-> [ErrConferencePeerQuery]
enumFromTo :: ErrConferencePeerQuery
-> ErrConferencePeerQuery -> [ErrConferencePeerQuery]
$cenumFromTo :: ErrConferencePeerQuery
-> ErrConferencePeerQuery -> [ErrConferencePeerQuery]
enumFromThen :: ErrConferencePeerQuery
-> ErrConferencePeerQuery -> [ErrConferencePeerQuery]
$cenumFromThen :: ErrConferencePeerQuery
-> ErrConferencePeerQuery -> [ErrConferencePeerQuery]
enumFrom :: ErrConferencePeerQuery -> [ErrConferencePeerQuery]
$cenumFrom :: ErrConferencePeerQuery -> [ErrConferencePeerQuery]
fromEnum :: ErrConferencePeerQuery -> Int
$cfromEnum :: ErrConferencePeerQuery -> Int
toEnum :: Int -> ErrConferencePeerQuery
$ctoEnum :: Int -> ErrConferencePeerQuery
pred :: ErrConferencePeerQuery -> ErrConferencePeerQuery
$cpred :: ErrConferencePeerQuery -> ErrConferencePeerQuery
succ :: ErrConferencePeerQuery -> ErrConferencePeerQuery
$csucc :: ErrConferencePeerQuery -> ErrConferencePeerQuery
Enum, ErrConferencePeerQuery
ErrConferencePeerQuery
-> ErrConferencePeerQuery -> Bounded ErrConferencePeerQuery
forall a. a -> a -> Bounded a
maxBound :: ErrConferencePeerQuery
$cmaxBound :: ErrConferencePeerQuery
minBound :: ErrConferencePeerQuery
$cminBound :: ErrConferencePeerQuery
Bounded, ReadPrec [ErrConferencePeerQuery]
ReadPrec ErrConferencePeerQuery
Int -> ReadS ErrConferencePeerQuery
ReadS [ErrConferencePeerQuery]
(Int -> ReadS ErrConferencePeerQuery)
-> ReadS [ErrConferencePeerQuery]
-> ReadPrec ErrConferencePeerQuery
-> ReadPrec [ErrConferencePeerQuery]
-> Read ErrConferencePeerQuery
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferencePeerQuery]
$creadListPrec :: ReadPrec [ErrConferencePeerQuery]
readPrec :: ReadPrec ErrConferencePeerQuery
$creadPrec :: ReadPrec ErrConferencePeerQuery
readList :: ReadS [ErrConferencePeerQuery]
$creadList :: ReadS [ErrConferencePeerQuery]
readsPrec :: Int -> ReadS ErrConferencePeerQuery
$creadsPrec :: Int -> ReadS ErrConferencePeerQuery
Read, Int -> ErrConferencePeerQuery -> ShowS
[ErrConferencePeerQuery] -> ShowS
ErrConferencePeerQuery -> String
(Int -> ErrConferencePeerQuery -> ShowS)
-> (ErrConferencePeerQuery -> String)
-> ([ErrConferencePeerQuery] -> ShowS)
-> Show ErrConferencePeerQuery
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferencePeerQuery] -> ShowS
$cshowList :: [ErrConferencePeerQuery] -> ShowS
show :: ErrConferencePeerQuery -> String
$cshow :: ErrConferencePeerQuery -> String
showsPrec :: Int -> ErrConferencePeerQuery -> ShowS
$cshowsPrec :: Int -> ErrConferencePeerQuery -> ShowS
Show, (forall x. ErrConferencePeerQuery -> Rep ErrConferencePeerQuery x)
-> (forall x.
Rep ErrConferencePeerQuery x -> ErrConferencePeerQuery)
-> Generic ErrConferencePeerQuery
forall x. Rep ErrConferencePeerQuery x -> ErrConferencePeerQuery
forall x. ErrConferencePeerQuery -> Rep ErrConferencePeerQuery x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrConferencePeerQuery x -> ErrConferencePeerQuery
$cfrom :: forall x. ErrConferencePeerQuery -> Rep ErrConferencePeerQuery x
Generic)
instance MessagePack ErrConferencePeerQuery
instance Arbitrary ErrConferencePeerQuery where arbitrary :: Gen ErrConferencePeerQuery
arbitrary = Gen ErrConferencePeerQuery
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_peer_count :: ToxPtr -> Word32 -> CErr ErrConferencePeerQuery -> IO Word32
foreign import ccall tox_conference_peer_get_name_size :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferencePeerQuery -> IO CSize
foreign import ccall tox_conference_peer_get_name :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrConferencePeerQuery -> IO Bool
foreign import ccall tox_conference_peer_get_public_key :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrConferencePeerQuery -> IO Bool
foreign import ccall tox_conference_peer_number_is_ours :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferencePeerQuery -> IO Bool
foreign import ccall tox_conference_offline_peer_count :: ToxPtr -> Word32 -> CErr ErrConferencePeerQuery -> IO Word32
foreign import ccall tox_conference_offline_peer_get_name_size :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferencePeerQuery -> IO CSize
foreign import ccall tox_conference_offline_peer_get_name :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrConferencePeerQuery -> IO Bool
foreign import ccall tox_conference_offline_peer_get_public_key :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrConferencePeerQuery -> IO Bool
foreign import ccall tox_conference_offline_peer_get_last_active :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferencePeerQuery -> IO Word64
data ErrConferenceSetMaxOffline
= ErrConferenceSetMaxOfflineConferenceNotFound
deriving (ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
(ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool)
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> Bool)
-> Eq ErrConferenceSetMaxOffline
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
$c/= :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
== :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
$c== :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
Eq, Eq ErrConferenceSetMaxOffline
Eq ErrConferenceSetMaxOffline
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> Ordering)
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> Bool)
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> Bool)
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> Bool)
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> Bool)
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline)
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline)
-> Ord ErrConferenceSetMaxOffline
ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> Ordering
ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline
$cmin :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline
max :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline
$cmax :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline
>= :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
$c>= :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
> :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
$c> :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
<= :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
$c<= :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
< :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
$c< :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline -> Bool
compare :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> Ordering
$ccompare :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> Ordering
$cp1Ord :: Eq ErrConferenceSetMaxOffline
Ord, Int -> ErrConferenceSetMaxOffline
ErrConferenceSetMaxOffline -> Int
ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline]
ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline
ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline]
ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline
-> [ErrConferenceSetMaxOffline]
(ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline)
-> (ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline)
-> (Int -> ErrConferenceSetMaxOffline)
-> (ErrConferenceSetMaxOffline -> Int)
-> (ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline])
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline])
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline])
-> (ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline
-> [ErrConferenceSetMaxOffline])
-> Enum ErrConferenceSetMaxOffline
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline
-> [ErrConferenceSetMaxOffline]
$cenumFromThenTo :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline
-> [ErrConferenceSetMaxOffline]
enumFromTo :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline]
$cenumFromTo :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline]
enumFromThen :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline]
$cenumFromThen :: ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline]
enumFrom :: ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline]
$cenumFrom :: ErrConferenceSetMaxOffline -> [ErrConferenceSetMaxOffline]
fromEnum :: ErrConferenceSetMaxOffline -> Int
$cfromEnum :: ErrConferenceSetMaxOffline -> Int
toEnum :: Int -> ErrConferenceSetMaxOffline
$ctoEnum :: Int -> ErrConferenceSetMaxOffline
pred :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline
$cpred :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline
succ :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline
$csucc :: ErrConferenceSetMaxOffline -> ErrConferenceSetMaxOffline
Enum, ErrConferenceSetMaxOffline
ErrConferenceSetMaxOffline
-> ErrConferenceSetMaxOffline -> Bounded ErrConferenceSetMaxOffline
forall a. a -> a -> Bounded a
maxBound :: ErrConferenceSetMaxOffline
$cmaxBound :: ErrConferenceSetMaxOffline
minBound :: ErrConferenceSetMaxOffline
$cminBound :: ErrConferenceSetMaxOffline
Bounded, ReadPrec [ErrConferenceSetMaxOffline]
ReadPrec ErrConferenceSetMaxOffline
Int -> ReadS ErrConferenceSetMaxOffline
ReadS [ErrConferenceSetMaxOffline]
(Int -> ReadS ErrConferenceSetMaxOffline)
-> ReadS [ErrConferenceSetMaxOffline]
-> ReadPrec ErrConferenceSetMaxOffline
-> ReadPrec [ErrConferenceSetMaxOffline]
-> Read ErrConferenceSetMaxOffline
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferenceSetMaxOffline]
$creadListPrec :: ReadPrec [ErrConferenceSetMaxOffline]
readPrec :: ReadPrec ErrConferenceSetMaxOffline
$creadPrec :: ReadPrec ErrConferenceSetMaxOffline
readList :: ReadS [ErrConferenceSetMaxOffline]
$creadList :: ReadS [ErrConferenceSetMaxOffline]
readsPrec :: Int -> ReadS ErrConferenceSetMaxOffline
$creadsPrec :: Int -> ReadS ErrConferenceSetMaxOffline
Read, Int -> ErrConferenceSetMaxOffline -> ShowS
[ErrConferenceSetMaxOffline] -> ShowS
ErrConferenceSetMaxOffline -> String
(Int -> ErrConferenceSetMaxOffline -> ShowS)
-> (ErrConferenceSetMaxOffline -> String)
-> ([ErrConferenceSetMaxOffline] -> ShowS)
-> Show ErrConferenceSetMaxOffline
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferenceSetMaxOffline] -> ShowS
$cshowList :: [ErrConferenceSetMaxOffline] -> ShowS
show :: ErrConferenceSetMaxOffline -> String
$cshow :: ErrConferenceSetMaxOffline -> String
showsPrec :: Int -> ErrConferenceSetMaxOffline -> ShowS
$cshowsPrec :: Int -> ErrConferenceSetMaxOffline -> ShowS
Show, (forall x.
ErrConferenceSetMaxOffline -> Rep ErrConferenceSetMaxOffline x)
-> (forall x.
Rep ErrConferenceSetMaxOffline x -> ErrConferenceSetMaxOffline)
-> Generic ErrConferenceSetMaxOffline
forall x.
Rep ErrConferenceSetMaxOffline x -> ErrConferenceSetMaxOffline
forall x.
ErrConferenceSetMaxOffline -> Rep ErrConferenceSetMaxOffline x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ErrConferenceSetMaxOffline x -> ErrConferenceSetMaxOffline
$cfrom :: forall x.
ErrConferenceSetMaxOffline -> Rep ErrConferenceSetMaxOffline x
Generic)
instance MessagePack ErrConferenceSetMaxOffline
instance Arbitrary ErrConferenceSetMaxOffline where arbitrary :: Gen ErrConferenceSetMaxOffline
arbitrary = Gen ErrConferenceSetMaxOffline
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_set_max_offline :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferenceSetMaxOffline -> IO Bool
data ErrConferenceInvite
= ErrConferenceInviteConferenceNotFound
| ErrConferenceInviteFailSend
| ErrConferenceInviteNoConnection
deriving (ErrConferenceInvite -> ErrConferenceInvite -> Bool
(ErrConferenceInvite -> ErrConferenceInvite -> Bool)
-> (ErrConferenceInvite -> ErrConferenceInvite -> Bool)
-> Eq ErrConferenceInvite
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
$c/= :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
== :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
$c== :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
Eq, Eq ErrConferenceInvite
Eq ErrConferenceInvite
-> (ErrConferenceInvite -> ErrConferenceInvite -> Ordering)
-> (ErrConferenceInvite -> ErrConferenceInvite -> Bool)
-> (ErrConferenceInvite -> ErrConferenceInvite -> Bool)
-> (ErrConferenceInvite -> ErrConferenceInvite -> Bool)
-> (ErrConferenceInvite -> ErrConferenceInvite -> Bool)
-> (ErrConferenceInvite
-> ErrConferenceInvite -> ErrConferenceInvite)
-> (ErrConferenceInvite
-> ErrConferenceInvite -> ErrConferenceInvite)
-> Ord ErrConferenceInvite
ErrConferenceInvite -> ErrConferenceInvite -> Bool
ErrConferenceInvite -> ErrConferenceInvite -> Ordering
ErrConferenceInvite -> ErrConferenceInvite -> ErrConferenceInvite
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferenceInvite -> ErrConferenceInvite -> ErrConferenceInvite
$cmin :: ErrConferenceInvite -> ErrConferenceInvite -> ErrConferenceInvite
max :: ErrConferenceInvite -> ErrConferenceInvite -> ErrConferenceInvite
$cmax :: ErrConferenceInvite -> ErrConferenceInvite -> ErrConferenceInvite
>= :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
$c>= :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
> :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
$c> :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
<= :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
$c<= :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
< :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
$c< :: ErrConferenceInvite -> ErrConferenceInvite -> Bool
compare :: ErrConferenceInvite -> ErrConferenceInvite -> Ordering
$ccompare :: ErrConferenceInvite -> ErrConferenceInvite -> Ordering
$cp1Ord :: Eq ErrConferenceInvite
Ord, Int -> ErrConferenceInvite
ErrConferenceInvite -> Int
ErrConferenceInvite -> [ErrConferenceInvite]
ErrConferenceInvite -> ErrConferenceInvite
ErrConferenceInvite -> ErrConferenceInvite -> [ErrConferenceInvite]
ErrConferenceInvite
-> ErrConferenceInvite
-> ErrConferenceInvite
-> [ErrConferenceInvite]
(ErrConferenceInvite -> ErrConferenceInvite)
-> (ErrConferenceInvite -> ErrConferenceInvite)
-> (Int -> ErrConferenceInvite)
-> (ErrConferenceInvite -> Int)
-> (ErrConferenceInvite -> [ErrConferenceInvite])
-> (ErrConferenceInvite
-> ErrConferenceInvite -> [ErrConferenceInvite])
-> (ErrConferenceInvite
-> ErrConferenceInvite -> [ErrConferenceInvite])
-> (ErrConferenceInvite
-> ErrConferenceInvite
-> ErrConferenceInvite
-> [ErrConferenceInvite])
-> Enum ErrConferenceInvite
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferenceInvite
-> ErrConferenceInvite
-> ErrConferenceInvite
-> [ErrConferenceInvite]
$cenumFromThenTo :: ErrConferenceInvite
-> ErrConferenceInvite
-> ErrConferenceInvite
-> [ErrConferenceInvite]
enumFromTo :: ErrConferenceInvite -> ErrConferenceInvite -> [ErrConferenceInvite]
$cenumFromTo :: ErrConferenceInvite -> ErrConferenceInvite -> [ErrConferenceInvite]
enumFromThen :: ErrConferenceInvite -> ErrConferenceInvite -> [ErrConferenceInvite]
$cenumFromThen :: ErrConferenceInvite -> ErrConferenceInvite -> [ErrConferenceInvite]
enumFrom :: ErrConferenceInvite -> [ErrConferenceInvite]
$cenumFrom :: ErrConferenceInvite -> [ErrConferenceInvite]
fromEnum :: ErrConferenceInvite -> Int
$cfromEnum :: ErrConferenceInvite -> Int
toEnum :: Int -> ErrConferenceInvite
$ctoEnum :: Int -> ErrConferenceInvite
pred :: ErrConferenceInvite -> ErrConferenceInvite
$cpred :: ErrConferenceInvite -> ErrConferenceInvite
succ :: ErrConferenceInvite -> ErrConferenceInvite
$csucc :: ErrConferenceInvite -> ErrConferenceInvite
Enum, ErrConferenceInvite
ErrConferenceInvite
-> ErrConferenceInvite -> Bounded ErrConferenceInvite
forall a. a -> a -> Bounded a
maxBound :: ErrConferenceInvite
$cmaxBound :: ErrConferenceInvite
minBound :: ErrConferenceInvite
$cminBound :: ErrConferenceInvite
Bounded, ReadPrec [ErrConferenceInvite]
ReadPrec ErrConferenceInvite
Int -> ReadS ErrConferenceInvite
ReadS [ErrConferenceInvite]
(Int -> ReadS ErrConferenceInvite)
-> ReadS [ErrConferenceInvite]
-> ReadPrec ErrConferenceInvite
-> ReadPrec [ErrConferenceInvite]
-> Read ErrConferenceInvite
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferenceInvite]
$creadListPrec :: ReadPrec [ErrConferenceInvite]
readPrec :: ReadPrec ErrConferenceInvite
$creadPrec :: ReadPrec ErrConferenceInvite
readList :: ReadS [ErrConferenceInvite]
$creadList :: ReadS [ErrConferenceInvite]
readsPrec :: Int -> ReadS ErrConferenceInvite
$creadsPrec :: Int -> ReadS ErrConferenceInvite
Read, Int -> ErrConferenceInvite -> ShowS
[ErrConferenceInvite] -> ShowS
ErrConferenceInvite -> String
(Int -> ErrConferenceInvite -> ShowS)
-> (ErrConferenceInvite -> String)
-> ([ErrConferenceInvite] -> ShowS)
-> Show ErrConferenceInvite
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferenceInvite] -> ShowS
$cshowList :: [ErrConferenceInvite] -> ShowS
show :: ErrConferenceInvite -> String
$cshow :: ErrConferenceInvite -> String
showsPrec :: Int -> ErrConferenceInvite -> ShowS
$cshowsPrec :: Int -> ErrConferenceInvite -> ShowS
Show, (forall x. ErrConferenceInvite -> Rep ErrConferenceInvite x)
-> (forall x. Rep ErrConferenceInvite x -> ErrConferenceInvite)
-> Generic ErrConferenceInvite
forall x. Rep ErrConferenceInvite x -> ErrConferenceInvite
forall x. ErrConferenceInvite -> Rep ErrConferenceInvite x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrConferenceInvite x -> ErrConferenceInvite
$cfrom :: forall x. ErrConferenceInvite -> Rep ErrConferenceInvite x
Generic)
instance MessagePack ErrConferenceInvite
instance Arbitrary ErrConferenceInvite where arbitrary :: Gen ErrConferenceInvite
arbitrary = Gen ErrConferenceInvite
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_invite :: ToxPtr -> Word32 -> Word32 -> CErr ErrConferenceInvite -> IO Bool
data ErrConferenceJoin
= ErrConferenceJoinInvalidLength
| ErrConferenceJoinWrongType
| ErrConferenceJoinFriendNotFound
| ErrConferenceJoinDuplicate
| ErrConferenceJoinInitFail
| ErrConferenceJoinFailSend
deriving (ErrConferenceJoin -> ErrConferenceJoin -> Bool
(ErrConferenceJoin -> ErrConferenceJoin -> Bool)
-> (ErrConferenceJoin -> ErrConferenceJoin -> Bool)
-> Eq ErrConferenceJoin
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
$c/= :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
== :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
$c== :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
Eq, Eq ErrConferenceJoin
Eq ErrConferenceJoin
-> (ErrConferenceJoin -> ErrConferenceJoin -> Ordering)
-> (ErrConferenceJoin -> ErrConferenceJoin -> Bool)
-> (ErrConferenceJoin -> ErrConferenceJoin -> Bool)
-> (ErrConferenceJoin -> ErrConferenceJoin -> Bool)
-> (ErrConferenceJoin -> ErrConferenceJoin -> Bool)
-> (ErrConferenceJoin -> ErrConferenceJoin -> ErrConferenceJoin)
-> (ErrConferenceJoin -> ErrConferenceJoin -> ErrConferenceJoin)
-> Ord ErrConferenceJoin
ErrConferenceJoin -> ErrConferenceJoin -> Bool
ErrConferenceJoin -> ErrConferenceJoin -> Ordering
ErrConferenceJoin -> ErrConferenceJoin -> ErrConferenceJoin
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferenceJoin -> ErrConferenceJoin -> ErrConferenceJoin
$cmin :: ErrConferenceJoin -> ErrConferenceJoin -> ErrConferenceJoin
max :: ErrConferenceJoin -> ErrConferenceJoin -> ErrConferenceJoin
$cmax :: ErrConferenceJoin -> ErrConferenceJoin -> ErrConferenceJoin
>= :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
$c>= :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
> :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
$c> :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
<= :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
$c<= :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
< :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
$c< :: ErrConferenceJoin -> ErrConferenceJoin -> Bool
compare :: ErrConferenceJoin -> ErrConferenceJoin -> Ordering
$ccompare :: ErrConferenceJoin -> ErrConferenceJoin -> Ordering
$cp1Ord :: Eq ErrConferenceJoin
Ord, Int -> ErrConferenceJoin
ErrConferenceJoin -> Int
ErrConferenceJoin -> [ErrConferenceJoin]
ErrConferenceJoin -> ErrConferenceJoin
ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin]
ErrConferenceJoin
-> ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin]
(ErrConferenceJoin -> ErrConferenceJoin)
-> (ErrConferenceJoin -> ErrConferenceJoin)
-> (Int -> ErrConferenceJoin)
-> (ErrConferenceJoin -> Int)
-> (ErrConferenceJoin -> [ErrConferenceJoin])
-> (ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin])
-> (ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin])
-> (ErrConferenceJoin
-> ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin])
-> Enum ErrConferenceJoin
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferenceJoin
-> ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin]
$cenumFromThenTo :: ErrConferenceJoin
-> ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin]
enumFromTo :: ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin]
$cenumFromTo :: ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin]
enumFromThen :: ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin]
$cenumFromThen :: ErrConferenceJoin -> ErrConferenceJoin -> [ErrConferenceJoin]
enumFrom :: ErrConferenceJoin -> [ErrConferenceJoin]
$cenumFrom :: ErrConferenceJoin -> [ErrConferenceJoin]
fromEnum :: ErrConferenceJoin -> Int
$cfromEnum :: ErrConferenceJoin -> Int
toEnum :: Int -> ErrConferenceJoin
$ctoEnum :: Int -> ErrConferenceJoin
pred :: ErrConferenceJoin -> ErrConferenceJoin
$cpred :: ErrConferenceJoin -> ErrConferenceJoin
succ :: ErrConferenceJoin -> ErrConferenceJoin
$csucc :: ErrConferenceJoin -> ErrConferenceJoin
Enum, ErrConferenceJoin
ErrConferenceJoin -> ErrConferenceJoin -> Bounded ErrConferenceJoin
forall a. a -> a -> Bounded a
maxBound :: ErrConferenceJoin
$cmaxBound :: ErrConferenceJoin
minBound :: ErrConferenceJoin
$cminBound :: ErrConferenceJoin
Bounded, ReadPrec [ErrConferenceJoin]
ReadPrec ErrConferenceJoin
Int -> ReadS ErrConferenceJoin
ReadS [ErrConferenceJoin]
(Int -> ReadS ErrConferenceJoin)
-> ReadS [ErrConferenceJoin]
-> ReadPrec ErrConferenceJoin
-> ReadPrec [ErrConferenceJoin]
-> Read ErrConferenceJoin
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferenceJoin]
$creadListPrec :: ReadPrec [ErrConferenceJoin]
readPrec :: ReadPrec ErrConferenceJoin
$creadPrec :: ReadPrec ErrConferenceJoin
readList :: ReadS [ErrConferenceJoin]
$creadList :: ReadS [ErrConferenceJoin]
readsPrec :: Int -> ReadS ErrConferenceJoin
$creadsPrec :: Int -> ReadS ErrConferenceJoin
Read, Int -> ErrConferenceJoin -> ShowS
[ErrConferenceJoin] -> ShowS
ErrConferenceJoin -> String
(Int -> ErrConferenceJoin -> ShowS)
-> (ErrConferenceJoin -> String)
-> ([ErrConferenceJoin] -> ShowS)
-> Show ErrConferenceJoin
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferenceJoin] -> ShowS
$cshowList :: [ErrConferenceJoin] -> ShowS
show :: ErrConferenceJoin -> String
$cshow :: ErrConferenceJoin -> String
showsPrec :: Int -> ErrConferenceJoin -> ShowS
$cshowsPrec :: Int -> ErrConferenceJoin -> ShowS
Show, (forall x. ErrConferenceJoin -> Rep ErrConferenceJoin x)
-> (forall x. Rep ErrConferenceJoin x -> ErrConferenceJoin)
-> Generic ErrConferenceJoin
forall x. Rep ErrConferenceJoin x -> ErrConferenceJoin
forall x. ErrConferenceJoin -> Rep ErrConferenceJoin x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrConferenceJoin x -> ErrConferenceJoin
$cfrom :: forall x. ErrConferenceJoin -> Rep ErrConferenceJoin x
Generic)
instance MessagePack ErrConferenceJoin
instance Arbitrary ErrConferenceJoin where arbitrary :: Gen ErrConferenceJoin
arbitrary = Gen ErrConferenceJoin
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_join :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrConferenceJoin -> IO Word32
data ErrConferenceSendMessage
= ErrConferenceSendMessageConferenceNotFound
| ErrConferenceSendMessageTooLong
| ErrConferenceSendMessageNoConnection
| ErrConferenceSendMessageFailSend
deriving (ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
(ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool)
-> (ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool)
-> Eq ErrConferenceSendMessage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
$c/= :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
== :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
$c== :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
Eq, Eq ErrConferenceSendMessage
Eq ErrConferenceSendMessage
-> (ErrConferenceSendMessage
-> ErrConferenceSendMessage -> Ordering)
-> (ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool)
-> (ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool)
-> (ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool)
-> (ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool)
-> (ErrConferenceSendMessage
-> ErrConferenceSendMessage -> ErrConferenceSendMessage)
-> (ErrConferenceSendMessage
-> ErrConferenceSendMessage -> ErrConferenceSendMessage)
-> Ord ErrConferenceSendMessage
ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
ErrConferenceSendMessage -> ErrConferenceSendMessage -> Ordering
ErrConferenceSendMessage
-> ErrConferenceSendMessage -> ErrConferenceSendMessage
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferenceSendMessage
-> ErrConferenceSendMessage -> ErrConferenceSendMessage
$cmin :: ErrConferenceSendMessage
-> ErrConferenceSendMessage -> ErrConferenceSendMessage
max :: ErrConferenceSendMessage
-> ErrConferenceSendMessage -> ErrConferenceSendMessage
$cmax :: ErrConferenceSendMessage
-> ErrConferenceSendMessage -> ErrConferenceSendMessage
>= :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
$c>= :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
> :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
$c> :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
<= :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
$c<= :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
< :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
$c< :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Bool
compare :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Ordering
$ccompare :: ErrConferenceSendMessage -> ErrConferenceSendMessage -> Ordering
$cp1Ord :: Eq ErrConferenceSendMessage
Ord, Int -> ErrConferenceSendMessage
ErrConferenceSendMessage -> Int
ErrConferenceSendMessage -> [ErrConferenceSendMessage]
ErrConferenceSendMessage -> ErrConferenceSendMessage
ErrConferenceSendMessage
-> ErrConferenceSendMessage -> [ErrConferenceSendMessage]
ErrConferenceSendMessage
-> ErrConferenceSendMessage
-> ErrConferenceSendMessage
-> [ErrConferenceSendMessage]
(ErrConferenceSendMessage -> ErrConferenceSendMessage)
-> (ErrConferenceSendMessage -> ErrConferenceSendMessage)
-> (Int -> ErrConferenceSendMessage)
-> (ErrConferenceSendMessage -> Int)
-> (ErrConferenceSendMessage -> [ErrConferenceSendMessage])
-> (ErrConferenceSendMessage
-> ErrConferenceSendMessage -> [ErrConferenceSendMessage])
-> (ErrConferenceSendMessage
-> ErrConferenceSendMessage -> [ErrConferenceSendMessage])
-> (ErrConferenceSendMessage
-> ErrConferenceSendMessage
-> ErrConferenceSendMessage
-> [ErrConferenceSendMessage])
-> Enum ErrConferenceSendMessage
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferenceSendMessage
-> ErrConferenceSendMessage
-> ErrConferenceSendMessage
-> [ErrConferenceSendMessage]
$cenumFromThenTo :: ErrConferenceSendMessage
-> ErrConferenceSendMessage
-> ErrConferenceSendMessage
-> [ErrConferenceSendMessage]
enumFromTo :: ErrConferenceSendMessage
-> ErrConferenceSendMessage -> [ErrConferenceSendMessage]
$cenumFromTo :: ErrConferenceSendMessage
-> ErrConferenceSendMessage -> [ErrConferenceSendMessage]
enumFromThen :: ErrConferenceSendMessage
-> ErrConferenceSendMessage -> [ErrConferenceSendMessage]
$cenumFromThen :: ErrConferenceSendMessage
-> ErrConferenceSendMessage -> [ErrConferenceSendMessage]
enumFrom :: ErrConferenceSendMessage -> [ErrConferenceSendMessage]
$cenumFrom :: ErrConferenceSendMessage -> [ErrConferenceSendMessage]
fromEnum :: ErrConferenceSendMessage -> Int
$cfromEnum :: ErrConferenceSendMessage -> Int
toEnum :: Int -> ErrConferenceSendMessage
$ctoEnum :: Int -> ErrConferenceSendMessage
pred :: ErrConferenceSendMessage -> ErrConferenceSendMessage
$cpred :: ErrConferenceSendMessage -> ErrConferenceSendMessage
succ :: ErrConferenceSendMessage -> ErrConferenceSendMessage
$csucc :: ErrConferenceSendMessage -> ErrConferenceSendMessage
Enum, ErrConferenceSendMessage
ErrConferenceSendMessage
-> ErrConferenceSendMessage -> Bounded ErrConferenceSendMessage
forall a. a -> a -> Bounded a
maxBound :: ErrConferenceSendMessage
$cmaxBound :: ErrConferenceSendMessage
minBound :: ErrConferenceSendMessage
$cminBound :: ErrConferenceSendMessage
Bounded, ReadPrec [ErrConferenceSendMessage]
ReadPrec ErrConferenceSendMessage
Int -> ReadS ErrConferenceSendMessage
ReadS [ErrConferenceSendMessage]
(Int -> ReadS ErrConferenceSendMessage)
-> ReadS [ErrConferenceSendMessage]
-> ReadPrec ErrConferenceSendMessage
-> ReadPrec [ErrConferenceSendMessage]
-> Read ErrConferenceSendMessage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferenceSendMessage]
$creadListPrec :: ReadPrec [ErrConferenceSendMessage]
readPrec :: ReadPrec ErrConferenceSendMessage
$creadPrec :: ReadPrec ErrConferenceSendMessage
readList :: ReadS [ErrConferenceSendMessage]
$creadList :: ReadS [ErrConferenceSendMessage]
readsPrec :: Int -> ReadS ErrConferenceSendMessage
$creadsPrec :: Int -> ReadS ErrConferenceSendMessage
Read, Int -> ErrConferenceSendMessage -> ShowS
[ErrConferenceSendMessage] -> ShowS
ErrConferenceSendMessage -> String
(Int -> ErrConferenceSendMessage -> ShowS)
-> (ErrConferenceSendMessage -> String)
-> ([ErrConferenceSendMessage] -> ShowS)
-> Show ErrConferenceSendMessage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferenceSendMessage] -> ShowS
$cshowList :: [ErrConferenceSendMessage] -> ShowS
show :: ErrConferenceSendMessage -> String
$cshow :: ErrConferenceSendMessage -> String
showsPrec :: Int -> ErrConferenceSendMessage -> ShowS
$cshowsPrec :: Int -> ErrConferenceSendMessage -> ShowS
Show, (forall x.
ErrConferenceSendMessage -> Rep ErrConferenceSendMessage x)
-> (forall x.
Rep ErrConferenceSendMessage x -> ErrConferenceSendMessage)
-> Generic ErrConferenceSendMessage
forall x.
Rep ErrConferenceSendMessage x -> ErrConferenceSendMessage
forall x.
ErrConferenceSendMessage -> Rep ErrConferenceSendMessage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ErrConferenceSendMessage x -> ErrConferenceSendMessage
$cfrom :: forall x.
ErrConferenceSendMessage -> Rep ErrConferenceSendMessage x
Generic)
instance MessagePack ErrConferenceSendMessage
instance Arbitrary ErrConferenceSendMessage where arbitrary :: Gen ErrConferenceSendMessage
arbitrary = Gen ErrConferenceSendMessage
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_send_message :: ToxPtr -> Word32 -> CEnum MessageType -> CString -> CSize -> CErr ErrConferenceSendMessage -> IO Bool
data ErrConferenceTitle
= ErrConferenceTitleConferenceNotFound
| ErrConferenceTitleInvalidLength
| ErrConferenceTitleFailSend
deriving (ErrConferenceTitle -> ErrConferenceTitle -> Bool
(ErrConferenceTitle -> ErrConferenceTitle -> Bool)
-> (ErrConferenceTitle -> ErrConferenceTitle -> Bool)
-> Eq ErrConferenceTitle
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
$c/= :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
== :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
$c== :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
Eq, Eq ErrConferenceTitle
Eq ErrConferenceTitle
-> (ErrConferenceTitle -> ErrConferenceTitle -> Ordering)
-> (ErrConferenceTitle -> ErrConferenceTitle -> Bool)
-> (ErrConferenceTitle -> ErrConferenceTitle -> Bool)
-> (ErrConferenceTitle -> ErrConferenceTitle -> Bool)
-> (ErrConferenceTitle -> ErrConferenceTitle -> Bool)
-> (ErrConferenceTitle -> ErrConferenceTitle -> ErrConferenceTitle)
-> (ErrConferenceTitle -> ErrConferenceTitle -> ErrConferenceTitle)
-> Ord ErrConferenceTitle
ErrConferenceTitle -> ErrConferenceTitle -> Bool
ErrConferenceTitle -> ErrConferenceTitle -> Ordering
ErrConferenceTitle -> ErrConferenceTitle -> ErrConferenceTitle
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferenceTitle -> ErrConferenceTitle -> ErrConferenceTitle
$cmin :: ErrConferenceTitle -> ErrConferenceTitle -> ErrConferenceTitle
max :: ErrConferenceTitle -> ErrConferenceTitle -> ErrConferenceTitle
$cmax :: ErrConferenceTitle -> ErrConferenceTitle -> ErrConferenceTitle
>= :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
$c>= :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
> :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
$c> :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
<= :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
$c<= :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
< :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
$c< :: ErrConferenceTitle -> ErrConferenceTitle -> Bool
compare :: ErrConferenceTitle -> ErrConferenceTitle -> Ordering
$ccompare :: ErrConferenceTitle -> ErrConferenceTitle -> Ordering
$cp1Ord :: Eq ErrConferenceTitle
Ord, Int -> ErrConferenceTitle
ErrConferenceTitle -> Int
ErrConferenceTitle -> [ErrConferenceTitle]
ErrConferenceTitle -> ErrConferenceTitle
ErrConferenceTitle -> ErrConferenceTitle -> [ErrConferenceTitle]
ErrConferenceTitle
-> ErrConferenceTitle -> ErrConferenceTitle -> [ErrConferenceTitle]
(ErrConferenceTitle -> ErrConferenceTitle)
-> (ErrConferenceTitle -> ErrConferenceTitle)
-> (Int -> ErrConferenceTitle)
-> (ErrConferenceTitle -> Int)
-> (ErrConferenceTitle -> [ErrConferenceTitle])
-> (ErrConferenceTitle
-> ErrConferenceTitle -> [ErrConferenceTitle])
-> (ErrConferenceTitle
-> ErrConferenceTitle -> [ErrConferenceTitle])
-> (ErrConferenceTitle
-> ErrConferenceTitle
-> ErrConferenceTitle
-> [ErrConferenceTitle])
-> Enum ErrConferenceTitle
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferenceTitle
-> ErrConferenceTitle -> ErrConferenceTitle -> [ErrConferenceTitle]
$cenumFromThenTo :: ErrConferenceTitle
-> ErrConferenceTitle -> ErrConferenceTitle -> [ErrConferenceTitle]
enumFromTo :: ErrConferenceTitle -> ErrConferenceTitle -> [ErrConferenceTitle]
$cenumFromTo :: ErrConferenceTitle -> ErrConferenceTitle -> [ErrConferenceTitle]
enumFromThen :: ErrConferenceTitle -> ErrConferenceTitle -> [ErrConferenceTitle]
$cenumFromThen :: ErrConferenceTitle -> ErrConferenceTitle -> [ErrConferenceTitle]
enumFrom :: ErrConferenceTitle -> [ErrConferenceTitle]
$cenumFrom :: ErrConferenceTitle -> [ErrConferenceTitle]
fromEnum :: ErrConferenceTitle -> Int
$cfromEnum :: ErrConferenceTitle -> Int
toEnum :: Int -> ErrConferenceTitle
$ctoEnum :: Int -> ErrConferenceTitle
pred :: ErrConferenceTitle -> ErrConferenceTitle
$cpred :: ErrConferenceTitle -> ErrConferenceTitle
succ :: ErrConferenceTitle -> ErrConferenceTitle
$csucc :: ErrConferenceTitle -> ErrConferenceTitle
Enum, ErrConferenceTitle
ErrConferenceTitle
-> ErrConferenceTitle -> Bounded ErrConferenceTitle
forall a. a -> a -> Bounded a
maxBound :: ErrConferenceTitle
$cmaxBound :: ErrConferenceTitle
minBound :: ErrConferenceTitle
$cminBound :: ErrConferenceTitle
Bounded, ReadPrec [ErrConferenceTitle]
ReadPrec ErrConferenceTitle
Int -> ReadS ErrConferenceTitle
ReadS [ErrConferenceTitle]
(Int -> ReadS ErrConferenceTitle)
-> ReadS [ErrConferenceTitle]
-> ReadPrec ErrConferenceTitle
-> ReadPrec [ErrConferenceTitle]
-> Read ErrConferenceTitle
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferenceTitle]
$creadListPrec :: ReadPrec [ErrConferenceTitle]
readPrec :: ReadPrec ErrConferenceTitle
$creadPrec :: ReadPrec ErrConferenceTitle
readList :: ReadS [ErrConferenceTitle]
$creadList :: ReadS [ErrConferenceTitle]
readsPrec :: Int -> ReadS ErrConferenceTitle
$creadsPrec :: Int -> ReadS ErrConferenceTitle
Read, Int -> ErrConferenceTitle -> ShowS
[ErrConferenceTitle] -> ShowS
ErrConferenceTitle -> String
(Int -> ErrConferenceTitle -> ShowS)
-> (ErrConferenceTitle -> String)
-> ([ErrConferenceTitle] -> ShowS)
-> Show ErrConferenceTitle
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferenceTitle] -> ShowS
$cshowList :: [ErrConferenceTitle] -> ShowS
show :: ErrConferenceTitle -> String
$cshow :: ErrConferenceTitle -> String
showsPrec :: Int -> ErrConferenceTitle -> ShowS
$cshowsPrec :: Int -> ErrConferenceTitle -> ShowS
Show, (forall x. ErrConferenceTitle -> Rep ErrConferenceTitle x)
-> (forall x. Rep ErrConferenceTitle x -> ErrConferenceTitle)
-> Generic ErrConferenceTitle
forall x. Rep ErrConferenceTitle x -> ErrConferenceTitle
forall x. ErrConferenceTitle -> Rep ErrConferenceTitle x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrConferenceTitle x -> ErrConferenceTitle
$cfrom :: forall x. ErrConferenceTitle -> Rep ErrConferenceTitle x
Generic)
instance MessagePack ErrConferenceTitle
instance Arbitrary ErrConferenceTitle where arbitrary :: Gen ErrConferenceTitle
arbitrary = Gen ErrConferenceTitle
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_get_title_size :: ToxPtr -> Word32 -> CErr ErrConferenceTitle -> IO CSize
foreign import ccall tox_conference_get_title :: ToxPtr -> Word32 -> CString -> CErr ErrConferenceTitle -> IO Bool
foreign import ccall tox_conference_set_title :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrConferenceTitle -> IO Bool
foreign import ccall tox_conference_get_chatlist_size :: ToxPtr -> IO CSize
foreign import ccall tox_conference_get_chatlist :: ToxPtr -> Ptr Word32 -> IO ()
data ErrConferenceGetType
= ErrConferenceGetTypeConferenceNotFound
deriving (ErrConferenceGetType -> ErrConferenceGetType -> Bool
(ErrConferenceGetType -> ErrConferenceGetType -> Bool)
-> (ErrConferenceGetType -> ErrConferenceGetType -> Bool)
-> Eq ErrConferenceGetType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
$c/= :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
== :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
$c== :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
Eq, Eq ErrConferenceGetType
Eq ErrConferenceGetType
-> (ErrConferenceGetType -> ErrConferenceGetType -> Ordering)
-> (ErrConferenceGetType -> ErrConferenceGetType -> Bool)
-> (ErrConferenceGetType -> ErrConferenceGetType -> Bool)
-> (ErrConferenceGetType -> ErrConferenceGetType -> Bool)
-> (ErrConferenceGetType -> ErrConferenceGetType -> Bool)
-> (ErrConferenceGetType
-> ErrConferenceGetType -> ErrConferenceGetType)
-> (ErrConferenceGetType
-> ErrConferenceGetType -> ErrConferenceGetType)
-> Ord ErrConferenceGetType
ErrConferenceGetType -> ErrConferenceGetType -> Bool
ErrConferenceGetType -> ErrConferenceGetType -> Ordering
ErrConferenceGetType
-> ErrConferenceGetType -> ErrConferenceGetType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferenceGetType
-> ErrConferenceGetType -> ErrConferenceGetType
$cmin :: ErrConferenceGetType
-> ErrConferenceGetType -> ErrConferenceGetType
max :: ErrConferenceGetType
-> ErrConferenceGetType -> ErrConferenceGetType
$cmax :: ErrConferenceGetType
-> ErrConferenceGetType -> ErrConferenceGetType
>= :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
$c>= :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
> :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
$c> :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
<= :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
$c<= :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
< :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
$c< :: ErrConferenceGetType -> ErrConferenceGetType -> Bool
compare :: ErrConferenceGetType -> ErrConferenceGetType -> Ordering
$ccompare :: ErrConferenceGetType -> ErrConferenceGetType -> Ordering
$cp1Ord :: Eq ErrConferenceGetType
Ord, Int -> ErrConferenceGetType
ErrConferenceGetType -> Int
ErrConferenceGetType -> [ErrConferenceGetType]
ErrConferenceGetType -> ErrConferenceGetType
ErrConferenceGetType
-> ErrConferenceGetType -> [ErrConferenceGetType]
ErrConferenceGetType
-> ErrConferenceGetType
-> ErrConferenceGetType
-> [ErrConferenceGetType]
(ErrConferenceGetType -> ErrConferenceGetType)
-> (ErrConferenceGetType -> ErrConferenceGetType)
-> (Int -> ErrConferenceGetType)
-> (ErrConferenceGetType -> Int)
-> (ErrConferenceGetType -> [ErrConferenceGetType])
-> (ErrConferenceGetType
-> ErrConferenceGetType -> [ErrConferenceGetType])
-> (ErrConferenceGetType
-> ErrConferenceGetType -> [ErrConferenceGetType])
-> (ErrConferenceGetType
-> ErrConferenceGetType
-> ErrConferenceGetType
-> [ErrConferenceGetType])
-> Enum ErrConferenceGetType
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferenceGetType
-> ErrConferenceGetType
-> ErrConferenceGetType
-> [ErrConferenceGetType]
$cenumFromThenTo :: ErrConferenceGetType
-> ErrConferenceGetType
-> ErrConferenceGetType
-> [ErrConferenceGetType]
enumFromTo :: ErrConferenceGetType
-> ErrConferenceGetType -> [ErrConferenceGetType]
$cenumFromTo :: ErrConferenceGetType
-> ErrConferenceGetType -> [ErrConferenceGetType]
enumFromThen :: ErrConferenceGetType
-> ErrConferenceGetType -> [ErrConferenceGetType]
$cenumFromThen :: ErrConferenceGetType
-> ErrConferenceGetType -> [ErrConferenceGetType]
enumFrom :: ErrConferenceGetType -> [ErrConferenceGetType]
$cenumFrom :: ErrConferenceGetType -> [ErrConferenceGetType]
fromEnum :: ErrConferenceGetType -> Int
$cfromEnum :: ErrConferenceGetType -> Int
toEnum :: Int -> ErrConferenceGetType
$ctoEnum :: Int -> ErrConferenceGetType
pred :: ErrConferenceGetType -> ErrConferenceGetType
$cpred :: ErrConferenceGetType -> ErrConferenceGetType
succ :: ErrConferenceGetType -> ErrConferenceGetType
$csucc :: ErrConferenceGetType -> ErrConferenceGetType
Enum, ErrConferenceGetType
ErrConferenceGetType
-> ErrConferenceGetType -> Bounded ErrConferenceGetType
forall a. a -> a -> Bounded a
maxBound :: ErrConferenceGetType
$cmaxBound :: ErrConferenceGetType
minBound :: ErrConferenceGetType
$cminBound :: ErrConferenceGetType
Bounded, ReadPrec [ErrConferenceGetType]
ReadPrec ErrConferenceGetType
Int -> ReadS ErrConferenceGetType
ReadS [ErrConferenceGetType]
(Int -> ReadS ErrConferenceGetType)
-> ReadS [ErrConferenceGetType]
-> ReadPrec ErrConferenceGetType
-> ReadPrec [ErrConferenceGetType]
-> Read ErrConferenceGetType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferenceGetType]
$creadListPrec :: ReadPrec [ErrConferenceGetType]
readPrec :: ReadPrec ErrConferenceGetType
$creadPrec :: ReadPrec ErrConferenceGetType
readList :: ReadS [ErrConferenceGetType]
$creadList :: ReadS [ErrConferenceGetType]
readsPrec :: Int -> ReadS ErrConferenceGetType
$creadsPrec :: Int -> ReadS ErrConferenceGetType
Read, Int -> ErrConferenceGetType -> ShowS
[ErrConferenceGetType] -> ShowS
ErrConferenceGetType -> String
(Int -> ErrConferenceGetType -> ShowS)
-> (ErrConferenceGetType -> String)
-> ([ErrConferenceGetType] -> ShowS)
-> Show ErrConferenceGetType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferenceGetType] -> ShowS
$cshowList :: [ErrConferenceGetType] -> ShowS
show :: ErrConferenceGetType -> String
$cshow :: ErrConferenceGetType -> String
showsPrec :: Int -> ErrConferenceGetType -> ShowS
$cshowsPrec :: Int -> ErrConferenceGetType -> ShowS
Show, (forall x. ErrConferenceGetType -> Rep ErrConferenceGetType x)
-> (forall x. Rep ErrConferenceGetType x -> ErrConferenceGetType)
-> Generic ErrConferenceGetType
forall x. Rep ErrConferenceGetType x -> ErrConferenceGetType
forall x. ErrConferenceGetType -> Rep ErrConferenceGetType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrConferenceGetType x -> ErrConferenceGetType
$cfrom :: forall x. ErrConferenceGetType -> Rep ErrConferenceGetType x
Generic)
instance MessagePack ErrConferenceGetType
instance Arbitrary ErrConferenceGetType where arbitrary :: Gen ErrConferenceGetType
arbitrary = Gen ErrConferenceGetType
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_get_type :: ToxPtr -> Word32 -> CErr ErrConferenceGetType -> IO (CEnum ConferenceType)
foreign import ccall tox_conference_get_id :: ToxPtr -> Word32 -> CString -> IO Bool
data ErrConferenceById
= ErrConferenceByIdNull
| ErrConferenceByIdNotFound
deriving (ErrConferenceById -> ErrConferenceById -> Bool
(ErrConferenceById -> ErrConferenceById -> Bool)
-> (ErrConferenceById -> ErrConferenceById -> Bool)
-> Eq ErrConferenceById
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferenceById -> ErrConferenceById -> Bool
$c/= :: ErrConferenceById -> ErrConferenceById -> Bool
== :: ErrConferenceById -> ErrConferenceById -> Bool
$c== :: ErrConferenceById -> ErrConferenceById -> Bool
Eq, Eq ErrConferenceById
Eq ErrConferenceById
-> (ErrConferenceById -> ErrConferenceById -> Ordering)
-> (ErrConferenceById -> ErrConferenceById -> Bool)
-> (ErrConferenceById -> ErrConferenceById -> Bool)
-> (ErrConferenceById -> ErrConferenceById -> Bool)
-> (ErrConferenceById -> ErrConferenceById -> Bool)
-> (ErrConferenceById -> ErrConferenceById -> ErrConferenceById)
-> (ErrConferenceById -> ErrConferenceById -> ErrConferenceById)
-> Ord ErrConferenceById
ErrConferenceById -> ErrConferenceById -> Bool
ErrConferenceById -> ErrConferenceById -> Ordering
ErrConferenceById -> ErrConferenceById -> ErrConferenceById
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferenceById -> ErrConferenceById -> ErrConferenceById
$cmin :: ErrConferenceById -> ErrConferenceById -> ErrConferenceById
max :: ErrConferenceById -> ErrConferenceById -> ErrConferenceById
$cmax :: ErrConferenceById -> ErrConferenceById -> ErrConferenceById
>= :: ErrConferenceById -> ErrConferenceById -> Bool
$c>= :: ErrConferenceById -> ErrConferenceById -> Bool
> :: ErrConferenceById -> ErrConferenceById -> Bool
$c> :: ErrConferenceById -> ErrConferenceById -> Bool
<= :: ErrConferenceById -> ErrConferenceById -> Bool
$c<= :: ErrConferenceById -> ErrConferenceById -> Bool
< :: ErrConferenceById -> ErrConferenceById -> Bool
$c< :: ErrConferenceById -> ErrConferenceById -> Bool
compare :: ErrConferenceById -> ErrConferenceById -> Ordering
$ccompare :: ErrConferenceById -> ErrConferenceById -> Ordering
$cp1Ord :: Eq ErrConferenceById
Ord, Int -> ErrConferenceById
ErrConferenceById -> Int
ErrConferenceById -> [ErrConferenceById]
ErrConferenceById -> ErrConferenceById
ErrConferenceById -> ErrConferenceById -> [ErrConferenceById]
ErrConferenceById
-> ErrConferenceById -> ErrConferenceById -> [ErrConferenceById]
(ErrConferenceById -> ErrConferenceById)
-> (ErrConferenceById -> ErrConferenceById)
-> (Int -> ErrConferenceById)
-> (ErrConferenceById -> Int)
-> (ErrConferenceById -> [ErrConferenceById])
-> (ErrConferenceById -> ErrConferenceById -> [ErrConferenceById])
-> (ErrConferenceById -> ErrConferenceById -> [ErrConferenceById])
-> (ErrConferenceById
-> ErrConferenceById -> ErrConferenceById -> [ErrConferenceById])
-> Enum ErrConferenceById
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferenceById
-> ErrConferenceById -> ErrConferenceById -> [ErrConferenceById]
$cenumFromThenTo :: ErrConferenceById
-> ErrConferenceById -> ErrConferenceById -> [ErrConferenceById]
enumFromTo :: ErrConferenceById -> ErrConferenceById -> [ErrConferenceById]
$cenumFromTo :: ErrConferenceById -> ErrConferenceById -> [ErrConferenceById]
enumFromThen :: ErrConferenceById -> ErrConferenceById -> [ErrConferenceById]
$cenumFromThen :: ErrConferenceById -> ErrConferenceById -> [ErrConferenceById]
enumFrom :: ErrConferenceById -> [ErrConferenceById]
$cenumFrom :: ErrConferenceById -> [ErrConferenceById]
fromEnum :: ErrConferenceById -> Int
$cfromEnum :: ErrConferenceById -> Int
toEnum :: Int -> ErrConferenceById
$ctoEnum :: Int -> ErrConferenceById
pred :: ErrConferenceById -> ErrConferenceById
$cpred :: ErrConferenceById -> ErrConferenceById
succ :: ErrConferenceById -> ErrConferenceById
$csucc :: ErrConferenceById -> ErrConferenceById
Enum, ErrConferenceById
ErrConferenceById -> ErrConferenceById -> Bounded ErrConferenceById
forall a. a -> a -> Bounded a
maxBound :: ErrConferenceById
$cmaxBound :: ErrConferenceById
minBound :: ErrConferenceById
$cminBound :: ErrConferenceById
Bounded, ReadPrec [ErrConferenceById]
ReadPrec ErrConferenceById
Int -> ReadS ErrConferenceById
ReadS [ErrConferenceById]
(Int -> ReadS ErrConferenceById)
-> ReadS [ErrConferenceById]
-> ReadPrec ErrConferenceById
-> ReadPrec [ErrConferenceById]
-> Read ErrConferenceById
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferenceById]
$creadListPrec :: ReadPrec [ErrConferenceById]
readPrec :: ReadPrec ErrConferenceById
$creadPrec :: ReadPrec ErrConferenceById
readList :: ReadS [ErrConferenceById]
$creadList :: ReadS [ErrConferenceById]
readsPrec :: Int -> ReadS ErrConferenceById
$creadsPrec :: Int -> ReadS ErrConferenceById
Read, Int -> ErrConferenceById -> ShowS
[ErrConferenceById] -> ShowS
ErrConferenceById -> String
(Int -> ErrConferenceById -> ShowS)
-> (ErrConferenceById -> String)
-> ([ErrConferenceById] -> ShowS)
-> Show ErrConferenceById
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferenceById] -> ShowS
$cshowList :: [ErrConferenceById] -> ShowS
show :: ErrConferenceById -> String
$cshow :: ErrConferenceById -> String
showsPrec :: Int -> ErrConferenceById -> ShowS
$cshowsPrec :: Int -> ErrConferenceById -> ShowS
Show, (forall x. ErrConferenceById -> Rep ErrConferenceById x)
-> (forall x. Rep ErrConferenceById x -> ErrConferenceById)
-> Generic ErrConferenceById
forall x. Rep ErrConferenceById x -> ErrConferenceById
forall x. ErrConferenceById -> Rep ErrConferenceById x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrConferenceById x -> ErrConferenceById
$cfrom :: forall x. ErrConferenceById -> Rep ErrConferenceById x
Generic)
instance MessagePack ErrConferenceById
instance Arbitrary ErrConferenceById where arbitrary :: Gen ErrConferenceById
arbitrary = Gen ErrConferenceById
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_by_id :: ToxPtr -> CString -> CErr ErrConferenceById -> IO Word32
foreign import ccall tox_conference_get_uid :: ToxPtr -> Word32 -> CString -> IO Bool
data ErrConferenceByUid
= ErrConferenceByUidNull
| ErrConferenceByUidNotFound
deriving (ErrConferenceByUid -> ErrConferenceByUid -> Bool
(ErrConferenceByUid -> ErrConferenceByUid -> Bool)
-> (ErrConferenceByUid -> ErrConferenceByUid -> Bool)
-> Eq ErrConferenceByUid
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
$c/= :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
== :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
$c== :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
Eq, Eq ErrConferenceByUid
Eq ErrConferenceByUid
-> (ErrConferenceByUid -> ErrConferenceByUid -> Ordering)
-> (ErrConferenceByUid -> ErrConferenceByUid -> Bool)
-> (ErrConferenceByUid -> ErrConferenceByUid -> Bool)
-> (ErrConferenceByUid -> ErrConferenceByUid -> Bool)
-> (ErrConferenceByUid -> ErrConferenceByUid -> Bool)
-> (ErrConferenceByUid -> ErrConferenceByUid -> ErrConferenceByUid)
-> (ErrConferenceByUid -> ErrConferenceByUid -> ErrConferenceByUid)
-> Ord ErrConferenceByUid
ErrConferenceByUid -> ErrConferenceByUid -> Bool
ErrConferenceByUid -> ErrConferenceByUid -> Ordering
ErrConferenceByUid -> ErrConferenceByUid -> ErrConferenceByUid
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrConferenceByUid -> ErrConferenceByUid -> ErrConferenceByUid
$cmin :: ErrConferenceByUid -> ErrConferenceByUid -> ErrConferenceByUid
max :: ErrConferenceByUid -> ErrConferenceByUid -> ErrConferenceByUid
$cmax :: ErrConferenceByUid -> ErrConferenceByUid -> ErrConferenceByUid
>= :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
$c>= :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
> :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
$c> :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
<= :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
$c<= :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
< :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
$c< :: ErrConferenceByUid -> ErrConferenceByUid -> Bool
compare :: ErrConferenceByUid -> ErrConferenceByUid -> Ordering
$ccompare :: ErrConferenceByUid -> ErrConferenceByUid -> Ordering
$cp1Ord :: Eq ErrConferenceByUid
Ord, Int -> ErrConferenceByUid
ErrConferenceByUid -> Int
ErrConferenceByUid -> [ErrConferenceByUid]
ErrConferenceByUid -> ErrConferenceByUid
ErrConferenceByUid -> ErrConferenceByUid -> [ErrConferenceByUid]
ErrConferenceByUid
-> ErrConferenceByUid -> ErrConferenceByUid -> [ErrConferenceByUid]
(ErrConferenceByUid -> ErrConferenceByUid)
-> (ErrConferenceByUid -> ErrConferenceByUid)
-> (Int -> ErrConferenceByUid)
-> (ErrConferenceByUid -> Int)
-> (ErrConferenceByUid -> [ErrConferenceByUid])
-> (ErrConferenceByUid
-> ErrConferenceByUid -> [ErrConferenceByUid])
-> (ErrConferenceByUid
-> ErrConferenceByUid -> [ErrConferenceByUid])
-> (ErrConferenceByUid
-> ErrConferenceByUid
-> ErrConferenceByUid
-> [ErrConferenceByUid])
-> Enum ErrConferenceByUid
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrConferenceByUid
-> ErrConferenceByUid -> ErrConferenceByUid -> [ErrConferenceByUid]
$cenumFromThenTo :: ErrConferenceByUid
-> ErrConferenceByUid -> ErrConferenceByUid -> [ErrConferenceByUid]
enumFromTo :: ErrConferenceByUid -> ErrConferenceByUid -> [ErrConferenceByUid]
$cenumFromTo :: ErrConferenceByUid -> ErrConferenceByUid -> [ErrConferenceByUid]
enumFromThen :: ErrConferenceByUid -> ErrConferenceByUid -> [ErrConferenceByUid]
$cenumFromThen :: ErrConferenceByUid -> ErrConferenceByUid -> [ErrConferenceByUid]
enumFrom :: ErrConferenceByUid -> [ErrConferenceByUid]
$cenumFrom :: ErrConferenceByUid -> [ErrConferenceByUid]
fromEnum :: ErrConferenceByUid -> Int
$cfromEnum :: ErrConferenceByUid -> Int
toEnum :: Int -> ErrConferenceByUid
$ctoEnum :: Int -> ErrConferenceByUid
pred :: ErrConferenceByUid -> ErrConferenceByUid
$cpred :: ErrConferenceByUid -> ErrConferenceByUid
succ :: ErrConferenceByUid -> ErrConferenceByUid
$csucc :: ErrConferenceByUid -> ErrConferenceByUid
Enum, ErrConferenceByUid
ErrConferenceByUid
-> ErrConferenceByUid -> Bounded ErrConferenceByUid
forall a. a -> a -> Bounded a
maxBound :: ErrConferenceByUid
$cmaxBound :: ErrConferenceByUid
minBound :: ErrConferenceByUid
$cminBound :: ErrConferenceByUid
Bounded, ReadPrec [ErrConferenceByUid]
ReadPrec ErrConferenceByUid
Int -> ReadS ErrConferenceByUid
ReadS [ErrConferenceByUid]
(Int -> ReadS ErrConferenceByUid)
-> ReadS [ErrConferenceByUid]
-> ReadPrec ErrConferenceByUid
-> ReadPrec [ErrConferenceByUid]
-> Read ErrConferenceByUid
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrConferenceByUid]
$creadListPrec :: ReadPrec [ErrConferenceByUid]
readPrec :: ReadPrec ErrConferenceByUid
$creadPrec :: ReadPrec ErrConferenceByUid
readList :: ReadS [ErrConferenceByUid]
$creadList :: ReadS [ErrConferenceByUid]
readsPrec :: Int -> ReadS ErrConferenceByUid
$creadsPrec :: Int -> ReadS ErrConferenceByUid
Read, Int -> ErrConferenceByUid -> ShowS
[ErrConferenceByUid] -> ShowS
ErrConferenceByUid -> String
(Int -> ErrConferenceByUid -> ShowS)
-> (ErrConferenceByUid -> String)
-> ([ErrConferenceByUid] -> ShowS)
-> Show ErrConferenceByUid
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrConferenceByUid] -> ShowS
$cshowList :: [ErrConferenceByUid] -> ShowS
show :: ErrConferenceByUid -> String
$cshow :: ErrConferenceByUid -> String
showsPrec :: Int -> ErrConferenceByUid -> ShowS
$cshowsPrec :: Int -> ErrConferenceByUid -> ShowS
Show, (forall x. ErrConferenceByUid -> Rep ErrConferenceByUid x)
-> (forall x. Rep ErrConferenceByUid x -> ErrConferenceByUid)
-> Generic ErrConferenceByUid
forall x. Rep ErrConferenceByUid x -> ErrConferenceByUid
forall x. ErrConferenceByUid -> Rep ErrConferenceByUid x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrConferenceByUid x -> ErrConferenceByUid
$cfrom :: forall x. ErrConferenceByUid -> Rep ErrConferenceByUid x
Generic)
instance MessagePack ErrConferenceByUid
instance Arbitrary ErrConferenceByUid where arbitrary :: Gen ErrConferenceByUid
arbitrary = Gen ErrConferenceByUid
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_conference_by_uid :: ToxPtr -> CString -> CErr ErrConferenceByUid -> IO Word32
data ErrFriendCustomPacket
= ErrFriendCustomPacketNull
| ErrFriendCustomPacketFriendNotFound
| ErrFriendCustomPacketFriendNotConnected
| ErrFriendCustomPacketInvalid
| ErrFriendCustomPacketEmpty
| ErrFriendCustomPacketTooLong
| ErrFriendCustomPacketSendq
deriving (ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
(ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool)
-> (ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool)
-> Eq ErrFriendCustomPacket
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
$c/= :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
== :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
$c== :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
Eq, Eq ErrFriendCustomPacket
Eq ErrFriendCustomPacket
-> (ErrFriendCustomPacket -> ErrFriendCustomPacket -> Ordering)
-> (ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool)
-> (ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool)
-> (ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool)
-> (ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool)
-> (ErrFriendCustomPacket
-> ErrFriendCustomPacket -> ErrFriendCustomPacket)
-> (ErrFriendCustomPacket
-> ErrFriendCustomPacket -> ErrFriendCustomPacket)
-> Ord ErrFriendCustomPacket
ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
ErrFriendCustomPacket -> ErrFriendCustomPacket -> Ordering
ErrFriendCustomPacket
-> ErrFriendCustomPacket -> ErrFriendCustomPacket
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrFriendCustomPacket
-> ErrFriendCustomPacket -> ErrFriendCustomPacket
$cmin :: ErrFriendCustomPacket
-> ErrFriendCustomPacket -> ErrFriendCustomPacket
max :: ErrFriendCustomPacket
-> ErrFriendCustomPacket -> ErrFriendCustomPacket
$cmax :: ErrFriendCustomPacket
-> ErrFriendCustomPacket -> ErrFriendCustomPacket
>= :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
$c>= :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
> :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
$c> :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
<= :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
$c<= :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
< :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
$c< :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Bool
compare :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Ordering
$ccompare :: ErrFriendCustomPacket -> ErrFriendCustomPacket -> Ordering
$cp1Ord :: Eq ErrFriendCustomPacket
Ord, Int -> ErrFriendCustomPacket
ErrFriendCustomPacket -> Int
ErrFriendCustomPacket -> [ErrFriendCustomPacket]
ErrFriendCustomPacket -> ErrFriendCustomPacket
ErrFriendCustomPacket
-> ErrFriendCustomPacket -> [ErrFriendCustomPacket]
ErrFriendCustomPacket
-> ErrFriendCustomPacket
-> ErrFriendCustomPacket
-> [ErrFriendCustomPacket]
(ErrFriendCustomPacket -> ErrFriendCustomPacket)
-> (ErrFriendCustomPacket -> ErrFriendCustomPacket)
-> (Int -> ErrFriendCustomPacket)
-> (ErrFriendCustomPacket -> Int)
-> (ErrFriendCustomPacket -> [ErrFriendCustomPacket])
-> (ErrFriendCustomPacket
-> ErrFriendCustomPacket -> [ErrFriendCustomPacket])
-> (ErrFriendCustomPacket
-> ErrFriendCustomPacket -> [ErrFriendCustomPacket])
-> (ErrFriendCustomPacket
-> ErrFriendCustomPacket
-> ErrFriendCustomPacket
-> [ErrFriendCustomPacket])
-> Enum ErrFriendCustomPacket
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrFriendCustomPacket
-> ErrFriendCustomPacket
-> ErrFriendCustomPacket
-> [ErrFriendCustomPacket]
$cenumFromThenTo :: ErrFriendCustomPacket
-> ErrFriendCustomPacket
-> ErrFriendCustomPacket
-> [ErrFriendCustomPacket]
enumFromTo :: ErrFriendCustomPacket
-> ErrFriendCustomPacket -> [ErrFriendCustomPacket]
$cenumFromTo :: ErrFriendCustomPacket
-> ErrFriendCustomPacket -> [ErrFriendCustomPacket]
enumFromThen :: ErrFriendCustomPacket
-> ErrFriendCustomPacket -> [ErrFriendCustomPacket]
$cenumFromThen :: ErrFriendCustomPacket
-> ErrFriendCustomPacket -> [ErrFriendCustomPacket]
enumFrom :: ErrFriendCustomPacket -> [ErrFriendCustomPacket]
$cenumFrom :: ErrFriendCustomPacket -> [ErrFriendCustomPacket]
fromEnum :: ErrFriendCustomPacket -> Int
$cfromEnum :: ErrFriendCustomPacket -> Int
toEnum :: Int -> ErrFriendCustomPacket
$ctoEnum :: Int -> ErrFriendCustomPacket
pred :: ErrFriendCustomPacket -> ErrFriendCustomPacket
$cpred :: ErrFriendCustomPacket -> ErrFriendCustomPacket
succ :: ErrFriendCustomPacket -> ErrFriendCustomPacket
$csucc :: ErrFriendCustomPacket -> ErrFriendCustomPacket
Enum, ErrFriendCustomPacket
ErrFriendCustomPacket
-> ErrFriendCustomPacket -> Bounded ErrFriendCustomPacket
forall a. a -> a -> Bounded a
maxBound :: ErrFriendCustomPacket
$cmaxBound :: ErrFriendCustomPacket
minBound :: ErrFriendCustomPacket
$cminBound :: ErrFriendCustomPacket
Bounded, ReadPrec [ErrFriendCustomPacket]
ReadPrec ErrFriendCustomPacket
Int -> ReadS ErrFriendCustomPacket
ReadS [ErrFriendCustomPacket]
(Int -> ReadS ErrFriendCustomPacket)
-> ReadS [ErrFriendCustomPacket]
-> ReadPrec ErrFriendCustomPacket
-> ReadPrec [ErrFriendCustomPacket]
-> Read ErrFriendCustomPacket
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrFriendCustomPacket]
$creadListPrec :: ReadPrec [ErrFriendCustomPacket]
readPrec :: ReadPrec ErrFriendCustomPacket
$creadPrec :: ReadPrec ErrFriendCustomPacket
readList :: ReadS [ErrFriendCustomPacket]
$creadList :: ReadS [ErrFriendCustomPacket]
readsPrec :: Int -> ReadS ErrFriendCustomPacket
$creadsPrec :: Int -> ReadS ErrFriendCustomPacket
Read, Int -> ErrFriendCustomPacket -> ShowS
[ErrFriendCustomPacket] -> ShowS
ErrFriendCustomPacket -> String
(Int -> ErrFriendCustomPacket -> ShowS)
-> (ErrFriendCustomPacket -> String)
-> ([ErrFriendCustomPacket] -> ShowS)
-> Show ErrFriendCustomPacket
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrFriendCustomPacket] -> ShowS
$cshowList :: [ErrFriendCustomPacket] -> ShowS
show :: ErrFriendCustomPacket -> String
$cshow :: ErrFriendCustomPacket -> String
showsPrec :: Int -> ErrFriendCustomPacket -> ShowS
$cshowsPrec :: Int -> ErrFriendCustomPacket -> ShowS
Show, (forall x. ErrFriendCustomPacket -> Rep ErrFriendCustomPacket x)
-> (forall x. Rep ErrFriendCustomPacket x -> ErrFriendCustomPacket)
-> Generic ErrFriendCustomPacket
forall x. Rep ErrFriendCustomPacket x -> ErrFriendCustomPacket
forall x. ErrFriendCustomPacket -> Rep ErrFriendCustomPacket x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrFriendCustomPacket x -> ErrFriendCustomPacket
$cfrom :: forall x. ErrFriendCustomPacket -> Rep ErrFriendCustomPacket x
Generic)
instance MessagePack ErrFriendCustomPacket
instance Arbitrary ErrFriendCustomPacket where arbitrary :: Gen ErrFriendCustomPacket
arbitrary = Gen ErrFriendCustomPacket
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_friend_send_lossy_packet :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrFriendCustomPacket -> IO Bool
foreign import ccall tox_friend_send_lossless_packet :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrFriendCustomPacket -> IO Bool
type FriendLossyPacketCb = ToxPtr -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFriendLossyPacketCb :: FriendLossyPacketCb -> IO (FunPtr FriendLossyPacketCb)
foreign import ccall tox_callback_friend_lossy_packet :: ToxPtr -> FunPtr FriendLossyPacketCb -> IO ()
type FriendLosslessPacketCb = ToxPtr -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapFriendLosslessPacketCb :: FriendLosslessPacketCb -> IO (FunPtr FriendLosslessPacketCb)
foreign import ccall tox_callback_friend_lossless_packet :: ToxPtr -> FunPtr FriendLosslessPacketCb -> IO ()
data ErrGetPort
= ErrGetPortNotBound
deriving (ErrGetPort -> ErrGetPort -> Bool
(ErrGetPort -> ErrGetPort -> Bool)
-> (ErrGetPort -> ErrGetPort -> Bool) -> Eq ErrGetPort
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGetPort -> ErrGetPort -> Bool
$c/= :: ErrGetPort -> ErrGetPort -> Bool
== :: ErrGetPort -> ErrGetPort -> Bool
$c== :: ErrGetPort -> ErrGetPort -> Bool
Eq, Eq ErrGetPort
Eq ErrGetPort
-> (ErrGetPort -> ErrGetPort -> Ordering)
-> (ErrGetPort -> ErrGetPort -> Bool)
-> (ErrGetPort -> ErrGetPort -> Bool)
-> (ErrGetPort -> ErrGetPort -> Bool)
-> (ErrGetPort -> ErrGetPort -> Bool)
-> (ErrGetPort -> ErrGetPort -> ErrGetPort)
-> (ErrGetPort -> ErrGetPort -> ErrGetPort)
-> Ord ErrGetPort
ErrGetPort -> ErrGetPort -> Bool
ErrGetPort -> ErrGetPort -> Ordering
ErrGetPort -> ErrGetPort -> ErrGetPort
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGetPort -> ErrGetPort -> ErrGetPort
$cmin :: ErrGetPort -> ErrGetPort -> ErrGetPort
max :: ErrGetPort -> ErrGetPort -> ErrGetPort
$cmax :: ErrGetPort -> ErrGetPort -> ErrGetPort
>= :: ErrGetPort -> ErrGetPort -> Bool
$c>= :: ErrGetPort -> ErrGetPort -> Bool
> :: ErrGetPort -> ErrGetPort -> Bool
$c> :: ErrGetPort -> ErrGetPort -> Bool
<= :: ErrGetPort -> ErrGetPort -> Bool
$c<= :: ErrGetPort -> ErrGetPort -> Bool
< :: ErrGetPort -> ErrGetPort -> Bool
$c< :: ErrGetPort -> ErrGetPort -> Bool
compare :: ErrGetPort -> ErrGetPort -> Ordering
$ccompare :: ErrGetPort -> ErrGetPort -> Ordering
$cp1Ord :: Eq ErrGetPort
Ord, Int -> ErrGetPort
ErrGetPort -> Int
ErrGetPort -> [ErrGetPort]
ErrGetPort -> ErrGetPort
ErrGetPort -> ErrGetPort -> [ErrGetPort]
ErrGetPort -> ErrGetPort -> ErrGetPort -> [ErrGetPort]
(ErrGetPort -> ErrGetPort)
-> (ErrGetPort -> ErrGetPort)
-> (Int -> ErrGetPort)
-> (ErrGetPort -> Int)
-> (ErrGetPort -> [ErrGetPort])
-> (ErrGetPort -> ErrGetPort -> [ErrGetPort])
-> (ErrGetPort -> ErrGetPort -> [ErrGetPort])
-> (ErrGetPort -> ErrGetPort -> ErrGetPort -> [ErrGetPort])
-> Enum ErrGetPort
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGetPort -> ErrGetPort -> ErrGetPort -> [ErrGetPort]
$cenumFromThenTo :: ErrGetPort -> ErrGetPort -> ErrGetPort -> [ErrGetPort]
enumFromTo :: ErrGetPort -> ErrGetPort -> [ErrGetPort]
$cenumFromTo :: ErrGetPort -> ErrGetPort -> [ErrGetPort]
enumFromThen :: ErrGetPort -> ErrGetPort -> [ErrGetPort]
$cenumFromThen :: ErrGetPort -> ErrGetPort -> [ErrGetPort]
enumFrom :: ErrGetPort -> [ErrGetPort]
$cenumFrom :: ErrGetPort -> [ErrGetPort]
fromEnum :: ErrGetPort -> Int
$cfromEnum :: ErrGetPort -> Int
toEnum :: Int -> ErrGetPort
$ctoEnum :: Int -> ErrGetPort
pred :: ErrGetPort -> ErrGetPort
$cpred :: ErrGetPort -> ErrGetPort
succ :: ErrGetPort -> ErrGetPort
$csucc :: ErrGetPort -> ErrGetPort
Enum, ErrGetPort
ErrGetPort -> ErrGetPort -> Bounded ErrGetPort
forall a. a -> a -> Bounded a
maxBound :: ErrGetPort
$cmaxBound :: ErrGetPort
minBound :: ErrGetPort
$cminBound :: ErrGetPort
Bounded, ReadPrec [ErrGetPort]
ReadPrec ErrGetPort
Int -> ReadS ErrGetPort
ReadS [ErrGetPort]
(Int -> ReadS ErrGetPort)
-> ReadS [ErrGetPort]
-> ReadPrec ErrGetPort
-> ReadPrec [ErrGetPort]
-> Read ErrGetPort
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGetPort]
$creadListPrec :: ReadPrec [ErrGetPort]
readPrec :: ReadPrec ErrGetPort
$creadPrec :: ReadPrec ErrGetPort
readList :: ReadS [ErrGetPort]
$creadList :: ReadS [ErrGetPort]
readsPrec :: Int -> ReadS ErrGetPort
$creadsPrec :: Int -> ReadS ErrGetPort
Read, Int -> ErrGetPort -> ShowS
[ErrGetPort] -> ShowS
ErrGetPort -> String
(Int -> ErrGetPort -> ShowS)
-> (ErrGetPort -> String)
-> ([ErrGetPort] -> ShowS)
-> Show ErrGetPort
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGetPort] -> ShowS
$cshowList :: [ErrGetPort] -> ShowS
show :: ErrGetPort -> String
$cshow :: ErrGetPort -> String
showsPrec :: Int -> ErrGetPort -> ShowS
$cshowsPrec :: Int -> ErrGetPort -> ShowS
Show, (forall x. ErrGetPort -> Rep ErrGetPort x)
-> (forall x. Rep ErrGetPort x -> ErrGetPort) -> Generic ErrGetPort
forall x. Rep ErrGetPort x -> ErrGetPort
forall x. ErrGetPort -> Rep ErrGetPort x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGetPort x -> ErrGetPort
$cfrom :: forall x. ErrGetPort -> Rep ErrGetPort x
Generic)
instance MessagePack ErrGetPort
instance Arbitrary ErrGetPort where arbitrary :: Gen ErrGetPort
arbitrary = Gen ErrGetPort
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_self_get_dht_id :: ToxPtr -> CString -> IO ()
foreign import ccall tox_self_get_udp_port :: ToxPtr -> CErr ErrGetPort -> IO Word16
foreign import ccall tox_self_get_tcp_port :: ToxPtr -> CErr ErrGetPort -> IO Word16
foreign import ccall tox_group_max_topic_length :: Word32
foreign import ccall tox_group_max_part_length :: Word32
foreign import ccall tox_group_max_message_length :: Word32
foreign import ccall tox_group_max_custom_lossy_packet_length :: Word32
foreign import ccall tox_group_max_custom_lossless_packet_length :: Word32
foreign import ccall tox_group_max_group_name_length :: Word32
foreign import ccall tox_group_max_password_size :: Word32
foreign import ccall tox_group_chat_id_size :: Word32
foreign import ccall tox_group_peer_public_key_size :: Word32
data GroupPrivacyState
= GroupPrivacyStatePublic
| GroupPrivacyStatePrivate
deriving (GroupPrivacyState -> GroupPrivacyState -> Bool
(GroupPrivacyState -> GroupPrivacyState -> Bool)
-> (GroupPrivacyState -> GroupPrivacyState -> Bool)
-> Eq GroupPrivacyState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GroupPrivacyState -> GroupPrivacyState -> Bool
$c/= :: GroupPrivacyState -> GroupPrivacyState -> Bool
== :: GroupPrivacyState -> GroupPrivacyState -> Bool
$c== :: GroupPrivacyState -> GroupPrivacyState -> Bool
Eq, Eq GroupPrivacyState
Eq GroupPrivacyState
-> (GroupPrivacyState -> GroupPrivacyState -> Ordering)
-> (GroupPrivacyState -> GroupPrivacyState -> Bool)
-> (GroupPrivacyState -> GroupPrivacyState -> Bool)
-> (GroupPrivacyState -> GroupPrivacyState -> Bool)
-> (GroupPrivacyState -> GroupPrivacyState -> Bool)
-> (GroupPrivacyState -> GroupPrivacyState -> GroupPrivacyState)
-> (GroupPrivacyState -> GroupPrivacyState -> GroupPrivacyState)
-> Ord GroupPrivacyState
GroupPrivacyState -> GroupPrivacyState -> Bool
GroupPrivacyState -> GroupPrivacyState -> Ordering
GroupPrivacyState -> GroupPrivacyState -> GroupPrivacyState
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: GroupPrivacyState -> GroupPrivacyState -> GroupPrivacyState
$cmin :: GroupPrivacyState -> GroupPrivacyState -> GroupPrivacyState
max :: GroupPrivacyState -> GroupPrivacyState -> GroupPrivacyState
$cmax :: GroupPrivacyState -> GroupPrivacyState -> GroupPrivacyState
>= :: GroupPrivacyState -> GroupPrivacyState -> Bool
$c>= :: GroupPrivacyState -> GroupPrivacyState -> Bool
> :: GroupPrivacyState -> GroupPrivacyState -> Bool
$c> :: GroupPrivacyState -> GroupPrivacyState -> Bool
<= :: GroupPrivacyState -> GroupPrivacyState -> Bool
$c<= :: GroupPrivacyState -> GroupPrivacyState -> Bool
< :: GroupPrivacyState -> GroupPrivacyState -> Bool
$c< :: GroupPrivacyState -> GroupPrivacyState -> Bool
compare :: GroupPrivacyState -> GroupPrivacyState -> Ordering
$ccompare :: GroupPrivacyState -> GroupPrivacyState -> Ordering
$cp1Ord :: Eq GroupPrivacyState
Ord, Int -> GroupPrivacyState
GroupPrivacyState -> Int
GroupPrivacyState -> [GroupPrivacyState]
GroupPrivacyState -> GroupPrivacyState
GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState]
GroupPrivacyState
-> GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState]
(GroupPrivacyState -> GroupPrivacyState)
-> (GroupPrivacyState -> GroupPrivacyState)
-> (Int -> GroupPrivacyState)
-> (GroupPrivacyState -> Int)
-> (GroupPrivacyState -> [GroupPrivacyState])
-> (GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState])
-> (GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState])
-> (GroupPrivacyState
-> GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState])
-> Enum GroupPrivacyState
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: GroupPrivacyState
-> GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState]
$cenumFromThenTo :: GroupPrivacyState
-> GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState]
enumFromTo :: GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState]
$cenumFromTo :: GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState]
enumFromThen :: GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState]
$cenumFromThen :: GroupPrivacyState -> GroupPrivacyState -> [GroupPrivacyState]
enumFrom :: GroupPrivacyState -> [GroupPrivacyState]
$cenumFrom :: GroupPrivacyState -> [GroupPrivacyState]
fromEnum :: GroupPrivacyState -> Int
$cfromEnum :: GroupPrivacyState -> Int
toEnum :: Int -> GroupPrivacyState
$ctoEnum :: Int -> GroupPrivacyState
pred :: GroupPrivacyState -> GroupPrivacyState
$cpred :: GroupPrivacyState -> GroupPrivacyState
succ :: GroupPrivacyState -> GroupPrivacyState
$csucc :: GroupPrivacyState -> GroupPrivacyState
Enum, GroupPrivacyState
GroupPrivacyState -> GroupPrivacyState -> Bounded GroupPrivacyState
forall a. a -> a -> Bounded a
maxBound :: GroupPrivacyState
$cmaxBound :: GroupPrivacyState
minBound :: GroupPrivacyState
$cminBound :: GroupPrivacyState
Bounded, ReadPrec [GroupPrivacyState]
ReadPrec GroupPrivacyState
Int -> ReadS GroupPrivacyState
ReadS [GroupPrivacyState]
(Int -> ReadS GroupPrivacyState)
-> ReadS [GroupPrivacyState]
-> ReadPrec GroupPrivacyState
-> ReadPrec [GroupPrivacyState]
-> Read GroupPrivacyState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GroupPrivacyState]
$creadListPrec :: ReadPrec [GroupPrivacyState]
readPrec :: ReadPrec GroupPrivacyState
$creadPrec :: ReadPrec GroupPrivacyState
readList :: ReadS [GroupPrivacyState]
$creadList :: ReadS [GroupPrivacyState]
readsPrec :: Int -> ReadS GroupPrivacyState
$creadsPrec :: Int -> ReadS GroupPrivacyState
Read, Int -> GroupPrivacyState -> ShowS
[GroupPrivacyState] -> ShowS
GroupPrivacyState -> String
(Int -> GroupPrivacyState -> ShowS)
-> (GroupPrivacyState -> String)
-> ([GroupPrivacyState] -> ShowS)
-> Show GroupPrivacyState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GroupPrivacyState] -> ShowS
$cshowList :: [GroupPrivacyState] -> ShowS
show :: GroupPrivacyState -> String
$cshow :: GroupPrivacyState -> String
showsPrec :: Int -> GroupPrivacyState -> ShowS
$cshowsPrec :: Int -> GroupPrivacyState -> ShowS
Show, (forall x. GroupPrivacyState -> Rep GroupPrivacyState x)
-> (forall x. Rep GroupPrivacyState x -> GroupPrivacyState)
-> Generic GroupPrivacyState
forall x. Rep GroupPrivacyState x -> GroupPrivacyState
forall x. GroupPrivacyState -> Rep GroupPrivacyState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GroupPrivacyState x -> GroupPrivacyState
$cfrom :: forall x. GroupPrivacyState -> Rep GroupPrivacyState x
Generic)
instance MessagePack GroupPrivacyState
instance Arbitrary GroupPrivacyState where arbitrary :: Gen GroupPrivacyState
arbitrary = Gen GroupPrivacyState
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data GroupTopicLock
= GroupTopicLockEnabled
| GroupTopicLockDisabled
deriving (GroupTopicLock -> GroupTopicLock -> Bool
(GroupTopicLock -> GroupTopicLock -> Bool)
-> (GroupTopicLock -> GroupTopicLock -> Bool) -> Eq GroupTopicLock
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GroupTopicLock -> GroupTopicLock -> Bool
$c/= :: GroupTopicLock -> GroupTopicLock -> Bool
== :: GroupTopicLock -> GroupTopicLock -> Bool
$c== :: GroupTopicLock -> GroupTopicLock -> Bool
Eq, Eq GroupTopicLock
Eq GroupTopicLock
-> (GroupTopicLock -> GroupTopicLock -> Ordering)
-> (GroupTopicLock -> GroupTopicLock -> Bool)
-> (GroupTopicLock -> GroupTopicLock -> Bool)
-> (GroupTopicLock -> GroupTopicLock -> Bool)
-> (GroupTopicLock -> GroupTopicLock -> Bool)
-> (GroupTopicLock -> GroupTopicLock -> GroupTopicLock)
-> (GroupTopicLock -> GroupTopicLock -> GroupTopicLock)
-> Ord GroupTopicLock
GroupTopicLock -> GroupTopicLock -> Bool
GroupTopicLock -> GroupTopicLock -> Ordering
GroupTopicLock -> GroupTopicLock -> GroupTopicLock
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: GroupTopicLock -> GroupTopicLock -> GroupTopicLock
$cmin :: GroupTopicLock -> GroupTopicLock -> GroupTopicLock
max :: GroupTopicLock -> GroupTopicLock -> GroupTopicLock
$cmax :: GroupTopicLock -> GroupTopicLock -> GroupTopicLock
>= :: GroupTopicLock -> GroupTopicLock -> Bool
$c>= :: GroupTopicLock -> GroupTopicLock -> Bool
> :: GroupTopicLock -> GroupTopicLock -> Bool
$c> :: GroupTopicLock -> GroupTopicLock -> Bool
<= :: GroupTopicLock -> GroupTopicLock -> Bool
$c<= :: GroupTopicLock -> GroupTopicLock -> Bool
< :: GroupTopicLock -> GroupTopicLock -> Bool
$c< :: GroupTopicLock -> GroupTopicLock -> Bool
compare :: GroupTopicLock -> GroupTopicLock -> Ordering
$ccompare :: GroupTopicLock -> GroupTopicLock -> Ordering
$cp1Ord :: Eq GroupTopicLock
Ord, Int -> GroupTopicLock
GroupTopicLock -> Int
GroupTopicLock -> [GroupTopicLock]
GroupTopicLock -> GroupTopicLock
GroupTopicLock -> GroupTopicLock -> [GroupTopicLock]
GroupTopicLock
-> GroupTopicLock -> GroupTopicLock -> [GroupTopicLock]
(GroupTopicLock -> GroupTopicLock)
-> (GroupTopicLock -> GroupTopicLock)
-> (Int -> GroupTopicLock)
-> (GroupTopicLock -> Int)
-> (GroupTopicLock -> [GroupTopicLock])
-> (GroupTopicLock -> GroupTopicLock -> [GroupTopicLock])
-> (GroupTopicLock -> GroupTopicLock -> [GroupTopicLock])
-> (GroupTopicLock
-> GroupTopicLock -> GroupTopicLock -> [GroupTopicLock])
-> Enum GroupTopicLock
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: GroupTopicLock
-> GroupTopicLock -> GroupTopicLock -> [GroupTopicLock]
$cenumFromThenTo :: GroupTopicLock
-> GroupTopicLock -> GroupTopicLock -> [GroupTopicLock]
enumFromTo :: GroupTopicLock -> GroupTopicLock -> [GroupTopicLock]
$cenumFromTo :: GroupTopicLock -> GroupTopicLock -> [GroupTopicLock]
enumFromThen :: GroupTopicLock -> GroupTopicLock -> [GroupTopicLock]
$cenumFromThen :: GroupTopicLock -> GroupTopicLock -> [GroupTopicLock]
enumFrom :: GroupTopicLock -> [GroupTopicLock]
$cenumFrom :: GroupTopicLock -> [GroupTopicLock]
fromEnum :: GroupTopicLock -> Int
$cfromEnum :: GroupTopicLock -> Int
toEnum :: Int -> GroupTopicLock
$ctoEnum :: Int -> GroupTopicLock
pred :: GroupTopicLock -> GroupTopicLock
$cpred :: GroupTopicLock -> GroupTopicLock
succ :: GroupTopicLock -> GroupTopicLock
$csucc :: GroupTopicLock -> GroupTopicLock
Enum, GroupTopicLock
GroupTopicLock -> GroupTopicLock -> Bounded GroupTopicLock
forall a. a -> a -> Bounded a
maxBound :: GroupTopicLock
$cmaxBound :: GroupTopicLock
minBound :: GroupTopicLock
$cminBound :: GroupTopicLock
Bounded, ReadPrec [GroupTopicLock]
ReadPrec GroupTopicLock
Int -> ReadS GroupTopicLock
ReadS [GroupTopicLock]
(Int -> ReadS GroupTopicLock)
-> ReadS [GroupTopicLock]
-> ReadPrec GroupTopicLock
-> ReadPrec [GroupTopicLock]
-> Read GroupTopicLock
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GroupTopicLock]
$creadListPrec :: ReadPrec [GroupTopicLock]
readPrec :: ReadPrec GroupTopicLock
$creadPrec :: ReadPrec GroupTopicLock
readList :: ReadS [GroupTopicLock]
$creadList :: ReadS [GroupTopicLock]
readsPrec :: Int -> ReadS GroupTopicLock
$creadsPrec :: Int -> ReadS GroupTopicLock
Read, Int -> GroupTopicLock -> ShowS
[GroupTopicLock] -> ShowS
GroupTopicLock -> String
(Int -> GroupTopicLock -> ShowS)
-> (GroupTopicLock -> String)
-> ([GroupTopicLock] -> ShowS)
-> Show GroupTopicLock
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GroupTopicLock] -> ShowS
$cshowList :: [GroupTopicLock] -> ShowS
show :: GroupTopicLock -> String
$cshow :: GroupTopicLock -> String
showsPrec :: Int -> GroupTopicLock -> ShowS
$cshowsPrec :: Int -> GroupTopicLock -> ShowS
Show, (forall x. GroupTopicLock -> Rep GroupTopicLock x)
-> (forall x. Rep GroupTopicLock x -> GroupTopicLock)
-> Generic GroupTopicLock
forall x. Rep GroupTopicLock x -> GroupTopicLock
forall x. GroupTopicLock -> Rep GroupTopicLock x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GroupTopicLock x -> GroupTopicLock
$cfrom :: forall x. GroupTopicLock -> Rep GroupTopicLock x
Generic)
instance MessagePack GroupTopicLock
instance Arbitrary GroupTopicLock where arbitrary :: Gen GroupTopicLock
arbitrary = Gen GroupTopicLock
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data GroupVoiceState
= GroupVoiceStateAll
| GroupVoiceStateModerator
| GroupVoiceStateFounder
deriving (GroupVoiceState -> GroupVoiceState -> Bool
(GroupVoiceState -> GroupVoiceState -> Bool)
-> (GroupVoiceState -> GroupVoiceState -> Bool)
-> Eq GroupVoiceState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GroupVoiceState -> GroupVoiceState -> Bool
$c/= :: GroupVoiceState -> GroupVoiceState -> Bool
== :: GroupVoiceState -> GroupVoiceState -> Bool
$c== :: GroupVoiceState -> GroupVoiceState -> Bool
Eq, Eq GroupVoiceState
Eq GroupVoiceState
-> (GroupVoiceState -> GroupVoiceState -> Ordering)
-> (GroupVoiceState -> GroupVoiceState -> Bool)
-> (GroupVoiceState -> GroupVoiceState -> Bool)
-> (GroupVoiceState -> GroupVoiceState -> Bool)
-> (GroupVoiceState -> GroupVoiceState -> Bool)
-> (GroupVoiceState -> GroupVoiceState -> GroupVoiceState)
-> (GroupVoiceState -> GroupVoiceState -> GroupVoiceState)
-> Ord GroupVoiceState
GroupVoiceState -> GroupVoiceState -> Bool
GroupVoiceState -> GroupVoiceState -> Ordering
GroupVoiceState -> GroupVoiceState -> GroupVoiceState
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: GroupVoiceState -> GroupVoiceState -> GroupVoiceState
$cmin :: GroupVoiceState -> GroupVoiceState -> GroupVoiceState
max :: GroupVoiceState -> GroupVoiceState -> GroupVoiceState
$cmax :: GroupVoiceState -> GroupVoiceState -> GroupVoiceState
>= :: GroupVoiceState -> GroupVoiceState -> Bool
$c>= :: GroupVoiceState -> GroupVoiceState -> Bool
> :: GroupVoiceState -> GroupVoiceState -> Bool
$c> :: GroupVoiceState -> GroupVoiceState -> Bool
<= :: GroupVoiceState -> GroupVoiceState -> Bool
$c<= :: GroupVoiceState -> GroupVoiceState -> Bool
< :: GroupVoiceState -> GroupVoiceState -> Bool
$c< :: GroupVoiceState -> GroupVoiceState -> Bool
compare :: GroupVoiceState -> GroupVoiceState -> Ordering
$ccompare :: GroupVoiceState -> GroupVoiceState -> Ordering
$cp1Ord :: Eq GroupVoiceState
Ord, Int -> GroupVoiceState
GroupVoiceState -> Int
GroupVoiceState -> [GroupVoiceState]
GroupVoiceState -> GroupVoiceState
GroupVoiceState -> GroupVoiceState -> [GroupVoiceState]
GroupVoiceState
-> GroupVoiceState -> GroupVoiceState -> [GroupVoiceState]
(GroupVoiceState -> GroupVoiceState)
-> (GroupVoiceState -> GroupVoiceState)
-> (Int -> GroupVoiceState)
-> (GroupVoiceState -> Int)
-> (GroupVoiceState -> [GroupVoiceState])
-> (GroupVoiceState -> GroupVoiceState -> [GroupVoiceState])
-> (GroupVoiceState -> GroupVoiceState -> [GroupVoiceState])
-> (GroupVoiceState
-> GroupVoiceState -> GroupVoiceState -> [GroupVoiceState])
-> Enum GroupVoiceState
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: GroupVoiceState
-> GroupVoiceState -> GroupVoiceState -> [GroupVoiceState]
$cenumFromThenTo :: GroupVoiceState
-> GroupVoiceState -> GroupVoiceState -> [GroupVoiceState]
enumFromTo :: GroupVoiceState -> GroupVoiceState -> [GroupVoiceState]
$cenumFromTo :: GroupVoiceState -> GroupVoiceState -> [GroupVoiceState]
enumFromThen :: GroupVoiceState -> GroupVoiceState -> [GroupVoiceState]
$cenumFromThen :: GroupVoiceState -> GroupVoiceState -> [GroupVoiceState]
enumFrom :: GroupVoiceState -> [GroupVoiceState]
$cenumFrom :: GroupVoiceState -> [GroupVoiceState]
fromEnum :: GroupVoiceState -> Int
$cfromEnum :: GroupVoiceState -> Int
toEnum :: Int -> GroupVoiceState
$ctoEnum :: Int -> GroupVoiceState
pred :: GroupVoiceState -> GroupVoiceState
$cpred :: GroupVoiceState -> GroupVoiceState
succ :: GroupVoiceState -> GroupVoiceState
$csucc :: GroupVoiceState -> GroupVoiceState
Enum, GroupVoiceState
GroupVoiceState -> GroupVoiceState -> Bounded GroupVoiceState
forall a. a -> a -> Bounded a
maxBound :: GroupVoiceState
$cmaxBound :: GroupVoiceState
minBound :: GroupVoiceState
$cminBound :: GroupVoiceState
Bounded, ReadPrec [GroupVoiceState]
ReadPrec GroupVoiceState
Int -> ReadS GroupVoiceState
ReadS [GroupVoiceState]
(Int -> ReadS GroupVoiceState)
-> ReadS [GroupVoiceState]
-> ReadPrec GroupVoiceState
-> ReadPrec [GroupVoiceState]
-> Read GroupVoiceState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GroupVoiceState]
$creadListPrec :: ReadPrec [GroupVoiceState]
readPrec :: ReadPrec GroupVoiceState
$creadPrec :: ReadPrec GroupVoiceState
readList :: ReadS [GroupVoiceState]
$creadList :: ReadS [GroupVoiceState]
readsPrec :: Int -> ReadS GroupVoiceState
$creadsPrec :: Int -> ReadS GroupVoiceState
Read, Int -> GroupVoiceState -> ShowS
[GroupVoiceState] -> ShowS
GroupVoiceState -> String
(Int -> GroupVoiceState -> ShowS)
-> (GroupVoiceState -> String)
-> ([GroupVoiceState] -> ShowS)
-> Show GroupVoiceState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GroupVoiceState] -> ShowS
$cshowList :: [GroupVoiceState] -> ShowS
show :: GroupVoiceState -> String
$cshow :: GroupVoiceState -> String
showsPrec :: Int -> GroupVoiceState -> ShowS
$cshowsPrec :: Int -> GroupVoiceState -> ShowS
Show, (forall x. GroupVoiceState -> Rep GroupVoiceState x)
-> (forall x. Rep GroupVoiceState x -> GroupVoiceState)
-> Generic GroupVoiceState
forall x. Rep GroupVoiceState x -> GroupVoiceState
forall x. GroupVoiceState -> Rep GroupVoiceState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GroupVoiceState x -> GroupVoiceState
$cfrom :: forall x. GroupVoiceState -> Rep GroupVoiceState x
Generic)
instance MessagePack GroupVoiceState
instance Arbitrary GroupVoiceState where arbitrary :: Gen GroupVoiceState
arbitrary = Gen GroupVoiceState
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data GroupRole
= GroupRoleFounder
| GroupRoleModerator
| GroupRoleUser
| GroupRoleObserver
deriving (GroupRole -> GroupRole -> Bool
(GroupRole -> GroupRole -> Bool)
-> (GroupRole -> GroupRole -> Bool) -> Eq GroupRole
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GroupRole -> GroupRole -> Bool
$c/= :: GroupRole -> GroupRole -> Bool
== :: GroupRole -> GroupRole -> Bool
$c== :: GroupRole -> GroupRole -> Bool
Eq, Eq GroupRole
Eq GroupRole
-> (GroupRole -> GroupRole -> Ordering)
-> (GroupRole -> GroupRole -> Bool)
-> (GroupRole -> GroupRole -> Bool)
-> (GroupRole -> GroupRole -> Bool)
-> (GroupRole -> GroupRole -> Bool)
-> (GroupRole -> GroupRole -> GroupRole)
-> (GroupRole -> GroupRole -> GroupRole)
-> Ord GroupRole
GroupRole -> GroupRole -> Bool
GroupRole -> GroupRole -> Ordering
GroupRole -> GroupRole -> GroupRole
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: GroupRole -> GroupRole -> GroupRole
$cmin :: GroupRole -> GroupRole -> GroupRole
max :: GroupRole -> GroupRole -> GroupRole
$cmax :: GroupRole -> GroupRole -> GroupRole
>= :: GroupRole -> GroupRole -> Bool
$c>= :: GroupRole -> GroupRole -> Bool
> :: GroupRole -> GroupRole -> Bool
$c> :: GroupRole -> GroupRole -> Bool
<= :: GroupRole -> GroupRole -> Bool
$c<= :: GroupRole -> GroupRole -> Bool
< :: GroupRole -> GroupRole -> Bool
$c< :: GroupRole -> GroupRole -> Bool
compare :: GroupRole -> GroupRole -> Ordering
$ccompare :: GroupRole -> GroupRole -> Ordering
$cp1Ord :: Eq GroupRole
Ord, Int -> GroupRole
GroupRole -> Int
GroupRole -> [GroupRole]
GroupRole -> GroupRole
GroupRole -> GroupRole -> [GroupRole]
GroupRole -> GroupRole -> GroupRole -> [GroupRole]
(GroupRole -> GroupRole)
-> (GroupRole -> GroupRole)
-> (Int -> GroupRole)
-> (GroupRole -> Int)
-> (GroupRole -> [GroupRole])
-> (GroupRole -> GroupRole -> [GroupRole])
-> (GroupRole -> GroupRole -> [GroupRole])
-> (GroupRole -> GroupRole -> GroupRole -> [GroupRole])
-> Enum GroupRole
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: GroupRole -> GroupRole -> GroupRole -> [GroupRole]
$cenumFromThenTo :: GroupRole -> GroupRole -> GroupRole -> [GroupRole]
enumFromTo :: GroupRole -> GroupRole -> [GroupRole]
$cenumFromTo :: GroupRole -> GroupRole -> [GroupRole]
enumFromThen :: GroupRole -> GroupRole -> [GroupRole]
$cenumFromThen :: GroupRole -> GroupRole -> [GroupRole]
enumFrom :: GroupRole -> [GroupRole]
$cenumFrom :: GroupRole -> [GroupRole]
fromEnum :: GroupRole -> Int
$cfromEnum :: GroupRole -> Int
toEnum :: Int -> GroupRole
$ctoEnum :: Int -> GroupRole
pred :: GroupRole -> GroupRole
$cpred :: GroupRole -> GroupRole
succ :: GroupRole -> GroupRole
$csucc :: GroupRole -> GroupRole
Enum, GroupRole
GroupRole -> GroupRole -> Bounded GroupRole
forall a. a -> a -> Bounded a
maxBound :: GroupRole
$cmaxBound :: GroupRole
minBound :: GroupRole
$cminBound :: GroupRole
Bounded, ReadPrec [GroupRole]
ReadPrec GroupRole
Int -> ReadS GroupRole
ReadS [GroupRole]
(Int -> ReadS GroupRole)
-> ReadS [GroupRole]
-> ReadPrec GroupRole
-> ReadPrec [GroupRole]
-> Read GroupRole
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GroupRole]
$creadListPrec :: ReadPrec [GroupRole]
readPrec :: ReadPrec GroupRole
$creadPrec :: ReadPrec GroupRole
readList :: ReadS [GroupRole]
$creadList :: ReadS [GroupRole]
readsPrec :: Int -> ReadS GroupRole
$creadsPrec :: Int -> ReadS GroupRole
Read, Int -> GroupRole -> ShowS
[GroupRole] -> ShowS
GroupRole -> String
(Int -> GroupRole -> ShowS)
-> (GroupRole -> String)
-> ([GroupRole] -> ShowS)
-> Show GroupRole
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GroupRole] -> ShowS
$cshowList :: [GroupRole] -> ShowS
show :: GroupRole -> String
$cshow :: GroupRole -> String
showsPrec :: Int -> GroupRole -> ShowS
$cshowsPrec :: Int -> GroupRole -> ShowS
Show, (forall x. GroupRole -> Rep GroupRole x)
-> (forall x. Rep GroupRole x -> GroupRole) -> Generic GroupRole
forall x. Rep GroupRole x -> GroupRole
forall x. GroupRole -> Rep GroupRole x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GroupRole x -> GroupRole
$cfrom :: forall x. GroupRole -> Rep GroupRole x
Generic)
instance MessagePack GroupRole
instance Arbitrary GroupRole where arbitrary :: Gen GroupRole
arbitrary = Gen GroupRole
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data ErrGroupNew
= ErrGroupNewTooLong
| ErrGroupNewEmpty
| ErrGroupNewInit
| ErrGroupNewState
| ErrGroupNewAnnounce
deriving (ErrGroupNew -> ErrGroupNew -> Bool
(ErrGroupNew -> ErrGroupNew -> Bool)
-> (ErrGroupNew -> ErrGroupNew -> Bool) -> Eq ErrGroupNew
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupNew -> ErrGroupNew -> Bool
$c/= :: ErrGroupNew -> ErrGroupNew -> Bool
== :: ErrGroupNew -> ErrGroupNew -> Bool
$c== :: ErrGroupNew -> ErrGroupNew -> Bool
Eq, Eq ErrGroupNew
Eq ErrGroupNew
-> (ErrGroupNew -> ErrGroupNew -> Ordering)
-> (ErrGroupNew -> ErrGroupNew -> Bool)
-> (ErrGroupNew -> ErrGroupNew -> Bool)
-> (ErrGroupNew -> ErrGroupNew -> Bool)
-> (ErrGroupNew -> ErrGroupNew -> Bool)
-> (ErrGroupNew -> ErrGroupNew -> ErrGroupNew)
-> (ErrGroupNew -> ErrGroupNew -> ErrGroupNew)
-> Ord ErrGroupNew
ErrGroupNew -> ErrGroupNew -> Bool
ErrGroupNew -> ErrGroupNew -> Ordering
ErrGroupNew -> ErrGroupNew -> ErrGroupNew
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupNew -> ErrGroupNew -> ErrGroupNew
$cmin :: ErrGroupNew -> ErrGroupNew -> ErrGroupNew
max :: ErrGroupNew -> ErrGroupNew -> ErrGroupNew
$cmax :: ErrGroupNew -> ErrGroupNew -> ErrGroupNew
>= :: ErrGroupNew -> ErrGroupNew -> Bool
$c>= :: ErrGroupNew -> ErrGroupNew -> Bool
> :: ErrGroupNew -> ErrGroupNew -> Bool
$c> :: ErrGroupNew -> ErrGroupNew -> Bool
<= :: ErrGroupNew -> ErrGroupNew -> Bool
$c<= :: ErrGroupNew -> ErrGroupNew -> Bool
< :: ErrGroupNew -> ErrGroupNew -> Bool
$c< :: ErrGroupNew -> ErrGroupNew -> Bool
compare :: ErrGroupNew -> ErrGroupNew -> Ordering
$ccompare :: ErrGroupNew -> ErrGroupNew -> Ordering
$cp1Ord :: Eq ErrGroupNew
Ord, Int -> ErrGroupNew
ErrGroupNew -> Int
ErrGroupNew -> [ErrGroupNew]
ErrGroupNew -> ErrGroupNew
ErrGroupNew -> ErrGroupNew -> [ErrGroupNew]
ErrGroupNew -> ErrGroupNew -> ErrGroupNew -> [ErrGroupNew]
(ErrGroupNew -> ErrGroupNew)
-> (ErrGroupNew -> ErrGroupNew)
-> (Int -> ErrGroupNew)
-> (ErrGroupNew -> Int)
-> (ErrGroupNew -> [ErrGroupNew])
-> (ErrGroupNew -> ErrGroupNew -> [ErrGroupNew])
-> (ErrGroupNew -> ErrGroupNew -> [ErrGroupNew])
-> (ErrGroupNew -> ErrGroupNew -> ErrGroupNew -> [ErrGroupNew])
-> Enum ErrGroupNew
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupNew -> ErrGroupNew -> ErrGroupNew -> [ErrGroupNew]
$cenumFromThenTo :: ErrGroupNew -> ErrGroupNew -> ErrGroupNew -> [ErrGroupNew]
enumFromTo :: ErrGroupNew -> ErrGroupNew -> [ErrGroupNew]
$cenumFromTo :: ErrGroupNew -> ErrGroupNew -> [ErrGroupNew]
enumFromThen :: ErrGroupNew -> ErrGroupNew -> [ErrGroupNew]
$cenumFromThen :: ErrGroupNew -> ErrGroupNew -> [ErrGroupNew]
enumFrom :: ErrGroupNew -> [ErrGroupNew]
$cenumFrom :: ErrGroupNew -> [ErrGroupNew]
fromEnum :: ErrGroupNew -> Int
$cfromEnum :: ErrGroupNew -> Int
toEnum :: Int -> ErrGroupNew
$ctoEnum :: Int -> ErrGroupNew
pred :: ErrGroupNew -> ErrGroupNew
$cpred :: ErrGroupNew -> ErrGroupNew
succ :: ErrGroupNew -> ErrGroupNew
$csucc :: ErrGroupNew -> ErrGroupNew
Enum, ErrGroupNew
ErrGroupNew -> ErrGroupNew -> Bounded ErrGroupNew
forall a. a -> a -> Bounded a
maxBound :: ErrGroupNew
$cmaxBound :: ErrGroupNew
minBound :: ErrGroupNew
$cminBound :: ErrGroupNew
Bounded, ReadPrec [ErrGroupNew]
ReadPrec ErrGroupNew
Int -> ReadS ErrGroupNew
ReadS [ErrGroupNew]
(Int -> ReadS ErrGroupNew)
-> ReadS [ErrGroupNew]
-> ReadPrec ErrGroupNew
-> ReadPrec [ErrGroupNew]
-> Read ErrGroupNew
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupNew]
$creadListPrec :: ReadPrec [ErrGroupNew]
readPrec :: ReadPrec ErrGroupNew
$creadPrec :: ReadPrec ErrGroupNew
readList :: ReadS [ErrGroupNew]
$creadList :: ReadS [ErrGroupNew]
readsPrec :: Int -> ReadS ErrGroupNew
$creadsPrec :: Int -> ReadS ErrGroupNew
Read, Int -> ErrGroupNew -> ShowS
[ErrGroupNew] -> ShowS
ErrGroupNew -> String
(Int -> ErrGroupNew -> ShowS)
-> (ErrGroupNew -> String)
-> ([ErrGroupNew] -> ShowS)
-> Show ErrGroupNew
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupNew] -> ShowS
$cshowList :: [ErrGroupNew] -> ShowS
show :: ErrGroupNew -> String
$cshow :: ErrGroupNew -> String
showsPrec :: Int -> ErrGroupNew -> ShowS
$cshowsPrec :: Int -> ErrGroupNew -> ShowS
Show, (forall x. ErrGroupNew -> Rep ErrGroupNew x)
-> (forall x. Rep ErrGroupNew x -> ErrGroupNew)
-> Generic ErrGroupNew
forall x. Rep ErrGroupNew x -> ErrGroupNew
forall x. ErrGroupNew -> Rep ErrGroupNew x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupNew x -> ErrGroupNew
$cfrom :: forall x. ErrGroupNew -> Rep ErrGroupNew x
Generic)
instance MessagePack ErrGroupNew
instance Arbitrary ErrGroupNew where arbitrary :: Gen ErrGroupNew
arbitrary = Gen ErrGroupNew
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_new :: ToxPtr -> CEnum GroupPrivacyState -> CString -> CSize -> CString -> CSize -> CErr ErrGroupNew -> IO Word32
data ErrGroupJoin
= ErrGroupJoinInit
| ErrGroupJoinBadChatId
| ErrGroupJoinEmpty
| ErrGroupJoinTooLong
| ErrGroupJoinPassword
| ErrGroupJoinCore
deriving (ErrGroupJoin -> ErrGroupJoin -> Bool
(ErrGroupJoin -> ErrGroupJoin -> Bool)
-> (ErrGroupJoin -> ErrGroupJoin -> Bool) -> Eq ErrGroupJoin
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupJoin -> ErrGroupJoin -> Bool
$c/= :: ErrGroupJoin -> ErrGroupJoin -> Bool
== :: ErrGroupJoin -> ErrGroupJoin -> Bool
$c== :: ErrGroupJoin -> ErrGroupJoin -> Bool
Eq, Eq ErrGroupJoin
Eq ErrGroupJoin
-> (ErrGroupJoin -> ErrGroupJoin -> Ordering)
-> (ErrGroupJoin -> ErrGroupJoin -> Bool)
-> (ErrGroupJoin -> ErrGroupJoin -> Bool)
-> (ErrGroupJoin -> ErrGroupJoin -> Bool)
-> (ErrGroupJoin -> ErrGroupJoin -> Bool)
-> (ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin)
-> (ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin)
-> Ord ErrGroupJoin
ErrGroupJoin -> ErrGroupJoin -> Bool
ErrGroupJoin -> ErrGroupJoin -> Ordering
ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin
$cmin :: ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin
max :: ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin
$cmax :: ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin
>= :: ErrGroupJoin -> ErrGroupJoin -> Bool
$c>= :: ErrGroupJoin -> ErrGroupJoin -> Bool
> :: ErrGroupJoin -> ErrGroupJoin -> Bool
$c> :: ErrGroupJoin -> ErrGroupJoin -> Bool
<= :: ErrGroupJoin -> ErrGroupJoin -> Bool
$c<= :: ErrGroupJoin -> ErrGroupJoin -> Bool
< :: ErrGroupJoin -> ErrGroupJoin -> Bool
$c< :: ErrGroupJoin -> ErrGroupJoin -> Bool
compare :: ErrGroupJoin -> ErrGroupJoin -> Ordering
$ccompare :: ErrGroupJoin -> ErrGroupJoin -> Ordering
$cp1Ord :: Eq ErrGroupJoin
Ord, Int -> ErrGroupJoin
ErrGroupJoin -> Int
ErrGroupJoin -> [ErrGroupJoin]
ErrGroupJoin -> ErrGroupJoin
ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin]
ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin]
(ErrGroupJoin -> ErrGroupJoin)
-> (ErrGroupJoin -> ErrGroupJoin)
-> (Int -> ErrGroupJoin)
-> (ErrGroupJoin -> Int)
-> (ErrGroupJoin -> [ErrGroupJoin])
-> (ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin])
-> (ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin])
-> (ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin])
-> Enum ErrGroupJoin
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin]
$cenumFromThenTo :: ErrGroupJoin -> ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin]
enumFromTo :: ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin]
$cenumFromTo :: ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin]
enumFromThen :: ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin]
$cenumFromThen :: ErrGroupJoin -> ErrGroupJoin -> [ErrGroupJoin]
enumFrom :: ErrGroupJoin -> [ErrGroupJoin]
$cenumFrom :: ErrGroupJoin -> [ErrGroupJoin]
fromEnum :: ErrGroupJoin -> Int
$cfromEnum :: ErrGroupJoin -> Int
toEnum :: Int -> ErrGroupJoin
$ctoEnum :: Int -> ErrGroupJoin
pred :: ErrGroupJoin -> ErrGroupJoin
$cpred :: ErrGroupJoin -> ErrGroupJoin
succ :: ErrGroupJoin -> ErrGroupJoin
$csucc :: ErrGroupJoin -> ErrGroupJoin
Enum, ErrGroupJoin
ErrGroupJoin -> ErrGroupJoin -> Bounded ErrGroupJoin
forall a. a -> a -> Bounded a
maxBound :: ErrGroupJoin
$cmaxBound :: ErrGroupJoin
minBound :: ErrGroupJoin
$cminBound :: ErrGroupJoin
Bounded, ReadPrec [ErrGroupJoin]
ReadPrec ErrGroupJoin
Int -> ReadS ErrGroupJoin
ReadS [ErrGroupJoin]
(Int -> ReadS ErrGroupJoin)
-> ReadS [ErrGroupJoin]
-> ReadPrec ErrGroupJoin
-> ReadPrec [ErrGroupJoin]
-> Read ErrGroupJoin
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupJoin]
$creadListPrec :: ReadPrec [ErrGroupJoin]
readPrec :: ReadPrec ErrGroupJoin
$creadPrec :: ReadPrec ErrGroupJoin
readList :: ReadS [ErrGroupJoin]
$creadList :: ReadS [ErrGroupJoin]
readsPrec :: Int -> ReadS ErrGroupJoin
$creadsPrec :: Int -> ReadS ErrGroupJoin
Read, Int -> ErrGroupJoin -> ShowS
[ErrGroupJoin] -> ShowS
ErrGroupJoin -> String
(Int -> ErrGroupJoin -> ShowS)
-> (ErrGroupJoin -> String)
-> ([ErrGroupJoin] -> ShowS)
-> Show ErrGroupJoin
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupJoin] -> ShowS
$cshowList :: [ErrGroupJoin] -> ShowS
show :: ErrGroupJoin -> String
$cshow :: ErrGroupJoin -> String
showsPrec :: Int -> ErrGroupJoin -> ShowS
$cshowsPrec :: Int -> ErrGroupJoin -> ShowS
Show, (forall x. ErrGroupJoin -> Rep ErrGroupJoin x)
-> (forall x. Rep ErrGroupJoin x -> ErrGroupJoin)
-> Generic ErrGroupJoin
forall x. Rep ErrGroupJoin x -> ErrGroupJoin
forall x. ErrGroupJoin -> Rep ErrGroupJoin x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupJoin x -> ErrGroupJoin
$cfrom :: forall x. ErrGroupJoin -> Rep ErrGroupJoin x
Generic)
instance MessagePack ErrGroupJoin
instance Arbitrary ErrGroupJoin where arbitrary :: Gen ErrGroupJoin
arbitrary = Gen ErrGroupJoin
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_join :: ToxPtr -> CString -> CString -> CSize -> CString -> CSize -> CErr ErrGroupJoin -> IO Word32
data ErrGroupIsConnected
= ErrGroupIsConnectedGroupNotFound
deriving (ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
(ErrGroupIsConnected -> ErrGroupIsConnected -> Bool)
-> (ErrGroupIsConnected -> ErrGroupIsConnected -> Bool)
-> Eq ErrGroupIsConnected
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
$c/= :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
== :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
$c== :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
Eq, Eq ErrGroupIsConnected
Eq ErrGroupIsConnected
-> (ErrGroupIsConnected -> ErrGroupIsConnected -> Ordering)
-> (ErrGroupIsConnected -> ErrGroupIsConnected -> Bool)
-> (ErrGroupIsConnected -> ErrGroupIsConnected -> Bool)
-> (ErrGroupIsConnected -> ErrGroupIsConnected -> Bool)
-> (ErrGroupIsConnected -> ErrGroupIsConnected -> Bool)
-> (ErrGroupIsConnected
-> ErrGroupIsConnected -> ErrGroupIsConnected)
-> (ErrGroupIsConnected
-> ErrGroupIsConnected -> ErrGroupIsConnected)
-> Ord ErrGroupIsConnected
ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
ErrGroupIsConnected -> ErrGroupIsConnected -> Ordering
ErrGroupIsConnected -> ErrGroupIsConnected -> ErrGroupIsConnected
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupIsConnected -> ErrGroupIsConnected -> ErrGroupIsConnected
$cmin :: ErrGroupIsConnected -> ErrGroupIsConnected -> ErrGroupIsConnected
max :: ErrGroupIsConnected -> ErrGroupIsConnected -> ErrGroupIsConnected
$cmax :: ErrGroupIsConnected -> ErrGroupIsConnected -> ErrGroupIsConnected
>= :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
$c>= :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
> :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
$c> :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
<= :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
$c<= :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
< :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
$c< :: ErrGroupIsConnected -> ErrGroupIsConnected -> Bool
compare :: ErrGroupIsConnected -> ErrGroupIsConnected -> Ordering
$ccompare :: ErrGroupIsConnected -> ErrGroupIsConnected -> Ordering
$cp1Ord :: Eq ErrGroupIsConnected
Ord, Int -> ErrGroupIsConnected
ErrGroupIsConnected -> Int
ErrGroupIsConnected -> [ErrGroupIsConnected]
ErrGroupIsConnected -> ErrGroupIsConnected
ErrGroupIsConnected -> ErrGroupIsConnected -> [ErrGroupIsConnected]
ErrGroupIsConnected
-> ErrGroupIsConnected
-> ErrGroupIsConnected
-> [ErrGroupIsConnected]
(ErrGroupIsConnected -> ErrGroupIsConnected)
-> (ErrGroupIsConnected -> ErrGroupIsConnected)
-> (Int -> ErrGroupIsConnected)
-> (ErrGroupIsConnected -> Int)
-> (ErrGroupIsConnected -> [ErrGroupIsConnected])
-> (ErrGroupIsConnected
-> ErrGroupIsConnected -> [ErrGroupIsConnected])
-> (ErrGroupIsConnected
-> ErrGroupIsConnected -> [ErrGroupIsConnected])
-> (ErrGroupIsConnected
-> ErrGroupIsConnected
-> ErrGroupIsConnected
-> [ErrGroupIsConnected])
-> Enum ErrGroupIsConnected
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupIsConnected
-> ErrGroupIsConnected
-> ErrGroupIsConnected
-> [ErrGroupIsConnected]
$cenumFromThenTo :: ErrGroupIsConnected
-> ErrGroupIsConnected
-> ErrGroupIsConnected
-> [ErrGroupIsConnected]
enumFromTo :: ErrGroupIsConnected -> ErrGroupIsConnected -> [ErrGroupIsConnected]
$cenumFromTo :: ErrGroupIsConnected -> ErrGroupIsConnected -> [ErrGroupIsConnected]
enumFromThen :: ErrGroupIsConnected -> ErrGroupIsConnected -> [ErrGroupIsConnected]
$cenumFromThen :: ErrGroupIsConnected -> ErrGroupIsConnected -> [ErrGroupIsConnected]
enumFrom :: ErrGroupIsConnected -> [ErrGroupIsConnected]
$cenumFrom :: ErrGroupIsConnected -> [ErrGroupIsConnected]
fromEnum :: ErrGroupIsConnected -> Int
$cfromEnum :: ErrGroupIsConnected -> Int
toEnum :: Int -> ErrGroupIsConnected
$ctoEnum :: Int -> ErrGroupIsConnected
pred :: ErrGroupIsConnected -> ErrGroupIsConnected
$cpred :: ErrGroupIsConnected -> ErrGroupIsConnected
succ :: ErrGroupIsConnected -> ErrGroupIsConnected
$csucc :: ErrGroupIsConnected -> ErrGroupIsConnected
Enum, ErrGroupIsConnected
ErrGroupIsConnected
-> ErrGroupIsConnected -> Bounded ErrGroupIsConnected
forall a. a -> a -> Bounded a
maxBound :: ErrGroupIsConnected
$cmaxBound :: ErrGroupIsConnected
minBound :: ErrGroupIsConnected
$cminBound :: ErrGroupIsConnected
Bounded, ReadPrec [ErrGroupIsConnected]
ReadPrec ErrGroupIsConnected
Int -> ReadS ErrGroupIsConnected
ReadS [ErrGroupIsConnected]
(Int -> ReadS ErrGroupIsConnected)
-> ReadS [ErrGroupIsConnected]
-> ReadPrec ErrGroupIsConnected
-> ReadPrec [ErrGroupIsConnected]
-> Read ErrGroupIsConnected
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupIsConnected]
$creadListPrec :: ReadPrec [ErrGroupIsConnected]
readPrec :: ReadPrec ErrGroupIsConnected
$creadPrec :: ReadPrec ErrGroupIsConnected
readList :: ReadS [ErrGroupIsConnected]
$creadList :: ReadS [ErrGroupIsConnected]
readsPrec :: Int -> ReadS ErrGroupIsConnected
$creadsPrec :: Int -> ReadS ErrGroupIsConnected
Read, Int -> ErrGroupIsConnected -> ShowS
[ErrGroupIsConnected] -> ShowS
ErrGroupIsConnected -> String
(Int -> ErrGroupIsConnected -> ShowS)
-> (ErrGroupIsConnected -> String)
-> ([ErrGroupIsConnected] -> ShowS)
-> Show ErrGroupIsConnected
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupIsConnected] -> ShowS
$cshowList :: [ErrGroupIsConnected] -> ShowS
show :: ErrGroupIsConnected -> String
$cshow :: ErrGroupIsConnected -> String
showsPrec :: Int -> ErrGroupIsConnected -> ShowS
$cshowsPrec :: Int -> ErrGroupIsConnected -> ShowS
Show, (forall x. ErrGroupIsConnected -> Rep ErrGroupIsConnected x)
-> (forall x. Rep ErrGroupIsConnected x -> ErrGroupIsConnected)
-> Generic ErrGroupIsConnected
forall x. Rep ErrGroupIsConnected x -> ErrGroupIsConnected
forall x. ErrGroupIsConnected -> Rep ErrGroupIsConnected x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupIsConnected x -> ErrGroupIsConnected
$cfrom :: forall x. ErrGroupIsConnected -> Rep ErrGroupIsConnected x
Generic)
instance MessagePack ErrGroupIsConnected
instance Arbitrary ErrGroupIsConnected where arbitrary :: Gen ErrGroupIsConnected
arbitrary = Gen ErrGroupIsConnected
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_is_connected :: ToxPtr -> Word32 -> CErr ErrGroupIsConnected -> IO Bool
data ErrGroupDisconnect
= ErrGroupDisconnectGroupNotFound
| ErrGroupDisconnectAlreadyDisconnected
deriving (ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
(ErrGroupDisconnect -> ErrGroupDisconnect -> Bool)
-> (ErrGroupDisconnect -> ErrGroupDisconnect -> Bool)
-> Eq ErrGroupDisconnect
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
$c/= :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
== :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
$c== :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
Eq, Eq ErrGroupDisconnect
Eq ErrGroupDisconnect
-> (ErrGroupDisconnect -> ErrGroupDisconnect -> Ordering)
-> (ErrGroupDisconnect -> ErrGroupDisconnect -> Bool)
-> (ErrGroupDisconnect -> ErrGroupDisconnect -> Bool)
-> (ErrGroupDisconnect -> ErrGroupDisconnect -> Bool)
-> (ErrGroupDisconnect -> ErrGroupDisconnect -> Bool)
-> (ErrGroupDisconnect -> ErrGroupDisconnect -> ErrGroupDisconnect)
-> (ErrGroupDisconnect -> ErrGroupDisconnect -> ErrGroupDisconnect)
-> Ord ErrGroupDisconnect
ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
ErrGroupDisconnect -> ErrGroupDisconnect -> Ordering
ErrGroupDisconnect -> ErrGroupDisconnect -> ErrGroupDisconnect
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupDisconnect -> ErrGroupDisconnect -> ErrGroupDisconnect
$cmin :: ErrGroupDisconnect -> ErrGroupDisconnect -> ErrGroupDisconnect
max :: ErrGroupDisconnect -> ErrGroupDisconnect -> ErrGroupDisconnect
$cmax :: ErrGroupDisconnect -> ErrGroupDisconnect -> ErrGroupDisconnect
>= :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
$c>= :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
> :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
$c> :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
<= :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
$c<= :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
< :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
$c< :: ErrGroupDisconnect -> ErrGroupDisconnect -> Bool
compare :: ErrGroupDisconnect -> ErrGroupDisconnect -> Ordering
$ccompare :: ErrGroupDisconnect -> ErrGroupDisconnect -> Ordering
$cp1Ord :: Eq ErrGroupDisconnect
Ord, Int -> ErrGroupDisconnect
ErrGroupDisconnect -> Int
ErrGroupDisconnect -> [ErrGroupDisconnect]
ErrGroupDisconnect -> ErrGroupDisconnect
ErrGroupDisconnect -> ErrGroupDisconnect -> [ErrGroupDisconnect]
ErrGroupDisconnect
-> ErrGroupDisconnect -> ErrGroupDisconnect -> [ErrGroupDisconnect]
(ErrGroupDisconnect -> ErrGroupDisconnect)
-> (ErrGroupDisconnect -> ErrGroupDisconnect)
-> (Int -> ErrGroupDisconnect)
-> (ErrGroupDisconnect -> Int)
-> (ErrGroupDisconnect -> [ErrGroupDisconnect])
-> (ErrGroupDisconnect
-> ErrGroupDisconnect -> [ErrGroupDisconnect])
-> (ErrGroupDisconnect
-> ErrGroupDisconnect -> [ErrGroupDisconnect])
-> (ErrGroupDisconnect
-> ErrGroupDisconnect
-> ErrGroupDisconnect
-> [ErrGroupDisconnect])
-> Enum ErrGroupDisconnect
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupDisconnect
-> ErrGroupDisconnect -> ErrGroupDisconnect -> [ErrGroupDisconnect]
$cenumFromThenTo :: ErrGroupDisconnect
-> ErrGroupDisconnect -> ErrGroupDisconnect -> [ErrGroupDisconnect]
enumFromTo :: ErrGroupDisconnect -> ErrGroupDisconnect -> [ErrGroupDisconnect]
$cenumFromTo :: ErrGroupDisconnect -> ErrGroupDisconnect -> [ErrGroupDisconnect]
enumFromThen :: ErrGroupDisconnect -> ErrGroupDisconnect -> [ErrGroupDisconnect]
$cenumFromThen :: ErrGroupDisconnect -> ErrGroupDisconnect -> [ErrGroupDisconnect]
enumFrom :: ErrGroupDisconnect -> [ErrGroupDisconnect]
$cenumFrom :: ErrGroupDisconnect -> [ErrGroupDisconnect]
fromEnum :: ErrGroupDisconnect -> Int
$cfromEnum :: ErrGroupDisconnect -> Int
toEnum :: Int -> ErrGroupDisconnect
$ctoEnum :: Int -> ErrGroupDisconnect
pred :: ErrGroupDisconnect -> ErrGroupDisconnect
$cpred :: ErrGroupDisconnect -> ErrGroupDisconnect
succ :: ErrGroupDisconnect -> ErrGroupDisconnect
$csucc :: ErrGroupDisconnect -> ErrGroupDisconnect
Enum, ErrGroupDisconnect
ErrGroupDisconnect
-> ErrGroupDisconnect -> Bounded ErrGroupDisconnect
forall a. a -> a -> Bounded a
maxBound :: ErrGroupDisconnect
$cmaxBound :: ErrGroupDisconnect
minBound :: ErrGroupDisconnect
$cminBound :: ErrGroupDisconnect
Bounded, ReadPrec [ErrGroupDisconnect]
ReadPrec ErrGroupDisconnect
Int -> ReadS ErrGroupDisconnect
ReadS [ErrGroupDisconnect]
(Int -> ReadS ErrGroupDisconnect)
-> ReadS [ErrGroupDisconnect]
-> ReadPrec ErrGroupDisconnect
-> ReadPrec [ErrGroupDisconnect]
-> Read ErrGroupDisconnect
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupDisconnect]
$creadListPrec :: ReadPrec [ErrGroupDisconnect]
readPrec :: ReadPrec ErrGroupDisconnect
$creadPrec :: ReadPrec ErrGroupDisconnect
readList :: ReadS [ErrGroupDisconnect]
$creadList :: ReadS [ErrGroupDisconnect]
readsPrec :: Int -> ReadS ErrGroupDisconnect
$creadsPrec :: Int -> ReadS ErrGroupDisconnect
Read, Int -> ErrGroupDisconnect -> ShowS
[ErrGroupDisconnect] -> ShowS
ErrGroupDisconnect -> String
(Int -> ErrGroupDisconnect -> ShowS)
-> (ErrGroupDisconnect -> String)
-> ([ErrGroupDisconnect] -> ShowS)
-> Show ErrGroupDisconnect
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupDisconnect] -> ShowS
$cshowList :: [ErrGroupDisconnect] -> ShowS
show :: ErrGroupDisconnect -> String
$cshow :: ErrGroupDisconnect -> String
showsPrec :: Int -> ErrGroupDisconnect -> ShowS
$cshowsPrec :: Int -> ErrGroupDisconnect -> ShowS
Show, (forall x. ErrGroupDisconnect -> Rep ErrGroupDisconnect x)
-> (forall x. Rep ErrGroupDisconnect x -> ErrGroupDisconnect)
-> Generic ErrGroupDisconnect
forall x. Rep ErrGroupDisconnect x -> ErrGroupDisconnect
forall x. ErrGroupDisconnect -> Rep ErrGroupDisconnect x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupDisconnect x -> ErrGroupDisconnect
$cfrom :: forall x. ErrGroupDisconnect -> Rep ErrGroupDisconnect x
Generic)
instance MessagePack ErrGroupDisconnect
instance Arbitrary ErrGroupDisconnect where arbitrary :: Gen ErrGroupDisconnect
arbitrary = Gen ErrGroupDisconnect
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_disconnect :: ToxPtr -> Word32 -> CErr ErrGroupDisconnect -> IO Bool
data ErrGroupReconnect
= ErrGroupReconnectGroupNotFound
| ErrGroupReconnectCore
deriving (ErrGroupReconnect -> ErrGroupReconnect -> Bool
(ErrGroupReconnect -> ErrGroupReconnect -> Bool)
-> (ErrGroupReconnect -> ErrGroupReconnect -> Bool)
-> Eq ErrGroupReconnect
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
$c/= :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
== :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
$c== :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
Eq, Eq ErrGroupReconnect
Eq ErrGroupReconnect
-> (ErrGroupReconnect -> ErrGroupReconnect -> Ordering)
-> (ErrGroupReconnect -> ErrGroupReconnect -> Bool)
-> (ErrGroupReconnect -> ErrGroupReconnect -> Bool)
-> (ErrGroupReconnect -> ErrGroupReconnect -> Bool)
-> (ErrGroupReconnect -> ErrGroupReconnect -> Bool)
-> (ErrGroupReconnect -> ErrGroupReconnect -> ErrGroupReconnect)
-> (ErrGroupReconnect -> ErrGroupReconnect -> ErrGroupReconnect)
-> Ord ErrGroupReconnect
ErrGroupReconnect -> ErrGroupReconnect -> Bool
ErrGroupReconnect -> ErrGroupReconnect -> Ordering
ErrGroupReconnect -> ErrGroupReconnect -> ErrGroupReconnect
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupReconnect -> ErrGroupReconnect -> ErrGroupReconnect
$cmin :: ErrGroupReconnect -> ErrGroupReconnect -> ErrGroupReconnect
max :: ErrGroupReconnect -> ErrGroupReconnect -> ErrGroupReconnect
$cmax :: ErrGroupReconnect -> ErrGroupReconnect -> ErrGroupReconnect
>= :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
$c>= :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
> :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
$c> :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
<= :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
$c<= :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
< :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
$c< :: ErrGroupReconnect -> ErrGroupReconnect -> Bool
compare :: ErrGroupReconnect -> ErrGroupReconnect -> Ordering
$ccompare :: ErrGroupReconnect -> ErrGroupReconnect -> Ordering
$cp1Ord :: Eq ErrGroupReconnect
Ord, Int -> ErrGroupReconnect
ErrGroupReconnect -> Int
ErrGroupReconnect -> [ErrGroupReconnect]
ErrGroupReconnect -> ErrGroupReconnect
ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect]
ErrGroupReconnect
-> ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect]
(ErrGroupReconnect -> ErrGroupReconnect)
-> (ErrGroupReconnect -> ErrGroupReconnect)
-> (Int -> ErrGroupReconnect)
-> (ErrGroupReconnect -> Int)
-> (ErrGroupReconnect -> [ErrGroupReconnect])
-> (ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect])
-> (ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect])
-> (ErrGroupReconnect
-> ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect])
-> Enum ErrGroupReconnect
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupReconnect
-> ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect]
$cenumFromThenTo :: ErrGroupReconnect
-> ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect]
enumFromTo :: ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect]
$cenumFromTo :: ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect]
enumFromThen :: ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect]
$cenumFromThen :: ErrGroupReconnect -> ErrGroupReconnect -> [ErrGroupReconnect]
enumFrom :: ErrGroupReconnect -> [ErrGroupReconnect]
$cenumFrom :: ErrGroupReconnect -> [ErrGroupReconnect]
fromEnum :: ErrGroupReconnect -> Int
$cfromEnum :: ErrGroupReconnect -> Int
toEnum :: Int -> ErrGroupReconnect
$ctoEnum :: Int -> ErrGroupReconnect
pred :: ErrGroupReconnect -> ErrGroupReconnect
$cpred :: ErrGroupReconnect -> ErrGroupReconnect
succ :: ErrGroupReconnect -> ErrGroupReconnect
$csucc :: ErrGroupReconnect -> ErrGroupReconnect
Enum, ErrGroupReconnect
ErrGroupReconnect -> ErrGroupReconnect -> Bounded ErrGroupReconnect
forall a. a -> a -> Bounded a
maxBound :: ErrGroupReconnect
$cmaxBound :: ErrGroupReconnect
minBound :: ErrGroupReconnect
$cminBound :: ErrGroupReconnect
Bounded, ReadPrec [ErrGroupReconnect]
ReadPrec ErrGroupReconnect
Int -> ReadS ErrGroupReconnect
ReadS [ErrGroupReconnect]
(Int -> ReadS ErrGroupReconnect)
-> ReadS [ErrGroupReconnect]
-> ReadPrec ErrGroupReconnect
-> ReadPrec [ErrGroupReconnect]
-> Read ErrGroupReconnect
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupReconnect]
$creadListPrec :: ReadPrec [ErrGroupReconnect]
readPrec :: ReadPrec ErrGroupReconnect
$creadPrec :: ReadPrec ErrGroupReconnect
readList :: ReadS [ErrGroupReconnect]
$creadList :: ReadS [ErrGroupReconnect]
readsPrec :: Int -> ReadS ErrGroupReconnect
$creadsPrec :: Int -> ReadS ErrGroupReconnect
Read, Int -> ErrGroupReconnect -> ShowS
[ErrGroupReconnect] -> ShowS
ErrGroupReconnect -> String
(Int -> ErrGroupReconnect -> ShowS)
-> (ErrGroupReconnect -> String)
-> ([ErrGroupReconnect] -> ShowS)
-> Show ErrGroupReconnect
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupReconnect] -> ShowS
$cshowList :: [ErrGroupReconnect] -> ShowS
show :: ErrGroupReconnect -> String
$cshow :: ErrGroupReconnect -> String
showsPrec :: Int -> ErrGroupReconnect -> ShowS
$cshowsPrec :: Int -> ErrGroupReconnect -> ShowS
Show, (forall x. ErrGroupReconnect -> Rep ErrGroupReconnect x)
-> (forall x. Rep ErrGroupReconnect x -> ErrGroupReconnect)
-> Generic ErrGroupReconnect
forall x. Rep ErrGroupReconnect x -> ErrGroupReconnect
forall x. ErrGroupReconnect -> Rep ErrGroupReconnect x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupReconnect x -> ErrGroupReconnect
$cfrom :: forall x. ErrGroupReconnect -> Rep ErrGroupReconnect x
Generic)
instance MessagePack ErrGroupReconnect
instance Arbitrary ErrGroupReconnect where arbitrary :: Gen ErrGroupReconnect
arbitrary = Gen ErrGroupReconnect
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_reconnect :: ToxPtr -> Word32 -> CErr ErrGroupReconnect -> IO Bool
data ErrGroupLeave
= ErrGroupLeaveGroupNotFound
| ErrGroupLeaveTooLong
| ErrGroupLeaveFailSend
deriving (ErrGroupLeave -> ErrGroupLeave -> Bool
(ErrGroupLeave -> ErrGroupLeave -> Bool)
-> (ErrGroupLeave -> ErrGroupLeave -> Bool) -> Eq ErrGroupLeave
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupLeave -> ErrGroupLeave -> Bool
$c/= :: ErrGroupLeave -> ErrGroupLeave -> Bool
== :: ErrGroupLeave -> ErrGroupLeave -> Bool
$c== :: ErrGroupLeave -> ErrGroupLeave -> Bool
Eq, Eq ErrGroupLeave
Eq ErrGroupLeave
-> (ErrGroupLeave -> ErrGroupLeave -> Ordering)
-> (ErrGroupLeave -> ErrGroupLeave -> Bool)
-> (ErrGroupLeave -> ErrGroupLeave -> Bool)
-> (ErrGroupLeave -> ErrGroupLeave -> Bool)
-> (ErrGroupLeave -> ErrGroupLeave -> Bool)
-> (ErrGroupLeave -> ErrGroupLeave -> ErrGroupLeave)
-> (ErrGroupLeave -> ErrGroupLeave -> ErrGroupLeave)
-> Ord ErrGroupLeave
ErrGroupLeave -> ErrGroupLeave -> Bool
ErrGroupLeave -> ErrGroupLeave -> Ordering
ErrGroupLeave -> ErrGroupLeave -> ErrGroupLeave
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupLeave -> ErrGroupLeave -> ErrGroupLeave
$cmin :: ErrGroupLeave -> ErrGroupLeave -> ErrGroupLeave
max :: ErrGroupLeave -> ErrGroupLeave -> ErrGroupLeave
$cmax :: ErrGroupLeave -> ErrGroupLeave -> ErrGroupLeave
>= :: ErrGroupLeave -> ErrGroupLeave -> Bool
$c>= :: ErrGroupLeave -> ErrGroupLeave -> Bool
> :: ErrGroupLeave -> ErrGroupLeave -> Bool
$c> :: ErrGroupLeave -> ErrGroupLeave -> Bool
<= :: ErrGroupLeave -> ErrGroupLeave -> Bool
$c<= :: ErrGroupLeave -> ErrGroupLeave -> Bool
< :: ErrGroupLeave -> ErrGroupLeave -> Bool
$c< :: ErrGroupLeave -> ErrGroupLeave -> Bool
compare :: ErrGroupLeave -> ErrGroupLeave -> Ordering
$ccompare :: ErrGroupLeave -> ErrGroupLeave -> Ordering
$cp1Ord :: Eq ErrGroupLeave
Ord, Int -> ErrGroupLeave
ErrGroupLeave -> Int
ErrGroupLeave -> [ErrGroupLeave]
ErrGroupLeave -> ErrGroupLeave
ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave]
ErrGroupLeave -> ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave]
(ErrGroupLeave -> ErrGroupLeave)
-> (ErrGroupLeave -> ErrGroupLeave)
-> (Int -> ErrGroupLeave)
-> (ErrGroupLeave -> Int)
-> (ErrGroupLeave -> [ErrGroupLeave])
-> (ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave])
-> (ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave])
-> (ErrGroupLeave
-> ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave])
-> Enum ErrGroupLeave
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupLeave -> ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave]
$cenumFromThenTo :: ErrGroupLeave -> ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave]
enumFromTo :: ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave]
$cenumFromTo :: ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave]
enumFromThen :: ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave]
$cenumFromThen :: ErrGroupLeave -> ErrGroupLeave -> [ErrGroupLeave]
enumFrom :: ErrGroupLeave -> [ErrGroupLeave]
$cenumFrom :: ErrGroupLeave -> [ErrGroupLeave]
fromEnum :: ErrGroupLeave -> Int
$cfromEnum :: ErrGroupLeave -> Int
toEnum :: Int -> ErrGroupLeave
$ctoEnum :: Int -> ErrGroupLeave
pred :: ErrGroupLeave -> ErrGroupLeave
$cpred :: ErrGroupLeave -> ErrGroupLeave
succ :: ErrGroupLeave -> ErrGroupLeave
$csucc :: ErrGroupLeave -> ErrGroupLeave
Enum, ErrGroupLeave
ErrGroupLeave -> ErrGroupLeave -> Bounded ErrGroupLeave
forall a. a -> a -> Bounded a
maxBound :: ErrGroupLeave
$cmaxBound :: ErrGroupLeave
minBound :: ErrGroupLeave
$cminBound :: ErrGroupLeave
Bounded, ReadPrec [ErrGroupLeave]
ReadPrec ErrGroupLeave
Int -> ReadS ErrGroupLeave
ReadS [ErrGroupLeave]
(Int -> ReadS ErrGroupLeave)
-> ReadS [ErrGroupLeave]
-> ReadPrec ErrGroupLeave
-> ReadPrec [ErrGroupLeave]
-> Read ErrGroupLeave
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupLeave]
$creadListPrec :: ReadPrec [ErrGroupLeave]
readPrec :: ReadPrec ErrGroupLeave
$creadPrec :: ReadPrec ErrGroupLeave
readList :: ReadS [ErrGroupLeave]
$creadList :: ReadS [ErrGroupLeave]
readsPrec :: Int -> ReadS ErrGroupLeave
$creadsPrec :: Int -> ReadS ErrGroupLeave
Read, Int -> ErrGroupLeave -> ShowS
[ErrGroupLeave] -> ShowS
ErrGroupLeave -> String
(Int -> ErrGroupLeave -> ShowS)
-> (ErrGroupLeave -> String)
-> ([ErrGroupLeave] -> ShowS)
-> Show ErrGroupLeave
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupLeave] -> ShowS
$cshowList :: [ErrGroupLeave] -> ShowS
show :: ErrGroupLeave -> String
$cshow :: ErrGroupLeave -> String
showsPrec :: Int -> ErrGroupLeave -> ShowS
$cshowsPrec :: Int -> ErrGroupLeave -> ShowS
Show, (forall x. ErrGroupLeave -> Rep ErrGroupLeave x)
-> (forall x. Rep ErrGroupLeave x -> ErrGroupLeave)
-> Generic ErrGroupLeave
forall x. Rep ErrGroupLeave x -> ErrGroupLeave
forall x. ErrGroupLeave -> Rep ErrGroupLeave x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupLeave x -> ErrGroupLeave
$cfrom :: forall x. ErrGroupLeave -> Rep ErrGroupLeave x
Generic)
instance MessagePack ErrGroupLeave
instance Arbitrary ErrGroupLeave where arbitrary :: Gen ErrGroupLeave
arbitrary = Gen ErrGroupLeave
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_leave :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrGroupLeave -> IO Bool
data ErrGroupSelfQuery
= ErrGroupSelfQueryGroupNotFound
deriving (ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
(ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool)
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool)
-> Eq ErrGroupSelfQuery
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
$c/= :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
== :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
$c== :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
Eq, Eq ErrGroupSelfQuery
Eq ErrGroupSelfQuery
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery -> Ordering)
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool)
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool)
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool)
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool)
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery -> ErrGroupSelfQuery)
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery -> ErrGroupSelfQuery)
-> Ord ErrGroupSelfQuery
ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
ErrGroupSelfQuery -> ErrGroupSelfQuery -> Ordering
ErrGroupSelfQuery -> ErrGroupSelfQuery -> ErrGroupSelfQuery
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> ErrGroupSelfQuery
$cmin :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> ErrGroupSelfQuery
max :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> ErrGroupSelfQuery
$cmax :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> ErrGroupSelfQuery
>= :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
$c>= :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
> :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
$c> :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
<= :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
$c<= :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
< :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
$c< :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bool
compare :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Ordering
$ccompare :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> Ordering
$cp1Ord :: Eq ErrGroupSelfQuery
Ord, Int -> ErrGroupSelfQuery
ErrGroupSelfQuery -> Int
ErrGroupSelfQuery -> [ErrGroupSelfQuery]
ErrGroupSelfQuery -> ErrGroupSelfQuery
ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery]
ErrGroupSelfQuery
-> ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery]
(ErrGroupSelfQuery -> ErrGroupSelfQuery)
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery)
-> (Int -> ErrGroupSelfQuery)
-> (ErrGroupSelfQuery -> Int)
-> (ErrGroupSelfQuery -> [ErrGroupSelfQuery])
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery])
-> (ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery])
-> (ErrGroupSelfQuery
-> ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery])
-> Enum ErrGroupSelfQuery
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSelfQuery
-> ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery]
$cenumFromThenTo :: ErrGroupSelfQuery
-> ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery]
enumFromTo :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery]
$cenumFromTo :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery]
enumFromThen :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery]
$cenumFromThen :: ErrGroupSelfQuery -> ErrGroupSelfQuery -> [ErrGroupSelfQuery]
enumFrom :: ErrGroupSelfQuery -> [ErrGroupSelfQuery]
$cenumFrom :: ErrGroupSelfQuery -> [ErrGroupSelfQuery]
fromEnum :: ErrGroupSelfQuery -> Int
$cfromEnum :: ErrGroupSelfQuery -> Int
toEnum :: Int -> ErrGroupSelfQuery
$ctoEnum :: Int -> ErrGroupSelfQuery
pred :: ErrGroupSelfQuery -> ErrGroupSelfQuery
$cpred :: ErrGroupSelfQuery -> ErrGroupSelfQuery
succ :: ErrGroupSelfQuery -> ErrGroupSelfQuery
$csucc :: ErrGroupSelfQuery -> ErrGroupSelfQuery
Enum, ErrGroupSelfQuery
ErrGroupSelfQuery -> ErrGroupSelfQuery -> Bounded ErrGroupSelfQuery
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSelfQuery
$cmaxBound :: ErrGroupSelfQuery
minBound :: ErrGroupSelfQuery
$cminBound :: ErrGroupSelfQuery
Bounded, ReadPrec [ErrGroupSelfQuery]
ReadPrec ErrGroupSelfQuery
Int -> ReadS ErrGroupSelfQuery
ReadS [ErrGroupSelfQuery]
(Int -> ReadS ErrGroupSelfQuery)
-> ReadS [ErrGroupSelfQuery]
-> ReadPrec ErrGroupSelfQuery
-> ReadPrec [ErrGroupSelfQuery]
-> Read ErrGroupSelfQuery
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSelfQuery]
$creadListPrec :: ReadPrec [ErrGroupSelfQuery]
readPrec :: ReadPrec ErrGroupSelfQuery
$creadPrec :: ReadPrec ErrGroupSelfQuery
readList :: ReadS [ErrGroupSelfQuery]
$creadList :: ReadS [ErrGroupSelfQuery]
readsPrec :: Int -> ReadS ErrGroupSelfQuery
$creadsPrec :: Int -> ReadS ErrGroupSelfQuery
Read, Int -> ErrGroupSelfQuery -> ShowS
[ErrGroupSelfQuery] -> ShowS
ErrGroupSelfQuery -> String
(Int -> ErrGroupSelfQuery -> ShowS)
-> (ErrGroupSelfQuery -> String)
-> ([ErrGroupSelfQuery] -> ShowS)
-> Show ErrGroupSelfQuery
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSelfQuery] -> ShowS
$cshowList :: [ErrGroupSelfQuery] -> ShowS
show :: ErrGroupSelfQuery -> String
$cshow :: ErrGroupSelfQuery -> String
showsPrec :: Int -> ErrGroupSelfQuery -> ShowS
$cshowsPrec :: Int -> ErrGroupSelfQuery -> ShowS
Show, (forall x. ErrGroupSelfQuery -> Rep ErrGroupSelfQuery x)
-> (forall x. Rep ErrGroupSelfQuery x -> ErrGroupSelfQuery)
-> Generic ErrGroupSelfQuery
forall x. Rep ErrGroupSelfQuery x -> ErrGroupSelfQuery
forall x. ErrGroupSelfQuery -> Rep ErrGroupSelfQuery x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSelfQuery x -> ErrGroupSelfQuery
$cfrom :: forall x. ErrGroupSelfQuery -> Rep ErrGroupSelfQuery x
Generic)
instance MessagePack ErrGroupSelfQuery
instance Arbitrary ErrGroupSelfQuery where arbitrary :: Gen ErrGroupSelfQuery
arbitrary = Gen ErrGroupSelfQuery
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data ErrGroupSelfNameSet
= ErrGroupSelfNameSetGroupNotFound
| ErrGroupSelfNameSetTooLong
| ErrGroupSelfNameSetInvalid
| ErrGroupSelfNameSetFailSend
deriving (ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
(ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool)
-> (ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool)
-> Eq ErrGroupSelfNameSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
$c/= :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
== :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
$c== :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
Eq, Eq ErrGroupSelfNameSet
Eq ErrGroupSelfNameSet
-> (ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Ordering)
-> (ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool)
-> (ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool)
-> (ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool)
-> (ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool)
-> (ErrGroupSelfNameSet
-> ErrGroupSelfNameSet -> ErrGroupSelfNameSet)
-> (ErrGroupSelfNameSet
-> ErrGroupSelfNameSet -> ErrGroupSelfNameSet)
-> Ord ErrGroupSelfNameSet
ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Ordering
ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> ErrGroupSelfNameSet
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> ErrGroupSelfNameSet
$cmin :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> ErrGroupSelfNameSet
max :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> ErrGroupSelfNameSet
$cmax :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> ErrGroupSelfNameSet
>= :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
$c>= :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
> :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
$c> :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
<= :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
$c<= :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
< :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
$c< :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Bool
compare :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Ordering
$ccompare :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> Ordering
$cp1Ord :: Eq ErrGroupSelfNameSet
Ord, Int -> ErrGroupSelfNameSet
ErrGroupSelfNameSet -> Int
ErrGroupSelfNameSet -> [ErrGroupSelfNameSet]
ErrGroupSelfNameSet -> ErrGroupSelfNameSet
ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> [ErrGroupSelfNameSet]
ErrGroupSelfNameSet
-> ErrGroupSelfNameSet
-> ErrGroupSelfNameSet
-> [ErrGroupSelfNameSet]
(ErrGroupSelfNameSet -> ErrGroupSelfNameSet)
-> (ErrGroupSelfNameSet -> ErrGroupSelfNameSet)
-> (Int -> ErrGroupSelfNameSet)
-> (ErrGroupSelfNameSet -> Int)
-> (ErrGroupSelfNameSet -> [ErrGroupSelfNameSet])
-> (ErrGroupSelfNameSet
-> ErrGroupSelfNameSet -> [ErrGroupSelfNameSet])
-> (ErrGroupSelfNameSet
-> ErrGroupSelfNameSet -> [ErrGroupSelfNameSet])
-> (ErrGroupSelfNameSet
-> ErrGroupSelfNameSet
-> ErrGroupSelfNameSet
-> [ErrGroupSelfNameSet])
-> Enum ErrGroupSelfNameSet
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSelfNameSet
-> ErrGroupSelfNameSet
-> ErrGroupSelfNameSet
-> [ErrGroupSelfNameSet]
$cenumFromThenTo :: ErrGroupSelfNameSet
-> ErrGroupSelfNameSet
-> ErrGroupSelfNameSet
-> [ErrGroupSelfNameSet]
enumFromTo :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> [ErrGroupSelfNameSet]
$cenumFromTo :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> [ErrGroupSelfNameSet]
enumFromThen :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> [ErrGroupSelfNameSet]
$cenumFromThen :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet -> [ErrGroupSelfNameSet]
enumFrom :: ErrGroupSelfNameSet -> [ErrGroupSelfNameSet]
$cenumFrom :: ErrGroupSelfNameSet -> [ErrGroupSelfNameSet]
fromEnum :: ErrGroupSelfNameSet -> Int
$cfromEnum :: ErrGroupSelfNameSet -> Int
toEnum :: Int -> ErrGroupSelfNameSet
$ctoEnum :: Int -> ErrGroupSelfNameSet
pred :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet
$cpred :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet
succ :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet
$csucc :: ErrGroupSelfNameSet -> ErrGroupSelfNameSet
Enum, ErrGroupSelfNameSet
ErrGroupSelfNameSet
-> ErrGroupSelfNameSet -> Bounded ErrGroupSelfNameSet
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSelfNameSet
$cmaxBound :: ErrGroupSelfNameSet
minBound :: ErrGroupSelfNameSet
$cminBound :: ErrGroupSelfNameSet
Bounded, ReadPrec [ErrGroupSelfNameSet]
ReadPrec ErrGroupSelfNameSet
Int -> ReadS ErrGroupSelfNameSet
ReadS [ErrGroupSelfNameSet]
(Int -> ReadS ErrGroupSelfNameSet)
-> ReadS [ErrGroupSelfNameSet]
-> ReadPrec ErrGroupSelfNameSet
-> ReadPrec [ErrGroupSelfNameSet]
-> Read ErrGroupSelfNameSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSelfNameSet]
$creadListPrec :: ReadPrec [ErrGroupSelfNameSet]
readPrec :: ReadPrec ErrGroupSelfNameSet
$creadPrec :: ReadPrec ErrGroupSelfNameSet
readList :: ReadS [ErrGroupSelfNameSet]
$creadList :: ReadS [ErrGroupSelfNameSet]
readsPrec :: Int -> ReadS ErrGroupSelfNameSet
$creadsPrec :: Int -> ReadS ErrGroupSelfNameSet
Read, Int -> ErrGroupSelfNameSet -> ShowS
[ErrGroupSelfNameSet] -> ShowS
ErrGroupSelfNameSet -> String
(Int -> ErrGroupSelfNameSet -> ShowS)
-> (ErrGroupSelfNameSet -> String)
-> ([ErrGroupSelfNameSet] -> ShowS)
-> Show ErrGroupSelfNameSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSelfNameSet] -> ShowS
$cshowList :: [ErrGroupSelfNameSet] -> ShowS
show :: ErrGroupSelfNameSet -> String
$cshow :: ErrGroupSelfNameSet -> String
showsPrec :: Int -> ErrGroupSelfNameSet -> ShowS
$cshowsPrec :: Int -> ErrGroupSelfNameSet -> ShowS
Show, (forall x. ErrGroupSelfNameSet -> Rep ErrGroupSelfNameSet x)
-> (forall x. Rep ErrGroupSelfNameSet x -> ErrGroupSelfNameSet)
-> Generic ErrGroupSelfNameSet
forall x. Rep ErrGroupSelfNameSet x -> ErrGroupSelfNameSet
forall x. ErrGroupSelfNameSet -> Rep ErrGroupSelfNameSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSelfNameSet x -> ErrGroupSelfNameSet
$cfrom :: forall x. ErrGroupSelfNameSet -> Rep ErrGroupSelfNameSet x
Generic)
instance MessagePack ErrGroupSelfNameSet
instance Arbitrary ErrGroupSelfNameSet where arbitrary :: Gen ErrGroupSelfNameSet
arbitrary = Gen ErrGroupSelfNameSet
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_self_set_name :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrGroupSelfNameSet -> IO Bool
foreign import ccall tox_group_self_get_name_size :: ToxPtr -> Word32 -> CErr ErrGroupSelfQuery -> IO CSize
foreign import ccall tox_group_self_get_name :: ToxPtr -> Word32 -> CString -> CErr ErrGroupSelfQuery -> IO Bool
data ErrGroupSelfStatusSet
= ErrGroupSelfStatusSetGroupNotFound
| ErrGroupSelfStatusSetFailSend
deriving (ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
(ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool)
-> (ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool)
-> Eq ErrGroupSelfStatusSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
$c/= :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
== :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
$c== :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
Eq, Eq ErrGroupSelfStatusSet
Eq ErrGroupSelfStatusSet
-> (ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Ordering)
-> (ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool)
-> (ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool)
-> (ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool)
-> (ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool)
-> (ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet)
-> (ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet)
-> Ord ErrGroupSelfStatusSet
ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Ordering
ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet
$cmin :: ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet
max :: ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet
$cmax :: ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet
>= :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
$c>= :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
> :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
$c> :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
<= :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
$c<= :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
< :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
$c< :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Bool
compare :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Ordering
$ccompare :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet -> Ordering
$cp1Ord :: Eq ErrGroupSelfStatusSet
Ord, Int -> ErrGroupSelfStatusSet
ErrGroupSelfStatusSet -> Int
ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet]
ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet
ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet]
ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet
-> [ErrGroupSelfStatusSet]
(ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet)
-> (ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet)
-> (Int -> ErrGroupSelfStatusSet)
-> (ErrGroupSelfStatusSet -> Int)
-> (ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet])
-> (ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet])
-> (ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet])
-> (ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet
-> [ErrGroupSelfStatusSet])
-> Enum ErrGroupSelfStatusSet
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet
-> [ErrGroupSelfStatusSet]
$cenumFromThenTo :: ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet
-> [ErrGroupSelfStatusSet]
enumFromTo :: ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet]
$cenumFromTo :: ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet]
enumFromThen :: ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet]
$cenumFromThen :: ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet]
enumFrom :: ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet]
$cenumFrom :: ErrGroupSelfStatusSet -> [ErrGroupSelfStatusSet]
fromEnum :: ErrGroupSelfStatusSet -> Int
$cfromEnum :: ErrGroupSelfStatusSet -> Int
toEnum :: Int -> ErrGroupSelfStatusSet
$ctoEnum :: Int -> ErrGroupSelfStatusSet
pred :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet
$cpred :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet
succ :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet
$csucc :: ErrGroupSelfStatusSet -> ErrGroupSelfStatusSet
Enum, ErrGroupSelfStatusSet
ErrGroupSelfStatusSet
-> ErrGroupSelfStatusSet -> Bounded ErrGroupSelfStatusSet
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSelfStatusSet
$cmaxBound :: ErrGroupSelfStatusSet
minBound :: ErrGroupSelfStatusSet
$cminBound :: ErrGroupSelfStatusSet
Bounded, ReadPrec [ErrGroupSelfStatusSet]
ReadPrec ErrGroupSelfStatusSet
Int -> ReadS ErrGroupSelfStatusSet
ReadS [ErrGroupSelfStatusSet]
(Int -> ReadS ErrGroupSelfStatusSet)
-> ReadS [ErrGroupSelfStatusSet]
-> ReadPrec ErrGroupSelfStatusSet
-> ReadPrec [ErrGroupSelfStatusSet]
-> Read ErrGroupSelfStatusSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSelfStatusSet]
$creadListPrec :: ReadPrec [ErrGroupSelfStatusSet]
readPrec :: ReadPrec ErrGroupSelfStatusSet
$creadPrec :: ReadPrec ErrGroupSelfStatusSet
readList :: ReadS [ErrGroupSelfStatusSet]
$creadList :: ReadS [ErrGroupSelfStatusSet]
readsPrec :: Int -> ReadS ErrGroupSelfStatusSet
$creadsPrec :: Int -> ReadS ErrGroupSelfStatusSet
Read, Int -> ErrGroupSelfStatusSet -> ShowS
[ErrGroupSelfStatusSet] -> ShowS
ErrGroupSelfStatusSet -> String
(Int -> ErrGroupSelfStatusSet -> ShowS)
-> (ErrGroupSelfStatusSet -> String)
-> ([ErrGroupSelfStatusSet] -> ShowS)
-> Show ErrGroupSelfStatusSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSelfStatusSet] -> ShowS
$cshowList :: [ErrGroupSelfStatusSet] -> ShowS
show :: ErrGroupSelfStatusSet -> String
$cshow :: ErrGroupSelfStatusSet -> String
showsPrec :: Int -> ErrGroupSelfStatusSet -> ShowS
$cshowsPrec :: Int -> ErrGroupSelfStatusSet -> ShowS
Show, (forall x. ErrGroupSelfStatusSet -> Rep ErrGroupSelfStatusSet x)
-> (forall x. Rep ErrGroupSelfStatusSet x -> ErrGroupSelfStatusSet)
-> Generic ErrGroupSelfStatusSet
forall x. Rep ErrGroupSelfStatusSet x -> ErrGroupSelfStatusSet
forall x. ErrGroupSelfStatusSet -> Rep ErrGroupSelfStatusSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSelfStatusSet x -> ErrGroupSelfStatusSet
$cfrom :: forall x. ErrGroupSelfStatusSet -> Rep ErrGroupSelfStatusSet x
Generic)
instance MessagePack ErrGroupSelfStatusSet
instance Arbitrary ErrGroupSelfStatusSet where arbitrary :: Gen ErrGroupSelfStatusSet
arbitrary = Gen ErrGroupSelfStatusSet
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_self_set_status :: ToxPtr -> Word32 -> CEnum UserStatus -> CErr ErrGroupSelfStatusSet -> IO Bool
foreign import ccall tox_group_self_get_status :: ToxPtr -> Word32 -> CErr ErrGroupSelfQuery -> IO (CEnum UserStatus)
foreign import ccall tox_group_self_get_role :: ToxPtr -> Word32 -> CErr ErrGroupSelfQuery -> IO (CEnum GroupRole)
foreign import ccall tox_group_self_get_peer_id :: ToxPtr -> Word32 -> CErr ErrGroupSelfQuery -> IO Word32
foreign import ccall tox_group_self_get_public_key :: ToxPtr -> Word32 -> CString -> CErr ErrGroupSelfQuery -> IO Bool
data ErrGroupPeerQuery
= ErrGroupPeerQueryGroupNotFound
| ErrGroupPeerQueryPeerNotFound
deriving (ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
(ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool)
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool)
-> Eq ErrGroupPeerQuery
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
$c/= :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
== :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
$c== :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
Eq, Eq ErrGroupPeerQuery
Eq ErrGroupPeerQuery
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery -> Ordering)
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool)
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool)
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool)
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool)
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery -> ErrGroupPeerQuery)
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery -> ErrGroupPeerQuery)
-> Ord ErrGroupPeerQuery
ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
ErrGroupPeerQuery -> ErrGroupPeerQuery -> Ordering
ErrGroupPeerQuery -> ErrGroupPeerQuery -> ErrGroupPeerQuery
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> ErrGroupPeerQuery
$cmin :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> ErrGroupPeerQuery
max :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> ErrGroupPeerQuery
$cmax :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> ErrGroupPeerQuery
>= :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
$c>= :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
> :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
$c> :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
<= :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
$c<= :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
< :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
$c< :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bool
compare :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Ordering
$ccompare :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> Ordering
$cp1Ord :: Eq ErrGroupPeerQuery
Ord, Int -> ErrGroupPeerQuery
ErrGroupPeerQuery -> Int
ErrGroupPeerQuery -> [ErrGroupPeerQuery]
ErrGroupPeerQuery -> ErrGroupPeerQuery
ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery]
ErrGroupPeerQuery
-> ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery]
(ErrGroupPeerQuery -> ErrGroupPeerQuery)
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery)
-> (Int -> ErrGroupPeerQuery)
-> (ErrGroupPeerQuery -> Int)
-> (ErrGroupPeerQuery -> [ErrGroupPeerQuery])
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery])
-> (ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery])
-> (ErrGroupPeerQuery
-> ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery])
-> Enum ErrGroupPeerQuery
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupPeerQuery
-> ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery]
$cenumFromThenTo :: ErrGroupPeerQuery
-> ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery]
enumFromTo :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery]
$cenumFromTo :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery]
enumFromThen :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery]
$cenumFromThen :: ErrGroupPeerQuery -> ErrGroupPeerQuery -> [ErrGroupPeerQuery]
enumFrom :: ErrGroupPeerQuery -> [ErrGroupPeerQuery]
$cenumFrom :: ErrGroupPeerQuery -> [ErrGroupPeerQuery]
fromEnum :: ErrGroupPeerQuery -> Int
$cfromEnum :: ErrGroupPeerQuery -> Int
toEnum :: Int -> ErrGroupPeerQuery
$ctoEnum :: Int -> ErrGroupPeerQuery
pred :: ErrGroupPeerQuery -> ErrGroupPeerQuery
$cpred :: ErrGroupPeerQuery -> ErrGroupPeerQuery
succ :: ErrGroupPeerQuery -> ErrGroupPeerQuery
$csucc :: ErrGroupPeerQuery -> ErrGroupPeerQuery
Enum, ErrGroupPeerQuery
ErrGroupPeerQuery -> ErrGroupPeerQuery -> Bounded ErrGroupPeerQuery
forall a. a -> a -> Bounded a
maxBound :: ErrGroupPeerQuery
$cmaxBound :: ErrGroupPeerQuery
minBound :: ErrGroupPeerQuery
$cminBound :: ErrGroupPeerQuery
Bounded, ReadPrec [ErrGroupPeerQuery]
ReadPrec ErrGroupPeerQuery
Int -> ReadS ErrGroupPeerQuery
ReadS [ErrGroupPeerQuery]
(Int -> ReadS ErrGroupPeerQuery)
-> ReadS [ErrGroupPeerQuery]
-> ReadPrec ErrGroupPeerQuery
-> ReadPrec [ErrGroupPeerQuery]
-> Read ErrGroupPeerQuery
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupPeerQuery]
$creadListPrec :: ReadPrec [ErrGroupPeerQuery]
readPrec :: ReadPrec ErrGroupPeerQuery
$creadPrec :: ReadPrec ErrGroupPeerQuery
readList :: ReadS [ErrGroupPeerQuery]
$creadList :: ReadS [ErrGroupPeerQuery]
readsPrec :: Int -> ReadS ErrGroupPeerQuery
$creadsPrec :: Int -> ReadS ErrGroupPeerQuery
Read, Int -> ErrGroupPeerQuery -> ShowS
[ErrGroupPeerQuery] -> ShowS
ErrGroupPeerQuery -> String
(Int -> ErrGroupPeerQuery -> ShowS)
-> (ErrGroupPeerQuery -> String)
-> ([ErrGroupPeerQuery] -> ShowS)
-> Show ErrGroupPeerQuery
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupPeerQuery] -> ShowS
$cshowList :: [ErrGroupPeerQuery] -> ShowS
show :: ErrGroupPeerQuery -> String
$cshow :: ErrGroupPeerQuery -> String
showsPrec :: Int -> ErrGroupPeerQuery -> ShowS
$cshowsPrec :: Int -> ErrGroupPeerQuery -> ShowS
Show, (forall x. ErrGroupPeerQuery -> Rep ErrGroupPeerQuery x)
-> (forall x. Rep ErrGroupPeerQuery x -> ErrGroupPeerQuery)
-> Generic ErrGroupPeerQuery
forall x. Rep ErrGroupPeerQuery x -> ErrGroupPeerQuery
forall x. ErrGroupPeerQuery -> Rep ErrGroupPeerQuery x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupPeerQuery x -> ErrGroupPeerQuery
$cfrom :: forall x. ErrGroupPeerQuery -> Rep ErrGroupPeerQuery x
Generic)
instance MessagePack ErrGroupPeerQuery
instance Arbitrary ErrGroupPeerQuery where arbitrary :: Gen ErrGroupPeerQuery
arbitrary = Gen ErrGroupPeerQuery
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_peer_get_name_size :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupPeerQuery -> IO CSize
foreign import ccall tox_group_peer_get_name :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrGroupPeerQuery -> IO Bool
foreign import ccall tox_group_peer_get_status :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupPeerQuery -> IO (CEnum UserStatus)
foreign import ccall tox_group_peer_get_role :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupPeerQuery -> IO (CEnum GroupRole)
foreign import ccall tox_group_peer_get_connection_status :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupPeerQuery -> IO (CEnum Connection)
foreign import ccall tox_group_peer_get_public_key :: ToxPtr -> Word32 -> Word32 -> CString -> CErr ErrGroupPeerQuery -> IO Bool
type GroupPeerNameCb = ToxPtr -> Word32 -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupPeerNameCb :: GroupPeerNameCb -> IO (FunPtr GroupPeerNameCb)
foreign import ccall tox_callback_group_peer_name :: ToxPtr -> FunPtr GroupPeerNameCb -> IO ()
type GroupPeerStatusCb = ToxPtr -> Word32 -> Word32 -> CEnum UserStatus -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupPeerStatusCb :: GroupPeerStatusCb -> IO (FunPtr GroupPeerStatusCb)
foreign import ccall tox_callback_group_peer_status :: ToxPtr -> FunPtr GroupPeerStatusCb -> IO ()
data ErrGroupStateQueries
= ErrGroupStateQueriesGroupNotFound
deriving (ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
(ErrGroupStateQueries -> ErrGroupStateQueries -> Bool)
-> (ErrGroupStateQueries -> ErrGroupStateQueries -> Bool)
-> Eq ErrGroupStateQueries
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
$c/= :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
== :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
$c== :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
Eq, Eq ErrGroupStateQueries
Eq ErrGroupStateQueries
-> (ErrGroupStateQueries -> ErrGroupStateQueries -> Ordering)
-> (ErrGroupStateQueries -> ErrGroupStateQueries -> Bool)
-> (ErrGroupStateQueries -> ErrGroupStateQueries -> Bool)
-> (ErrGroupStateQueries -> ErrGroupStateQueries -> Bool)
-> (ErrGroupStateQueries -> ErrGroupStateQueries -> Bool)
-> (ErrGroupStateQueries
-> ErrGroupStateQueries -> ErrGroupStateQueries)
-> (ErrGroupStateQueries
-> ErrGroupStateQueries -> ErrGroupStateQueries)
-> Ord ErrGroupStateQueries
ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
ErrGroupStateQueries -> ErrGroupStateQueries -> Ordering
ErrGroupStateQueries
-> ErrGroupStateQueries -> ErrGroupStateQueries
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupStateQueries
-> ErrGroupStateQueries -> ErrGroupStateQueries
$cmin :: ErrGroupStateQueries
-> ErrGroupStateQueries -> ErrGroupStateQueries
max :: ErrGroupStateQueries
-> ErrGroupStateQueries -> ErrGroupStateQueries
$cmax :: ErrGroupStateQueries
-> ErrGroupStateQueries -> ErrGroupStateQueries
>= :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
$c>= :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
> :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
$c> :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
<= :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
$c<= :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
< :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
$c< :: ErrGroupStateQueries -> ErrGroupStateQueries -> Bool
compare :: ErrGroupStateQueries -> ErrGroupStateQueries -> Ordering
$ccompare :: ErrGroupStateQueries -> ErrGroupStateQueries -> Ordering
$cp1Ord :: Eq ErrGroupStateQueries
Ord, Int -> ErrGroupStateQueries
ErrGroupStateQueries -> Int
ErrGroupStateQueries -> [ErrGroupStateQueries]
ErrGroupStateQueries -> ErrGroupStateQueries
ErrGroupStateQueries
-> ErrGroupStateQueries -> [ErrGroupStateQueries]
ErrGroupStateQueries
-> ErrGroupStateQueries
-> ErrGroupStateQueries
-> [ErrGroupStateQueries]
(ErrGroupStateQueries -> ErrGroupStateQueries)
-> (ErrGroupStateQueries -> ErrGroupStateQueries)
-> (Int -> ErrGroupStateQueries)
-> (ErrGroupStateQueries -> Int)
-> (ErrGroupStateQueries -> [ErrGroupStateQueries])
-> (ErrGroupStateQueries
-> ErrGroupStateQueries -> [ErrGroupStateQueries])
-> (ErrGroupStateQueries
-> ErrGroupStateQueries -> [ErrGroupStateQueries])
-> (ErrGroupStateQueries
-> ErrGroupStateQueries
-> ErrGroupStateQueries
-> [ErrGroupStateQueries])
-> Enum ErrGroupStateQueries
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupStateQueries
-> ErrGroupStateQueries
-> ErrGroupStateQueries
-> [ErrGroupStateQueries]
$cenumFromThenTo :: ErrGroupStateQueries
-> ErrGroupStateQueries
-> ErrGroupStateQueries
-> [ErrGroupStateQueries]
enumFromTo :: ErrGroupStateQueries
-> ErrGroupStateQueries -> [ErrGroupStateQueries]
$cenumFromTo :: ErrGroupStateQueries
-> ErrGroupStateQueries -> [ErrGroupStateQueries]
enumFromThen :: ErrGroupStateQueries
-> ErrGroupStateQueries -> [ErrGroupStateQueries]
$cenumFromThen :: ErrGroupStateQueries
-> ErrGroupStateQueries -> [ErrGroupStateQueries]
enumFrom :: ErrGroupStateQueries -> [ErrGroupStateQueries]
$cenumFrom :: ErrGroupStateQueries -> [ErrGroupStateQueries]
fromEnum :: ErrGroupStateQueries -> Int
$cfromEnum :: ErrGroupStateQueries -> Int
toEnum :: Int -> ErrGroupStateQueries
$ctoEnum :: Int -> ErrGroupStateQueries
pred :: ErrGroupStateQueries -> ErrGroupStateQueries
$cpred :: ErrGroupStateQueries -> ErrGroupStateQueries
succ :: ErrGroupStateQueries -> ErrGroupStateQueries
$csucc :: ErrGroupStateQueries -> ErrGroupStateQueries
Enum, ErrGroupStateQueries
ErrGroupStateQueries
-> ErrGroupStateQueries -> Bounded ErrGroupStateQueries
forall a. a -> a -> Bounded a
maxBound :: ErrGroupStateQueries
$cmaxBound :: ErrGroupStateQueries
minBound :: ErrGroupStateQueries
$cminBound :: ErrGroupStateQueries
Bounded, ReadPrec [ErrGroupStateQueries]
ReadPrec ErrGroupStateQueries
Int -> ReadS ErrGroupStateQueries
ReadS [ErrGroupStateQueries]
(Int -> ReadS ErrGroupStateQueries)
-> ReadS [ErrGroupStateQueries]
-> ReadPrec ErrGroupStateQueries
-> ReadPrec [ErrGroupStateQueries]
-> Read ErrGroupStateQueries
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupStateQueries]
$creadListPrec :: ReadPrec [ErrGroupStateQueries]
readPrec :: ReadPrec ErrGroupStateQueries
$creadPrec :: ReadPrec ErrGroupStateQueries
readList :: ReadS [ErrGroupStateQueries]
$creadList :: ReadS [ErrGroupStateQueries]
readsPrec :: Int -> ReadS ErrGroupStateQueries
$creadsPrec :: Int -> ReadS ErrGroupStateQueries
Read, Int -> ErrGroupStateQueries -> ShowS
[ErrGroupStateQueries] -> ShowS
ErrGroupStateQueries -> String
(Int -> ErrGroupStateQueries -> ShowS)
-> (ErrGroupStateQueries -> String)
-> ([ErrGroupStateQueries] -> ShowS)
-> Show ErrGroupStateQueries
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupStateQueries] -> ShowS
$cshowList :: [ErrGroupStateQueries] -> ShowS
show :: ErrGroupStateQueries -> String
$cshow :: ErrGroupStateQueries -> String
showsPrec :: Int -> ErrGroupStateQueries -> ShowS
$cshowsPrec :: Int -> ErrGroupStateQueries -> ShowS
Show, (forall x. ErrGroupStateQueries -> Rep ErrGroupStateQueries x)
-> (forall x. Rep ErrGroupStateQueries x -> ErrGroupStateQueries)
-> Generic ErrGroupStateQueries
forall x. Rep ErrGroupStateQueries x -> ErrGroupStateQueries
forall x. ErrGroupStateQueries -> Rep ErrGroupStateQueries x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupStateQueries x -> ErrGroupStateQueries
$cfrom :: forall x. ErrGroupStateQueries -> Rep ErrGroupStateQueries x
Generic)
instance MessagePack ErrGroupStateQueries
instance Arbitrary ErrGroupStateQueries where arbitrary :: Gen ErrGroupStateQueries
arbitrary = Gen ErrGroupStateQueries
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
data ErrGroupTopicSet
= ErrGroupTopicSetGroupNotFound
| ErrGroupTopicSetTooLong
| ErrGroupTopicSetPermissions
| ErrGroupTopicSetFailCreate
| ErrGroupTopicSetFailSend
| ErrGroupTopicSetDisconnected
deriving (ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
(ErrGroupTopicSet -> ErrGroupTopicSet -> Bool)
-> (ErrGroupTopicSet -> ErrGroupTopicSet -> Bool)
-> Eq ErrGroupTopicSet
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
$c/= :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
== :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
$c== :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
Eq, Eq ErrGroupTopicSet
Eq ErrGroupTopicSet
-> (ErrGroupTopicSet -> ErrGroupTopicSet -> Ordering)
-> (ErrGroupTopicSet -> ErrGroupTopicSet -> Bool)
-> (ErrGroupTopicSet -> ErrGroupTopicSet -> Bool)
-> (ErrGroupTopicSet -> ErrGroupTopicSet -> Bool)
-> (ErrGroupTopicSet -> ErrGroupTopicSet -> Bool)
-> (ErrGroupTopicSet -> ErrGroupTopicSet -> ErrGroupTopicSet)
-> (ErrGroupTopicSet -> ErrGroupTopicSet -> ErrGroupTopicSet)
-> Ord ErrGroupTopicSet
ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
ErrGroupTopicSet -> ErrGroupTopicSet -> Ordering
ErrGroupTopicSet -> ErrGroupTopicSet -> ErrGroupTopicSet
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupTopicSet -> ErrGroupTopicSet -> ErrGroupTopicSet
$cmin :: ErrGroupTopicSet -> ErrGroupTopicSet -> ErrGroupTopicSet
max :: ErrGroupTopicSet -> ErrGroupTopicSet -> ErrGroupTopicSet
$cmax :: ErrGroupTopicSet -> ErrGroupTopicSet -> ErrGroupTopicSet
>= :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
$c>= :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
> :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
$c> :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
<= :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
$c<= :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
< :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
$c< :: ErrGroupTopicSet -> ErrGroupTopicSet -> Bool
compare :: ErrGroupTopicSet -> ErrGroupTopicSet -> Ordering
$ccompare :: ErrGroupTopicSet -> ErrGroupTopicSet -> Ordering
$cp1Ord :: Eq ErrGroupTopicSet
Ord, Int -> ErrGroupTopicSet
ErrGroupTopicSet -> Int
ErrGroupTopicSet -> [ErrGroupTopicSet]
ErrGroupTopicSet -> ErrGroupTopicSet
ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet]
ErrGroupTopicSet
-> ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet]
(ErrGroupTopicSet -> ErrGroupTopicSet)
-> (ErrGroupTopicSet -> ErrGroupTopicSet)
-> (Int -> ErrGroupTopicSet)
-> (ErrGroupTopicSet -> Int)
-> (ErrGroupTopicSet -> [ErrGroupTopicSet])
-> (ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet])
-> (ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet])
-> (ErrGroupTopicSet
-> ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet])
-> Enum ErrGroupTopicSet
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupTopicSet
-> ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet]
$cenumFromThenTo :: ErrGroupTopicSet
-> ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet]
enumFromTo :: ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet]
$cenumFromTo :: ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet]
enumFromThen :: ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet]
$cenumFromThen :: ErrGroupTopicSet -> ErrGroupTopicSet -> [ErrGroupTopicSet]
enumFrom :: ErrGroupTopicSet -> [ErrGroupTopicSet]
$cenumFrom :: ErrGroupTopicSet -> [ErrGroupTopicSet]
fromEnum :: ErrGroupTopicSet -> Int
$cfromEnum :: ErrGroupTopicSet -> Int
toEnum :: Int -> ErrGroupTopicSet
$ctoEnum :: Int -> ErrGroupTopicSet
pred :: ErrGroupTopicSet -> ErrGroupTopicSet
$cpred :: ErrGroupTopicSet -> ErrGroupTopicSet
succ :: ErrGroupTopicSet -> ErrGroupTopicSet
$csucc :: ErrGroupTopicSet -> ErrGroupTopicSet
Enum, ErrGroupTopicSet
ErrGroupTopicSet -> ErrGroupTopicSet -> Bounded ErrGroupTopicSet
forall a. a -> a -> Bounded a
maxBound :: ErrGroupTopicSet
$cmaxBound :: ErrGroupTopicSet
minBound :: ErrGroupTopicSet
$cminBound :: ErrGroupTopicSet
Bounded, ReadPrec [ErrGroupTopicSet]
ReadPrec ErrGroupTopicSet
Int -> ReadS ErrGroupTopicSet
ReadS [ErrGroupTopicSet]
(Int -> ReadS ErrGroupTopicSet)
-> ReadS [ErrGroupTopicSet]
-> ReadPrec ErrGroupTopicSet
-> ReadPrec [ErrGroupTopicSet]
-> Read ErrGroupTopicSet
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupTopicSet]
$creadListPrec :: ReadPrec [ErrGroupTopicSet]
readPrec :: ReadPrec ErrGroupTopicSet
$creadPrec :: ReadPrec ErrGroupTopicSet
readList :: ReadS [ErrGroupTopicSet]
$creadList :: ReadS [ErrGroupTopicSet]
readsPrec :: Int -> ReadS ErrGroupTopicSet
$creadsPrec :: Int -> ReadS ErrGroupTopicSet
Read, Int -> ErrGroupTopicSet -> ShowS
[ErrGroupTopicSet] -> ShowS
ErrGroupTopicSet -> String
(Int -> ErrGroupTopicSet -> ShowS)
-> (ErrGroupTopicSet -> String)
-> ([ErrGroupTopicSet] -> ShowS)
-> Show ErrGroupTopicSet
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupTopicSet] -> ShowS
$cshowList :: [ErrGroupTopicSet] -> ShowS
show :: ErrGroupTopicSet -> String
$cshow :: ErrGroupTopicSet -> String
showsPrec :: Int -> ErrGroupTopicSet -> ShowS
$cshowsPrec :: Int -> ErrGroupTopicSet -> ShowS
Show, (forall x. ErrGroupTopicSet -> Rep ErrGroupTopicSet x)
-> (forall x. Rep ErrGroupTopicSet x -> ErrGroupTopicSet)
-> Generic ErrGroupTopicSet
forall x. Rep ErrGroupTopicSet x -> ErrGroupTopicSet
forall x. ErrGroupTopicSet -> Rep ErrGroupTopicSet x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupTopicSet x -> ErrGroupTopicSet
$cfrom :: forall x. ErrGroupTopicSet -> Rep ErrGroupTopicSet x
Generic)
instance MessagePack ErrGroupTopicSet
instance Arbitrary ErrGroupTopicSet where arbitrary :: Gen ErrGroupTopicSet
arbitrary = Gen ErrGroupTopicSet
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_set_topic :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrGroupTopicSet -> IO Bool
foreign import ccall tox_group_get_topic_size :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO CSize
foreign import ccall tox_group_get_topic :: ToxPtr -> Word32 -> CString -> CErr ErrGroupStateQueries -> IO Bool
type GroupTopicCb = ToxPtr -> Word32 -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupTopicCb :: GroupTopicCb -> IO (FunPtr GroupTopicCb)
foreign import ccall tox_callback_group_topic :: ToxPtr -> FunPtr GroupTopicCb -> IO ()
foreign import ccall tox_group_get_name_size :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO CSize
foreign import ccall tox_group_get_name :: ToxPtr -> Word32 -> CString -> CErr ErrGroupStateQueries -> IO Bool
foreign import ccall tox_group_get_chat_id :: ToxPtr -> Word32 -> CString -> CErr ErrGroupStateQueries -> IO Bool
foreign import ccall tox_group_get_number_groups :: ToxPtr -> IO Word32
foreign import ccall tox_group_get_privacy_state :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO (CEnum GroupPrivacyState)
type GroupPrivacyStateCb = ToxPtr -> Word32 -> CEnum GroupPrivacyState -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupPrivacyStateCb :: GroupPrivacyStateCb -> IO (FunPtr GroupPrivacyStateCb)
foreign import ccall tox_callback_group_privacy_state :: ToxPtr -> FunPtr GroupPrivacyStateCb -> IO ()
foreign import ccall tox_group_get_voice_state :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO (CEnum GroupVoiceState)
type GroupVoiceStateCb = ToxPtr -> Word32 -> CEnum GroupVoiceState -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupVoiceStateCb :: GroupVoiceStateCb -> IO (FunPtr GroupVoiceStateCb)
foreign import ccall tox_callback_group_voice_state :: ToxPtr -> FunPtr GroupVoiceStateCb -> IO ()
foreign import ccall tox_group_get_topic_lock :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO (CEnum GroupTopicLock)
type GroupTopicLockCb = ToxPtr -> Word32 -> CEnum GroupTopicLock -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupTopicLockCb :: GroupTopicLockCb -> IO (FunPtr GroupTopicLockCb)
foreign import ccall tox_callback_group_topic_lock :: ToxPtr -> FunPtr GroupTopicLockCb -> IO ()
foreign import ccall tox_group_get_peer_limit :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO Word16
type GroupPeerLimitCb = ToxPtr -> Word32 -> Word32 -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupPeerLimitCb :: GroupPeerLimitCb -> IO (FunPtr GroupPeerLimitCb)
foreign import ccall tox_callback_group_peer_limit :: ToxPtr -> FunPtr GroupPeerLimitCb -> IO ()
foreign import ccall tox_group_get_password_size :: ToxPtr -> Word32 -> CErr ErrGroupStateQueries -> IO CSize
foreign import ccall tox_group_get_password :: ToxPtr -> Word32 -> CString -> CErr ErrGroupStateQueries -> IO Bool
type GroupPasswordCb = ToxPtr -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupPasswordCb :: GroupPasswordCb -> IO (FunPtr GroupPasswordCb)
foreign import ccall tox_callback_group_password :: ToxPtr -> FunPtr GroupPasswordCb -> IO ()
data ErrGroupSendMessage
= ErrGroupSendMessageGroupNotFound
| ErrGroupSendMessageTooLong
| ErrGroupSendMessageEmpty
| ErrGroupSendMessageBadType
| ErrGroupSendMessagePermissions
| ErrGroupSendMessageFailSend
| ErrGroupSendMessageDisconnected
deriving (ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
(ErrGroupSendMessage -> ErrGroupSendMessage -> Bool)
-> (ErrGroupSendMessage -> ErrGroupSendMessage -> Bool)
-> Eq ErrGroupSendMessage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
$c/= :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
== :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
$c== :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
Eq, Eq ErrGroupSendMessage
Eq ErrGroupSendMessage
-> (ErrGroupSendMessage -> ErrGroupSendMessage -> Ordering)
-> (ErrGroupSendMessage -> ErrGroupSendMessage -> Bool)
-> (ErrGroupSendMessage -> ErrGroupSendMessage -> Bool)
-> (ErrGroupSendMessage -> ErrGroupSendMessage -> Bool)
-> (ErrGroupSendMessage -> ErrGroupSendMessage -> Bool)
-> (ErrGroupSendMessage
-> ErrGroupSendMessage -> ErrGroupSendMessage)
-> (ErrGroupSendMessage
-> ErrGroupSendMessage -> ErrGroupSendMessage)
-> Ord ErrGroupSendMessage
ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
ErrGroupSendMessage -> ErrGroupSendMessage -> Ordering
ErrGroupSendMessage -> ErrGroupSendMessage -> ErrGroupSendMessage
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSendMessage -> ErrGroupSendMessage -> ErrGroupSendMessage
$cmin :: ErrGroupSendMessage -> ErrGroupSendMessage -> ErrGroupSendMessage
max :: ErrGroupSendMessage -> ErrGroupSendMessage -> ErrGroupSendMessage
$cmax :: ErrGroupSendMessage -> ErrGroupSendMessage -> ErrGroupSendMessage
>= :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
$c>= :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
> :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
$c> :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
<= :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
$c<= :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
< :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
$c< :: ErrGroupSendMessage -> ErrGroupSendMessage -> Bool
compare :: ErrGroupSendMessage -> ErrGroupSendMessage -> Ordering
$ccompare :: ErrGroupSendMessage -> ErrGroupSendMessage -> Ordering
$cp1Ord :: Eq ErrGroupSendMessage
Ord, Int -> ErrGroupSendMessage
ErrGroupSendMessage -> Int
ErrGroupSendMessage -> [ErrGroupSendMessage]
ErrGroupSendMessage -> ErrGroupSendMessage
ErrGroupSendMessage -> ErrGroupSendMessage -> [ErrGroupSendMessage]
ErrGroupSendMessage
-> ErrGroupSendMessage
-> ErrGroupSendMessage
-> [ErrGroupSendMessage]
(ErrGroupSendMessage -> ErrGroupSendMessage)
-> (ErrGroupSendMessage -> ErrGroupSendMessage)
-> (Int -> ErrGroupSendMessage)
-> (ErrGroupSendMessage -> Int)
-> (ErrGroupSendMessage -> [ErrGroupSendMessage])
-> (ErrGroupSendMessage
-> ErrGroupSendMessage -> [ErrGroupSendMessage])
-> (ErrGroupSendMessage
-> ErrGroupSendMessage -> [ErrGroupSendMessage])
-> (ErrGroupSendMessage
-> ErrGroupSendMessage
-> ErrGroupSendMessage
-> [ErrGroupSendMessage])
-> Enum ErrGroupSendMessage
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSendMessage
-> ErrGroupSendMessage
-> ErrGroupSendMessage
-> [ErrGroupSendMessage]
$cenumFromThenTo :: ErrGroupSendMessage
-> ErrGroupSendMessage
-> ErrGroupSendMessage
-> [ErrGroupSendMessage]
enumFromTo :: ErrGroupSendMessage -> ErrGroupSendMessage -> [ErrGroupSendMessage]
$cenumFromTo :: ErrGroupSendMessage -> ErrGroupSendMessage -> [ErrGroupSendMessage]
enumFromThen :: ErrGroupSendMessage -> ErrGroupSendMessage -> [ErrGroupSendMessage]
$cenumFromThen :: ErrGroupSendMessage -> ErrGroupSendMessage -> [ErrGroupSendMessage]
enumFrom :: ErrGroupSendMessage -> [ErrGroupSendMessage]
$cenumFrom :: ErrGroupSendMessage -> [ErrGroupSendMessage]
fromEnum :: ErrGroupSendMessage -> Int
$cfromEnum :: ErrGroupSendMessage -> Int
toEnum :: Int -> ErrGroupSendMessage
$ctoEnum :: Int -> ErrGroupSendMessage
pred :: ErrGroupSendMessage -> ErrGroupSendMessage
$cpred :: ErrGroupSendMessage -> ErrGroupSendMessage
succ :: ErrGroupSendMessage -> ErrGroupSendMessage
$csucc :: ErrGroupSendMessage -> ErrGroupSendMessage
Enum, ErrGroupSendMessage
ErrGroupSendMessage
-> ErrGroupSendMessage -> Bounded ErrGroupSendMessage
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSendMessage
$cmaxBound :: ErrGroupSendMessage
minBound :: ErrGroupSendMessage
$cminBound :: ErrGroupSendMessage
Bounded, ReadPrec [ErrGroupSendMessage]
ReadPrec ErrGroupSendMessage
Int -> ReadS ErrGroupSendMessage
ReadS [ErrGroupSendMessage]
(Int -> ReadS ErrGroupSendMessage)
-> ReadS [ErrGroupSendMessage]
-> ReadPrec ErrGroupSendMessage
-> ReadPrec [ErrGroupSendMessage]
-> Read ErrGroupSendMessage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSendMessage]
$creadListPrec :: ReadPrec [ErrGroupSendMessage]
readPrec :: ReadPrec ErrGroupSendMessage
$creadPrec :: ReadPrec ErrGroupSendMessage
readList :: ReadS [ErrGroupSendMessage]
$creadList :: ReadS [ErrGroupSendMessage]
readsPrec :: Int -> ReadS ErrGroupSendMessage
$creadsPrec :: Int -> ReadS ErrGroupSendMessage
Read, Int -> ErrGroupSendMessage -> ShowS
[ErrGroupSendMessage] -> ShowS
ErrGroupSendMessage -> String
(Int -> ErrGroupSendMessage -> ShowS)
-> (ErrGroupSendMessage -> String)
-> ([ErrGroupSendMessage] -> ShowS)
-> Show ErrGroupSendMessage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSendMessage] -> ShowS
$cshowList :: [ErrGroupSendMessage] -> ShowS
show :: ErrGroupSendMessage -> String
$cshow :: ErrGroupSendMessage -> String
showsPrec :: Int -> ErrGroupSendMessage -> ShowS
$cshowsPrec :: Int -> ErrGroupSendMessage -> ShowS
Show, (forall x. ErrGroupSendMessage -> Rep ErrGroupSendMessage x)
-> (forall x. Rep ErrGroupSendMessage x -> ErrGroupSendMessage)
-> Generic ErrGroupSendMessage
forall x. Rep ErrGroupSendMessage x -> ErrGroupSendMessage
forall x. ErrGroupSendMessage -> Rep ErrGroupSendMessage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSendMessage x -> ErrGroupSendMessage
$cfrom :: forall x. ErrGroupSendMessage -> Rep ErrGroupSendMessage x
Generic)
instance MessagePack ErrGroupSendMessage
instance Arbitrary ErrGroupSendMessage where arbitrary :: Gen ErrGroupSendMessage
arbitrary = Gen ErrGroupSendMessage
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_send_message :: ToxPtr -> Word32 -> CEnum MessageType -> CString -> CSize -> Ptr Word32 -> CErr ErrGroupSendMessage -> IO Bool
data ErrGroupSendPrivateMessage
= ErrGroupSendPrivateMessageGroupNotFound
| ErrGroupSendPrivateMessagePeerNotFound
| ErrGroupSendPrivateMessageTooLong
| ErrGroupSendPrivateMessageEmpty
| ErrGroupSendPrivateMessagePermissions
| ErrGroupSendPrivateMessageFailSend
| ErrGroupSendPrivateMessageDisconnected
| ErrGroupSendPrivateMessageBadType
deriving (ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
(ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool)
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> Bool)
-> Eq ErrGroupSendPrivateMessage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
$c/= :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
== :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
$c== :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
Eq, Eq ErrGroupSendPrivateMessage
Eq ErrGroupSendPrivateMessage
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> Ordering)
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> Bool)
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> Bool)
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> Bool)
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> Bool)
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage)
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage)
-> Ord ErrGroupSendPrivateMessage
ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> Ordering
ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage
$cmin :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage
max :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage
$cmax :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage
>= :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
$c>= :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
> :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
$c> :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
<= :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
$c<= :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
< :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
$c< :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage -> Bool
compare :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> Ordering
$ccompare :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> Ordering
$cp1Ord :: Eq ErrGroupSendPrivateMessage
Ord, Int -> ErrGroupSendPrivateMessage
ErrGroupSendPrivateMessage -> Int
ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage]
ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage
ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage]
ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage
-> [ErrGroupSendPrivateMessage]
(ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage)
-> (ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage)
-> (Int -> ErrGroupSendPrivateMessage)
-> (ErrGroupSendPrivateMessage -> Int)
-> (ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage])
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage])
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage])
-> (ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage
-> [ErrGroupSendPrivateMessage])
-> Enum ErrGroupSendPrivateMessage
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage
-> [ErrGroupSendPrivateMessage]
$cenumFromThenTo :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage
-> [ErrGroupSendPrivateMessage]
enumFromTo :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage]
$cenumFromTo :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage]
enumFromThen :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage]
$cenumFromThen :: ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage]
enumFrom :: ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage]
$cenumFrom :: ErrGroupSendPrivateMessage -> [ErrGroupSendPrivateMessage]
fromEnum :: ErrGroupSendPrivateMessage -> Int
$cfromEnum :: ErrGroupSendPrivateMessage -> Int
toEnum :: Int -> ErrGroupSendPrivateMessage
$ctoEnum :: Int -> ErrGroupSendPrivateMessage
pred :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage
$cpred :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage
succ :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage
$csucc :: ErrGroupSendPrivateMessage -> ErrGroupSendPrivateMessage
Enum, ErrGroupSendPrivateMessage
ErrGroupSendPrivateMessage
-> ErrGroupSendPrivateMessage -> Bounded ErrGroupSendPrivateMessage
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSendPrivateMessage
$cmaxBound :: ErrGroupSendPrivateMessage
minBound :: ErrGroupSendPrivateMessage
$cminBound :: ErrGroupSendPrivateMessage
Bounded, ReadPrec [ErrGroupSendPrivateMessage]
ReadPrec ErrGroupSendPrivateMessage
Int -> ReadS ErrGroupSendPrivateMessage
ReadS [ErrGroupSendPrivateMessage]
(Int -> ReadS ErrGroupSendPrivateMessage)
-> ReadS [ErrGroupSendPrivateMessage]
-> ReadPrec ErrGroupSendPrivateMessage
-> ReadPrec [ErrGroupSendPrivateMessage]
-> Read ErrGroupSendPrivateMessage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSendPrivateMessage]
$creadListPrec :: ReadPrec [ErrGroupSendPrivateMessage]
readPrec :: ReadPrec ErrGroupSendPrivateMessage
$creadPrec :: ReadPrec ErrGroupSendPrivateMessage
readList :: ReadS [ErrGroupSendPrivateMessage]
$creadList :: ReadS [ErrGroupSendPrivateMessage]
readsPrec :: Int -> ReadS ErrGroupSendPrivateMessage
$creadsPrec :: Int -> ReadS ErrGroupSendPrivateMessage
Read, Int -> ErrGroupSendPrivateMessage -> ShowS
[ErrGroupSendPrivateMessage] -> ShowS
ErrGroupSendPrivateMessage -> String
(Int -> ErrGroupSendPrivateMessage -> ShowS)
-> (ErrGroupSendPrivateMessage -> String)
-> ([ErrGroupSendPrivateMessage] -> ShowS)
-> Show ErrGroupSendPrivateMessage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSendPrivateMessage] -> ShowS
$cshowList :: [ErrGroupSendPrivateMessage] -> ShowS
show :: ErrGroupSendPrivateMessage -> String
$cshow :: ErrGroupSendPrivateMessage -> String
showsPrec :: Int -> ErrGroupSendPrivateMessage -> ShowS
$cshowsPrec :: Int -> ErrGroupSendPrivateMessage -> ShowS
Show, (forall x.
ErrGroupSendPrivateMessage -> Rep ErrGroupSendPrivateMessage x)
-> (forall x.
Rep ErrGroupSendPrivateMessage x -> ErrGroupSendPrivateMessage)
-> Generic ErrGroupSendPrivateMessage
forall x.
Rep ErrGroupSendPrivateMessage x -> ErrGroupSendPrivateMessage
forall x.
ErrGroupSendPrivateMessage -> Rep ErrGroupSendPrivateMessage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ErrGroupSendPrivateMessage x -> ErrGroupSendPrivateMessage
$cfrom :: forall x.
ErrGroupSendPrivateMessage -> Rep ErrGroupSendPrivateMessage x
Generic)
instance MessagePack ErrGroupSendPrivateMessage
instance Arbitrary ErrGroupSendPrivateMessage where arbitrary :: Gen ErrGroupSendPrivateMessage
arbitrary = Gen ErrGroupSendPrivateMessage
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_send_private_message :: ToxPtr -> Word32 -> Word32 -> CEnum MessageType -> CString -> CSize -> CErr ErrGroupSendPrivateMessage -> IO Bool
data ErrGroupSendCustomPacket
= ErrGroupSendCustomPacketGroupNotFound
| ErrGroupSendCustomPacketTooLong
| ErrGroupSendCustomPacketEmpty
| ErrGroupSendCustomPacketPermissions
| ErrGroupSendCustomPacketDisconnected
deriving (ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
(ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool)
-> (ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool)
-> Eq ErrGroupSendCustomPacket
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
$c/= :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
== :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
$c== :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
Eq, Eq ErrGroupSendCustomPacket
Eq ErrGroupSendCustomPacket
-> (ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> Ordering)
-> (ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool)
-> (ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool)
-> (ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool)
-> (ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool)
-> (ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket)
-> (ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket)
-> Ord ErrGroupSendCustomPacket
ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Ordering
ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket
$cmin :: ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket
max :: ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket
$cmax :: ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket
>= :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
$c>= :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
> :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
$c> :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
<= :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
$c<= :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
< :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
$c< :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Bool
compare :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Ordering
$ccompare :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket -> Ordering
$cp1Ord :: Eq ErrGroupSendCustomPacket
Ord, Int -> ErrGroupSendCustomPacket
ErrGroupSendCustomPacket -> Int
ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket]
ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket
ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket]
ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket
-> [ErrGroupSendCustomPacket]
(ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket)
-> (ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket)
-> (Int -> ErrGroupSendCustomPacket)
-> (ErrGroupSendCustomPacket -> Int)
-> (ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket])
-> (ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket])
-> (ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket])
-> (ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket
-> [ErrGroupSendCustomPacket])
-> Enum ErrGroupSendCustomPacket
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket
-> [ErrGroupSendCustomPacket]
$cenumFromThenTo :: ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket
-> [ErrGroupSendCustomPacket]
enumFromTo :: ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket]
$cenumFromTo :: ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket]
enumFromThen :: ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket]
$cenumFromThen :: ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket]
enumFrom :: ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket]
$cenumFrom :: ErrGroupSendCustomPacket -> [ErrGroupSendCustomPacket]
fromEnum :: ErrGroupSendCustomPacket -> Int
$cfromEnum :: ErrGroupSendCustomPacket -> Int
toEnum :: Int -> ErrGroupSendCustomPacket
$ctoEnum :: Int -> ErrGroupSendCustomPacket
pred :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket
$cpred :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket
succ :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket
$csucc :: ErrGroupSendCustomPacket -> ErrGroupSendCustomPacket
Enum, ErrGroupSendCustomPacket
ErrGroupSendCustomPacket
-> ErrGroupSendCustomPacket -> Bounded ErrGroupSendCustomPacket
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSendCustomPacket
$cmaxBound :: ErrGroupSendCustomPacket
minBound :: ErrGroupSendCustomPacket
$cminBound :: ErrGroupSendCustomPacket
Bounded, ReadPrec [ErrGroupSendCustomPacket]
ReadPrec ErrGroupSendCustomPacket
Int -> ReadS ErrGroupSendCustomPacket
ReadS [ErrGroupSendCustomPacket]
(Int -> ReadS ErrGroupSendCustomPacket)
-> ReadS [ErrGroupSendCustomPacket]
-> ReadPrec ErrGroupSendCustomPacket
-> ReadPrec [ErrGroupSendCustomPacket]
-> Read ErrGroupSendCustomPacket
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSendCustomPacket]
$creadListPrec :: ReadPrec [ErrGroupSendCustomPacket]
readPrec :: ReadPrec ErrGroupSendCustomPacket
$creadPrec :: ReadPrec ErrGroupSendCustomPacket
readList :: ReadS [ErrGroupSendCustomPacket]
$creadList :: ReadS [ErrGroupSendCustomPacket]
readsPrec :: Int -> ReadS ErrGroupSendCustomPacket
$creadsPrec :: Int -> ReadS ErrGroupSendCustomPacket
Read, Int -> ErrGroupSendCustomPacket -> ShowS
[ErrGroupSendCustomPacket] -> ShowS
ErrGroupSendCustomPacket -> String
(Int -> ErrGroupSendCustomPacket -> ShowS)
-> (ErrGroupSendCustomPacket -> String)
-> ([ErrGroupSendCustomPacket] -> ShowS)
-> Show ErrGroupSendCustomPacket
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSendCustomPacket] -> ShowS
$cshowList :: [ErrGroupSendCustomPacket] -> ShowS
show :: ErrGroupSendCustomPacket -> String
$cshow :: ErrGroupSendCustomPacket -> String
showsPrec :: Int -> ErrGroupSendCustomPacket -> ShowS
$cshowsPrec :: Int -> ErrGroupSendCustomPacket -> ShowS
Show, (forall x.
ErrGroupSendCustomPacket -> Rep ErrGroupSendCustomPacket x)
-> (forall x.
Rep ErrGroupSendCustomPacket x -> ErrGroupSendCustomPacket)
-> Generic ErrGroupSendCustomPacket
forall x.
Rep ErrGroupSendCustomPacket x -> ErrGroupSendCustomPacket
forall x.
ErrGroupSendCustomPacket -> Rep ErrGroupSendCustomPacket x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ErrGroupSendCustomPacket x -> ErrGroupSendCustomPacket
$cfrom :: forall x.
ErrGroupSendCustomPacket -> Rep ErrGroupSendCustomPacket x
Generic)
instance MessagePack ErrGroupSendCustomPacket
instance Arbitrary ErrGroupSendCustomPacket where arbitrary :: Gen ErrGroupSendCustomPacket
arbitrary = Gen ErrGroupSendCustomPacket
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_send_custom_packet :: ToxPtr -> Word32 -> Bool -> CString -> CSize -> CErr ErrGroupSendCustomPacket -> IO Bool
data ErrGroupSendCustomPrivatePacket
= ErrGroupSendCustomPrivatePacketGroupNotFound
| ErrGroupSendCustomPrivatePacketTooLong
| ErrGroupSendCustomPrivatePacketEmpty
| ErrGroupSendCustomPrivatePacketPeerNotFound
| ErrGroupSendCustomPrivatePacketPermissions
| ErrGroupSendCustomPrivatePacketFailSend
| ErrGroupSendCustomPrivatePacketDisconnected
deriving (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
(ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool)
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool)
-> Eq ErrGroupSendCustomPrivatePacket
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
$c/= :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
== :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
$c== :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
Eq, Eq ErrGroupSendCustomPrivatePacket
Eq ErrGroupSendCustomPrivatePacket
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Ordering)
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool)
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool)
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool)
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool)
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket)
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket)
-> Ord ErrGroupSendCustomPrivatePacket
ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Ordering
ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
$cmin :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
max :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
$cmax :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
>= :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
$c>= :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
> :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
$c> :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
<= :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
$c<= :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
< :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
$c< :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Bool
compare :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Ordering
$ccompare :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket -> Ordering
$cp1Ord :: Eq ErrGroupSendCustomPrivatePacket
Ord, Int -> ErrGroupSendCustomPrivatePacket
ErrGroupSendCustomPrivatePacket -> Int
ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
ErrGroupSendCustomPrivatePacket -> ErrGroupSendCustomPrivatePacket
ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
(ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket)
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket)
-> (Int -> ErrGroupSendCustomPrivatePacket)
-> (ErrGroupSendCustomPrivatePacket -> Int)
-> (ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket])
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket])
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket])
-> (ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket])
-> Enum ErrGroupSendCustomPrivatePacket
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
$cenumFromThenTo :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
enumFromTo :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
$cenumFromTo :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
enumFromThen :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
$cenumFromThen :: ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
enumFrom :: ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
$cenumFrom :: ErrGroupSendCustomPrivatePacket
-> [ErrGroupSendCustomPrivatePacket]
fromEnum :: ErrGroupSendCustomPrivatePacket -> Int
$cfromEnum :: ErrGroupSendCustomPrivatePacket -> Int
toEnum :: Int -> ErrGroupSendCustomPrivatePacket
$ctoEnum :: Int -> ErrGroupSendCustomPrivatePacket
pred :: ErrGroupSendCustomPrivatePacket -> ErrGroupSendCustomPrivatePacket
$cpred :: ErrGroupSendCustomPrivatePacket -> ErrGroupSendCustomPrivatePacket
succ :: ErrGroupSendCustomPrivatePacket -> ErrGroupSendCustomPrivatePacket
$csucc :: ErrGroupSendCustomPrivatePacket -> ErrGroupSendCustomPrivatePacket
Enum, ErrGroupSendCustomPrivatePacket
ErrGroupSendCustomPrivatePacket
-> ErrGroupSendCustomPrivatePacket
-> Bounded ErrGroupSendCustomPrivatePacket
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSendCustomPrivatePacket
$cmaxBound :: ErrGroupSendCustomPrivatePacket
minBound :: ErrGroupSendCustomPrivatePacket
$cminBound :: ErrGroupSendCustomPrivatePacket
Bounded, ReadPrec [ErrGroupSendCustomPrivatePacket]
ReadPrec ErrGroupSendCustomPrivatePacket
Int -> ReadS ErrGroupSendCustomPrivatePacket
ReadS [ErrGroupSendCustomPrivatePacket]
(Int -> ReadS ErrGroupSendCustomPrivatePacket)
-> ReadS [ErrGroupSendCustomPrivatePacket]
-> ReadPrec ErrGroupSendCustomPrivatePacket
-> ReadPrec [ErrGroupSendCustomPrivatePacket]
-> Read ErrGroupSendCustomPrivatePacket
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSendCustomPrivatePacket]
$creadListPrec :: ReadPrec [ErrGroupSendCustomPrivatePacket]
readPrec :: ReadPrec ErrGroupSendCustomPrivatePacket
$creadPrec :: ReadPrec ErrGroupSendCustomPrivatePacket
readList :: ReadS [ErrGroupSendCustomPrivatePacket]
$creadList :: ReadS [ErrGroupSendCustomPrivatePacket]
readsPrec :: Int -> ReadS ErrGroupSendCustomPrivatePacket
$creadsPrec :: Int -> ReadS ErrGroupSendCustomPrivatePacket
Read, Int -> ErrGroupSendCustomPrivatePacket -> ShowS
[ErrGroupSendCustomPrivatePacket] -> ShowS
ErrGroupSendCustomPrivatePacket -> String
(Int -> ErrGroupSendCustomPrivatePacket -> ShowS)
-> (ErrGroupSendCustomPrivatePacket -> String)
-> ([ErrGroupSendCustomPrivatePacket] -> ShowS)
-> Show ErrGroupSendCustomPrivatePacket
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSendCustomPrivatePacket] -> ShowS
$cshowList :: [ErrGroupSendCustomPrivatePacket] -> ShowS
show :: ErrGroupSendCustomPrivatePacket -> String
$cshow :: ErrGroupSendCustomPrivatePacket -> String
showsPrec :: Int -> ErrGroupSendCustomPrivatePacket -> ShowS
$cshowsPrec :: Int -> ErrGroupSendCustomPrivatePacket -> ShowS
Show, (forall x.
ErrGroupSendCustomPrivatePacket
-> Rep ErrGroupSendCustomPrivatePacket x)
-> (forall x.
Rep ErrGroupSendCustomPrivatePacket x
-> ErrGroupSendCustomPrivatePacket)
-> Generic ErrGroupSendCustomPrivatePacket
forall x.
Rep ErrGroupSendCustomPrivatePacket x
-> ErrGroupSendCustomPrivatePacket
forall x.
ErrGroupSendCustomPrivatePacket
-> Rep ErrGroupSendCustomPrivatePacket x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ErrGroupSendCustomPrivatePacket x
-> ErrGroupSendCustomPrivatePacket
$cfrom :: forall x.
ErrGroupSendCustomPrivatePacket
-> Rep ErrGroupSendCustomPrivatePacket x
Generic)
instance MessagePack ErrGroupSendCustomPrivatePacket
instance Arbitrary ErrGroupSendCustomPrivatePacket where arbitrary :: Gen ErrGroupSendCustomPrivatePacket
arbitrary = Gen ErrGroupSendCustomPrivatePacket
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_send_custom_private_packet :: ToxPtr -> Word32 -> Word32 -> Bool -> CString -> CSize -> CErr ErrGroupSendCustomPrivatePacket -> IO Bool
type GroupMessageCb = ToxPtr -> Word32 -> Word32 -> CEnum MessageType -> CString -> CSize -> Word32 -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupMessageCb :: GroupMessageCb -> IO (FunPtr GroupMessageCb)
foreign import ccall tox_callback_group_message :: ToxPtr -> FunPtr GroupMessageCb -> IO ()
type GroupPrivateMessageCb = ToxPtr -> Word32 -> Word32 -> CEnum MessageType -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupPrivateMessageCb :: GroupPrivateMessageCb -> IO (FunPtr GroupPrivateMessageCb)
foreign import ccall tox_callback_group_private_message :: ToxPtr -> FunPtr GroupPrivateMessageCb -> IO ()
type GroupCustomPacketCb = ToxPtr -> Word32 -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupCustomPacketCb :: GroupCustomPacketCb -> IO (FunPtr GroupCustomPacketCb)
foreign import ccall tox_callback_group_custom_packet :: ToxPtr -> FunPtr GroupCustomPacketCb -> IO ()
type GroupCustomPrivatePacketCb = ToxPtr -> Word32 -> Word32 -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupCustomPrivatePacketCb :: GroupCustomPrivatePacketCb -> IO (FunPtr GroupCustomPrivatePacketCb)
foreign import ccall tox_callback_group_custom_private_packet :: ToxPtr -> FunPtr GroupCustomPrivatePacketCb -> IO ()
data ErrGroupInviteFriend
= ErrGroupInviteFriendGroupNotFound
| ErrGroupInviteFriendFriendNotFound
| ErrGroupInviteFriendInviteFail
| ErrGroupInviteFriendFailSend
| ErrGroupInviteFriendDisconnected
deriving (ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
(ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool)
-> (ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool)
-> Eq ErrGroupInviteFriend
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
$c/= :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
== :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
$c== :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
Eq, Eq ErrGroupInviteFriend
Eq ErrGroupInviteFriend
-> (ErrGroupInviteFriend -> ErrGroupInviteFriend -> Ordering)
-> (ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool)
-> (ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool)
-> (ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool)
-> (ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool)
-> (ErrGroupInviteFriend
-> ErrGroupInviteFriend -> ErrGroupInviteFriend)
-> (ErrGroupInviteFriend
-> ErrGroupInviteFriend -> ErrGroupInviteFriend)
-> Ord ErrGroupInviteFriend
ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
ErrGroupInviteFriend -> ErrGroupInviteFriend -> Ordering
ErrGroupInviteFriend
-> ErrGroupInviteFriend -> ErrGroupInviteFriend
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupInviteFriend
-> ErrGroupInviteFriend -> ErrGroupInviteFriend
$cmin :: ErrGroupInviteFriend
-> ErrGroupInviteFriend -> ErrGroupInviteFriend
max :: ErrGroupInviteFriend
-> ErrGroupInviteFriend -> ErrGroupInviteFriend
$cmax :: ErrGroupInviteFriend
-> ErrGroupInviteFriend -> ErrGroupInviteFriend
>= :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
$c>= :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
> :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
$c> :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
<= :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
$c<= :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
< :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
$c< :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Bool
compare :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Ordering
$ccompare :: ErrGroupInviteFriend -> ErrGroupInviteFriend -> Ordering
$cp1Ord :: Eq ErrGroupInviteFriend
Ord, Int -> ErrGroupInviteFriend
ErrGroupInviteFriend -> Int
ErrGroupInviteFriend -> [ErrGroupInviteFriend]
ErrGroupInviteFriend -> ErrGroupInviteFriend
ErrGroupInviteFriend
-> ErrGroupInviteFriend -> [ErrGroupInviteFriend]
ErrGroupInviteFriend
-> ErrGroupInviteFriend
-> ErrGroupInviteFriend
-> [ErrGroupInviteFriend]
(ErrGroupInviteFriend -> ErrGroupInviteFriend)
-> (ErrGroupInviteFriend -> ErrGroupInviteFriend)
-> (Int -> ErrGroupInviteFriend)
-> (ErrGroupInviteFriend -> Int)
-> (ErrGroupInviteFriend -> [ErrGroupInviteFriend])
-> (ErrGroupInviteFriend
-> ErrGroupInviteFriend -> [ErrGroupInviteFriend])
-> (ErrGroupInviteFriend
-> ErrGroupInviteFriend -> [ErrGroupInviteFriend])
-> (ErrGroupInviteFriend
-> ErrGroupInviteFriend
-> ErrGroupInviteFriend
-> [ErrGroupInviteFriend])
-> Enum ErrGroupInviteFriend
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupInviteFriend
-> ErrGroupInviteFriend
-> ErrGroupInviteFriend
-> [ErrGroupInviteFriend]
$cenumFromThenTo :: ErrGroupInviteFriend
-> ErrGroupInviteFriend
-> ErrGroupInviteFriend
-> [ErrGroupInviteFriend]
enumFromTo :: ErrGroupInviteFriend
-> ErrGroupInviteFriend -> [ErrGroupInviteFriend]
$cenumFromTo :: ErrGroupInviteFriend
-> ErrGroupInviteFriend -> [ErrGroupInviteFriend]
enumFromThen :: ErrGroupInviteFriend
-> ErrGroupInviteFriend -> [ErrGroupInviteFriend]
$cenumFromThen :: ErrGroupInviteFriend
-> ErrGroupInviteFriend -> [ErrGroupInviteFriend]
enumFrom :: ErrGroupInviteFriend -> [ErrGroupInviteFriend]
$cenumFrom :: ErrGroupInviteFriend -> [ErrGroupInviteFriend]
fromEnum :: ErrGroupInviteFriend -> Int
$cfromEnum :: ErrGroupInviteFriend -> Int
toEnum :: Int -> ErrGroupInviteFriend
$ctoEnum :: Int -> ErrGroupInviteFriend
pred :: ErrGroupInviteFriend -> ErrGroupInviteFriend
$cpred :: ErrGroupInviteFriend -> ErrGroupInviteFriend
succ :: ErrGroupInviteFriend -> ErrGroupInviteFriend
$csucc :: ErrGroupInviteFriend -> ErrGroupInviteFriend
Enum, ErrGroupInviteFriend
ErrGroupInviteFriend
-> ErrGroupInviteFriend -> Bounded ErrGroupInviteFriend
forall a. a -> a -> Bounded a
maxBound :: ErrGroupInviteFriend
$cmaxBound :: ErrGroupInviteFriend
minBound :: ErrGroupInviteFriend
$cminBound :: ErrGroupInviteFriend
Bounded, ReadPrec [ErrGroupInviteFriend]
ReadPrec ErrGroupInviteFriend
Int -> ReadS ErrGroupInviteFriend
ReadS [ErrGroupInviteFriend]
(Int -> ReadS ErrGroupInviteFriend)
-> ReadS [ErrGroupInviteFriend]
-> ReadPrec ErrGroupInviteFriend
-> ReadPrec [ErrGroupInviteFriend]
-> Read ErrGroupInviteFriend
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupInviteFriend]
$creadListPrec :: ReadPrec [ErrGroupInviteFriend]
readPrec :: ReadPrec ErrGroupInviteFriend
$creadPrec :: ReadPrec ErrGroupInviteFriend
readList :: ReadS [ErrGroupInviteFriend]
$creadList :: ReadS [ErrGroupInviteFriend]
readsPrec :: Int -> ReadS ErrGroupInviteFriend
$creadsPrec :: Int -> ReadS ErrGroupInviteFriend
Read, Int -> ErrGroupInviteFriend -> ShowS
[ErrGroupInviteFriend] -> ShowS
ErrGroupInviteFriend -> String
(Int -> ErrGroupInviteFriend -> ShowS)
-> (ErrGroupInviteFriend -> String)
-> ([ErrGroupInviteFriend] -> ShowS)
-> Show ErrGroupInviteFriend
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupInviteFriend] -> ShowS
$cshowList :: [ErrGroupInviteFriend] -> ShowS
show :: ErrGroupInviteFriend -> String
$cshow :: ErrGroupInviteFriend -> String
showsPrec :: Int -> ErrGroupInviteFriend -> ShowS
$cshowsPrec :: Int -> ErrGroupInviteFriend -> ShowS
Show, (forall x. ErrGroupInviteFriend -> Rep ErrGroupInviteFriend x)
-> (forall x. Rep ErrGroupInviteFriend x -> ErrGroupInviteFriend)
-> Generic ErrGroupInviteFriend
forall x. Rep ErrGroupInviteFriend x -> ErrGroupInviteFriend
forall x. ErrGroupInviteFriend -> Rep ErrGroupInviteFriend x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupInviteFriend x -> ErrGroupInviteFriend
$cfrom :: forall x. ErrGroupInviteFriend -> Rep ErrGroupInviteFriend x
Generic)
instance MessagePack ErrGroupInviteFriend
instance Arbitrary ErrGroupInviteFriend where arbitrary :: Gen ErrGroupInviteFriend
arbitrary = Gen ErrGroupInviteFriend
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_invite_friend :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupInviteFriend -> IO Bool
data ErrGroupInviteAccept
= ErrGroupInviteAcceptBadInvite
| ErrGroupInviteAcceptInitFailed
| ErrGroupInviteAcceptTooLong
| ErrGroupInviteAcceptEmpty
| ErrGroupInviteAcceptPassword
| ErrGroupInviteAcceptCore
| ErrGroupInviteAcceptFailSend
deriving (ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
(ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool)
-> (ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool)
-> Eq ErrGroupInviteAccept
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
$c/= :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
== :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
$c== :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
Eq, Eq ErrGroupInviteAccept
Eq ErrGroupInviteAccept
-> (ErrGroupInviteAccept -> ErrGroupInviteAccept -> Ordering)
-> (ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool)
-> (ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool)
-> (ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool)
-> (ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool)
-> (ErrGroupInviteAccept
-> ErrGroupInviteAccept -> ErrGroupInviteAccept)
-> (ErrGroupInviteAccept
-> ErrGroupInviteAccept -> ErrGroupInviteAccept)
-> Ord ErrGroupInviteAccept
ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
ErrGroupInviteAccept -> ErrGroupInviteAccept -> Ordering
ErrGroupInviteAccept
-> ErrGroupInviteAccept -> ErrGroupInviteAccept
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupInviteAccept
-> ErrGroupInviteAccept -> ErrGroupInviteAccept
$cmin :: ErrGroupInviteAccept
-> ErrGroupInviteAccept -> ErrGroupInviteAccept
max :: ErrGroupInviteAccept
-> ErrGroupInviteAccept -> ErrGroupInviteAccept
$cmax :: ErrGroupInviteAccept
-> ErrGroupInviteAccept -> ErrGroupInviteAccept
>= :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
$c>= :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
> :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
$c> :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
<= :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
$c<= :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
< :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
$c< :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Bool
compare :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Ordering
$ccompare :: ErrGroupInviteAccept -> ErrGroupInviteAccept -> Ordering
$cp1Ord :: Eq ErrGroupInviteAccept
Ord, Int -> ErrGroupInviteAccept
ErrGroupInviteAccept -> Int
ErrGroupInviteAccept -> [ErrGroupInviteAccept]
ErrGroupInviteAccept -> ErrGroupInviteAccept
ErrGroupInviteAccept
-> ErrGroupInviteAccept -> [ErrGroupInviteAccept]
ErrGroupInviteAccept
-> ErrGroupInviteAccept
-> ErrGroupInviteAccept
-> [ErrGroupInviteAccept]
(ErrGroupInviteAccept -> ErrGroupInviteAccept)
-> (ErrGroupInviteAccept -> ErrGroupInviteAccept)
-> (Int -> ErrGroupInviteAccept)
-> (ErrGroupInviteAccept -> Int)
-> (ErrGroupInviteAccept -> [ErrGroupInviteAccept])
-> (ErrGroupInviteAccept
-> ErrGroupInviteAccept -> [ErrGroupInviteAccept])
-> (ErrGroupInviteAccept
-> ErrGroupInviteAccept -> [ErrGroupInviteAccept])
-> (ErrGroupInviteAccept
-> ErrGroupInviteAccept
-> ErrGroupInviteAccept
-> [ErrGroupInviteAccept])
-> Enum ErrGroupInviteAccept
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupInviteAccept
-> ErrGroupInviteAccept
-> ErrGroupInviteAccept
-> [ErrGroupInviteAccept]
$cenumFromThenTo :: ErrGroupInviteAccept
-> ErrGroupInviteAccept
-> ErrGroupInviteAccept
-> [ErrGroupInviteAccept]
enumFromTo :: ErrGroupInviteAccept
-> ErrGroupInviteAccept -> [ErrGroupInviteAccept]
$cenumFromTo :: ErrGroupInviteAccept
-> ErrGroupInviteAccept -> [ErrGroupInviteAccept]
enumFromThen :: ErrGroupInviteAccept
-> ErrGroupInviteAccept -> [ErrGroupInviteAccept]
$cenumFromThen :: ErrGroupInviteAccept
-> ErrGroupInviteAccept -> [ErrGroupInviteAccept]
enumFrom :: ErrGroupInviteAccept -> [ErrGroupInviteAccept]
$cenumFrom :: ErrGroupInviteAccept -> [ErrGroupInviteAccept]
fromEnum :: ErrGroupInviteAccept -> Int
$cfromEnum :: ErrGroupInviteAccept -> Int
toEnum :: Int -> ErrGroupInviteAccept
$ctoEnum :: Int -> ErrGroupInviteAccept
pred :: ErrGroupInviteAccept -> ErrGroupInviteAccept
$cpred :: ErrGroupInviteAccept -> ErrGroupInviteAccept
succ :: ErrGroupInviteAccept -> ErrGroupInviteAccept
$csucc :: ErrGroupInviteAccept -> ErrGroupInviteAccept
Enum, ErrGroupInviteAccept
ErrGroupInviteAccept
-> ErrGroupInviteAccept -> Bounded ErrGroupInviteAccept
forall a. a -> a -> Bounded a
maxBound :: ErrGroupInviteAccept
$cmaxBound :: ErrGroupInviteAccept
minBound :: ErrGroupInviteAccept
$cminBound :: ErrGroupInviteAccept
Bounded, ReadPrec [ErrGroupInviteAccept]
ReadPrec ErrGroupInviteAccept
Int -> ReadS ErrGroupInviteAccept
ReadS [ErrGroupInviteAccept]
(Int -> ReadS ErrGroupInviteAccept)
-> ReadS [ErrGroupInviteAccept]
-> ReadPrec ErrGroupInviteAccept
-> ReadPrec [ErrGroupInviteAccept]
-> Read ErrGroupInviteAccept
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupInviteAccept]
$creadListPrec :: ReadPrec [ErrGroupInviteAccept]
readPrec :: ReadPrec ErrGroupInviteAccept
$creadPrec :: ReadPrec ErrGroupInviteAccept
readList :: ReadS [ErrGroupInviteAccept]
$creadList :: ReadS [ErrGroupInviteAccept]
readsPrec :: Int -> ReadS ErrGroupInviteAccept
$creadsPrec :: Int -> ReadS ErrGroupInviteAccept
Read, Int -> ErrGroupInviteAccept -> ShowS
[ErrGroupInviteAccept] -> ShowS
ErrGroupInviteAccept -> String
(Int -> ErrGroupInviteAccept -> ShowS)
-> (ErrGroupInviteAccept -> String)
-> ([ErrGroupInviteAccept] -> ShowS)
-> Show ErrGroupInviteAccept
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupInviteAccept] -> ShowS
$cshowList :: [ErrGroupInviteAccept] -> ShowS
show :: ErrGroupInviteAccept -> String
$cshow :: ErrGroupInviteAccept -> String
showsPrec :: Int -> ErrGroupInviteAccept -> ShowS
$cshowsPrec :: Int -> ErrGroupInviteAccept -> ShowS
Show, (forall x. ErrGroupInviteAccept -> Rep ErrGroupInviteAccept x)
-> (forall x. Rep ErrGroupInviteAccept x -> ErrGroupInviteAccept)
-> Generic ErrGroupInviteAccept
forall x. Rep ErrGroupInviteAccept x -> ErrGroupInviteAccept
forall x. ErrGroupInviteAccept -> Rep ErrGroupInviteAccept x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupInviteAccept x -> ErrGroupInviteAccept
$cfrom :: forall x. ErrGroupInviteAccept -> Rep ErrGroupInviteAccept x
Generic)
instance MessagePack ErrGroupInviteAccept
instance Arbitrary ErrGroupInviteAccept where arbitrary :: Gen ErrGroupInviteAccept
arbitrary = Gen ErrGroupInviteAccept
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_invite_accept :: ToxPtr -> Word32 -> CString -> CSize -> CString -> CSize -> CString -> CSize -> CErr ErrGroupInviteAccept -> IO Word32
type GroupInviteCb = ToxPtr -> Word32 -> CString -> CSize -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupInviteCb :: GroupInviteCb -> IO (FunPtr GroupInviteCb)
foreign import ccall tox_callback_group_invite :: ToxPtr -> FunPtr GroupInviteCb -> IO ()
type GroupPeerJoinCb = ToxPtr -> Word32 -> Word32 -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupPeerJoinCb :: GroupPeerJoinCb -> IO (FunPtr GroupPeerJoinCb)
foreign import ccall tox_callback_group_peer_join :: ToxPtr -> FunPtr GroupPeerJoinCb -> IO ()
data GroupExitType
= GroupExitTypeQuit
| GroupExitTypeTimeout
| GroupExitTypeDisconnected
| GroupExitTypeSelfDisconnected
| GroupExitTypeKick
| GroupExitTypeSyncError
deriving (GroupExitType -> GroupExitType -> Bool
(GroupExitType -> GroupExitType -> Bool)
-> (GroupExitType -> GroupExitType -> Bool) -> Eq GroupExitType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GroupExitType -> GroupExitType -> Bool
$c/= :: GroupExitType -> GroupExitType -> Bool
== :: GroupExitType -> GroupExitType -> Bool
$c== :: GroupExitType -> GroupExitType -> Bool
Eq, Eq GroupExitType
Eq GroupExitType
-> (GroupExitType -> GroupExitType -> Ordering)
-> (GroupExitType -> GroupExitType -> Bool)
-> (GroupExitType -> GroupExitType -> Bool)
-> (GroupExitType -> GroupExitType -> Bool)
-> (GroupExitType -> GroupExitType -> Bool)
-> (GroupExitType -> GroupExitType -> GroupExitType)
-> (GroupExitType -> GroupExitType -> GroupExitType)
-> Ord GroupExitType
GroupExitType -> GroupExitType -> Bool
GroupExitType -> GroupExitType -> Ordering
GroupExitType -> GroupExitType -> GroupExitType
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: GroupExitType -> GroupExitType -> GroupExitType
$cmin :: GroupExitType -> GroupExitType -> GroupExitType
max :: GroupExitType -> GroupExitType -> GroupExitType
$cmax :: GroupExitType -> GroupExitType -> GroupExitType
>= :: GroupExitType -> GroupExitType -> Bool
$c>= :: GroupExitType -> GroupExitType -> Bool
> :: GroupExitType -> GroupExitType -> Bool
$c> :: GroupExitType -> GroupExitType -> Bool
<= :: GroupExitType -> GroupExitType -> Bool
$c<= :: GroupExitType -> GroupExitType -> Bool
< :: GroupExitType -> GroupExitType -> Bool
$c< :: GroupExitType -> GroupExitType -> Bool
compare :: GroupExitType -> GroupExitType -> Ordering
$ccompare :: GroupExitType -> GroupExitType -> Ordering
$cp1Ord :: Eq GroupExitType
Ord, Int -> GroupExitType
GroupExitType -> Int
GroupExitType -> [GroupExitType]
GroupExitType -> GroupExitType
GroupExitType -> GroupExitType -> [GroupExitType]
GroupExitType -> GroupExitType -> GroupExitType -> [GroupExitType]
(GroupExitType -> GroupExitType)
-> (GroupExitType -> GroupExitType)
-> (Int -> GroupExitType)
-> (GroupExitType -> Int)
-> (GroupExitType -> [GroupExitType])
-> (GroupExitType -> GroupExitType -> [GroupExitType])
-> (GroupExitType -> GroupExitType -> [GroupExitType])
-> (GroupExitType
-> GroupExitType -> GroupExitType -> [GroupExitType])
-> Enum GroupExitType
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: GroupExitType -> GroupExitType -> GroupExitType -> [GroupExitType]
$cenumFromThenTo :: GroupExitType -> GroupExitType -> GroupExitType -> [GroupExitType]
enumFromTo :: GroupExitType -> GroupExitType -> [GroupExitType]
$cenumFromTo :: GroupExitType -> GroupExitType -> [GroupExitType]
enumFromThen :: GroupExitType -> GroupExitType -> [GroupExitType]
$cenumFromThen :: GroupExitType -> GroupExitType -> [GroupExitType]
enumFrom :: GroupExitType -> [GroupExitType]
$cenumFrom :: GroupExitType -> [GroupExitType]
fromEnum :: GroupExitType -> Int
$cfromEnum :: GroupExitType -> Int
toEnum :: Int -> GroupExitType
$ctoEnum :: Int -> GroupExitType
pred :: GroupExitType -> GroupExitType
$cpred :: GroupExitType -> GroupExitType
succ :: GroupExitType -> GroupExitType
$csucc :: GroupExitType -> GroupExitType
Enum, GroupExitType
GroupExitType -> GroupExitType -> Bounded GroupExitType
forall a. a -> a -> Bounded a
maxBound :: GroupExitType
$cmaxBound :: GroupExitType
minBound :: GroupExitType
$cminBound :: GroupExitType
Bounded, ReadPrec [GroupExitType]
ReadPrec GroupExitType
Int -> ReadS GroupExitType
ReadS [GroupExitType]
(Int -> ReadS GroupExitType)
-> ReadS [GroupExitType]
-> ReadPrec GroupExitType
-> ReadPrec [GroupExitType]
-> Read GroupExitType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GroupExitType]
$creadListPrec :: ReadPrec [GroupExitType]
readPrec :: ReadPrec GroupExitType
$creadPrec :: ReadPrec GroupExitType
readList :: ReadS [GroupExitType]
$creadList :: ReadS [GroupExitType]
readsPrec :: Int -> ReadS GroupExitType
$creadsPrec :: Int -> ReadS GroupExitType
Read, Int -> GroupExitType -> ShowS
[GroupExitType] -> ShowS
GroupExitType -> String
(Int -> GroupExitType -> ShowS)
-> (GroupExitType -> String)
-> ([GroupExitType] -> ShowS)
-> Show GroupExitType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GroupExitType] -> ShowS
$cshowList :: [GroupExitType] -> ShowS
show :: GroupExitType -> String
$cshow :: GroupExitType -> String
showsPrec :: Int -> GroupExitType -> ShowS
$cshowsPrec :: Int -> GroupExitType -> ShowS
Show, (forall x. GroupExitType -> Rep GroupExitType x)
-> (forall x. Rep GroupExitType x -> GroupExitType)
-> Generic GroupExitType
forall x. Rep GroupExitType x -> GroupExitType
forall x. GroupExitType -> Rep GroupExitType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GroupExitType x -> GroupExitType
$cfrom :: forall x. GroupExitType -> Rep GroupExitType x
Generic)
instance MessagePack GroupExitType
instance Arbitrary GroupExitType where arbitrary :: Gen GroupExitType
arbitrary = Gen GroupExitType
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
type GroupPeerExitCb = ToxPtr -> Word32 -> Word32 -> CEnum GroupExitType -> CString -> CSize -> CString -> CSize -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupPeerExitCb :: GroupPeerExitCb -> IO (FunPtr GroupPeerExitCb)
foreign import ccall tox_callback_group_peer_exit :: ToxPtr -> FunPtr GroupPeerExitCb -> IO ()
type GroupSelfJoinCb = ToxPtr -> Word32 -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupSelfJoinCb :: GroupSelfJoinCb -> IO (FunPtr GroupSelfJoinCb)
foreign import ccall tox_callback_group_self_join :: ToxPtr -> FunPtr GroupSelfJoinCb -> IO ()
data GroupJoinFail
= GroupJoinFailPeerLimit
| GroupJoinFailInvalidPassword
| GroupJoinFailUnknown
deriving (GroupJoinFail -> GroupJoinFail -> Bool
(GroupJoinFail -> GroupJoinFail -> Bool)
-> (GroupJoinFail -> GroupJoinFail -> Bool) -> Eq GroupJoinFail
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GroupJoinFail -> GroupJoinFail -> Bool
$c/= :: GroupJoinFail -> GroupJoinFail -> Bool
== :: GroupJoinFail -> GroupJoinFail -> Bool
$c== :: GroupJoinFail -> GroupJoinFail -> Bool
Eq, Eq GroupJoinFail
Eq GroupJoinFail
-> (GroupJoinFail -> GroupJoinFail -> Ordering)
-> (GroupJoinFail -> GroupJoinFail -> Bool)
-> (GroupJoinFail -> GroupJoinFail -> Bool)
-> (GroupJoinFail -> GroupJoinFail -> Bool)
-> (GroupJoinFail -> GroupJoinFail -> Bool)
-> (GroupJoinFail -> GroupJoinFail -> GroupJoinFail)
-> (GroupJoinFail -> GroupJoinFail -> GroupJoinFail)
-> Ord GroupJoinFail
GroupJoinFail -> GroupJoinFail -> Bool
GroupJoinFail -> GroupJoinFail -> Ordering
GroupJoinFail -> GroupJoinFail -> GroupJoinFail
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: GroupJoinFail -> GroupJoinFail -> GroupJoinFail
$cmin :: GroupJoinFail -> GroupJoinFail -> GroupJoinFail
max :: GroupJoinFail -> GroupJoinFail -> GroupJoinFail
$cmax :: GroupJoinFail -> GroupJoinFail -> GroupJoinFail
>= :: GroupJoinFail -> GroupJoinFail -> Bool
$c>= :: GroupJoinFail -> GroupJoinFail -> Bool
> :: GroupJoinFail -> GroupJoinFail -> Bool
$c> :: GroupJoinFail -> GroupJoinFail -> Bool
<= :: GroupJoinFail -> GroupJoinFail -> Bool
$c<= :: GroupJoinFail -> GroupJoinFail -> Bool
< :: GroupJoinFail -> GroupJoinFail -> Bool
$c< :: GroupJoinFail -> GroupJoinFail -> Bool
compare :: GroupJoinFail -> GroupJoinFail -> Ordering
$ccompare :: GroupJoinFail -> GroupJoinFail -> Ordering
$cp1Ord :: Eq GroupJoinFail
Ord, Int -> GroupJoinFail
GroupJoinFail -> Int
GroupJoinFail -> [GroupJoinFail]
GroupJoinFail -> GroupJoinFail
GroupJoinFail -> GroupJoinFail -> [GroupJoinFail]
GroupJoinFail -> GroupJoinFail -> GroupJoinFail -> [GroupJoinFail]
(GroupJoinFail -> GroupJoinFail)
-> (GroupJoinFail -> GroupJoinFail)
-> (Int -> GroupJoinFail)
-> (GroupJoinFail -> Int)
-> (GroupJoinFail -> [GroupJoinFail])
-> (GroupJoinFail -> GroupJoinFail -> [GroupJoinFail])
-> (GroupJoinFail -> GroupJoinFail -> [GroupJoinFail])
-> (GroupJoinFail
-> GroupJoinFail -> GroupJoinFail -> [GroupJoinFail])
-> Enum GroupJoinFail
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: GroupJoinFail -> GroupJoinFail -> GroupJoinFail -> [GroupJoinFail]
$cenumFromThenTo :: GroupJoinFail -> GroupJoinFail -> GroupJoinFail -> [GroupJoinFail]
enumFromTo :: GroupJoinFail -> GroupJoinFail -> [GroupJoinFail]
$cenumFromTo :: GroupJoinFail -> GroupJoinFail -> [GroupJoinFail]
enumFromThen :: GroupJoinFail -> GroupJoinFail -> [GroupJoinFail]
$cenumFromThen :: GroupJoinFail -> GroupJoinFail -> [GroupJoinFail]
enumFrom :: GroupJoinFail -> [GroupJoinFail]
$cenumFrom :: GroupJoinFail -> [GroupJoinFail]
fromEnum :: GroupJoinFail -> Int
$cfromEnum :: GroupJoinFail -> Int
toEnum :: Int -> GroupJoinFail
$ctoEnum :: Int -> GroupJoinFail
pred :: GroupJoinFail -> GroupJoinFail
$cpred :: GroupJoinFail -> GroupJoinFail
succ :: GroupJoinFail -> GroupJoinFail
$csucc :: GroupJoinFail -> GroupJoinFail
Enum, GroupJoinFail
GroupJoinFail -> GroupJoinFail -> Bounded GroupJoinFail
forall a. a -> a -> Bounded a
maxBound :: GroupJoinFail
$cmaxBound :: GroupJoinFail
minBound :: GroupJoinFail
$cminBound :: GroupJoinFail
Bounded, ReadPrec [GroupJoinFail]
ReadPrec GroupJoinFail
Int -> ReadS GroupJoinFail
ReadS [GroupJoinFail]
(Int -> ReadS GroupJoinFail)
-> ReadS [GroupJoinFail]
-> ReadPrec GroupJoinFail
-> ReadPrec [GroupJoinFail]
-> Read GroupJoinFail
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GroupJoinFail]
$creadListPrec :: ReadPrec [GroupJoinFail]
readPrec :: ReadPrec GroupJoinFail
$creadPrec :: ReadPrec GroupJoinFail
readList :: ReadS [GroupJoinFail]
$creadList :: ReadS [GroupJoinFail]
readsPrec :: Int -> ReadS GroupJoinFail
$creadsPrec :: Int -> ReadS GroupJoinFail
Read, Int -> GroupJoinFail -> ShowS
[GroupJoinFail] -> ShowS
GroupJoinFail -> String
(Int -> GroupJoinFail -> ShowS)
-> (GroupJoinFail -> String)
-> ([GroupJoinFail] -> ShowS)
-> Show GroupJoinFail
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GroupJoinFail] -> ShowS
$cshowList :: [GroupJoinFail] -> ShowS
show :: GroupJoinFail -> String
$cshow :: GroupJoinFail -> String
showsPrec :: Int -> GroupJoinFail -> ShowS
$cshowsPrec :: Int -> GroupJoinFail -> ShowS
Show, (forall x. GroupJoinFail -> Rep GroupJoinFail x)
-> (forall x. Rep GroupJoinFail x -> GroupJoinFail)
-> Generic GroupJoinFail
forall x. Rep GroupJoinFail x -> GroupJoinFail
forall x. GroupJoinFail -> Rep GroupJoinFail x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GroupJoinFail x -> GroupJoinFail
$cfrom :: forall x. GroupJoinFail -> Rep GroupJoinFail x
Generic)
instance MessagePack GroupJoinFail
instance Arbitrary GroupJoinFail where arbitrary :: Gen GroupJoinFail
arbitrary = Gen GroupJoinFail
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
type GroupJoinFailCb = ToxPtr -> Word32 -> CEnum GroupJoinFail -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupJoinFailCb :: GroupJoinFailCb -> IO (FunPtr GroupJoinFailCb)
foreign import ccall tox_callback_group_join_fail :: ToxPtr -> FunPtr GroupJoinFailCb -> IO ()
data ErrGroupSetPassword
= ErrGroupSetPasswordGroupNotFound
| ErrGroupSetPasswordPermissions
| ErrGroupSetPasswordTooLong
| ErrGroupSetPasswordFailSend
| ErrGroupSetPasswordMalloc
| ErrGroupSetPasswordDisconnected
deriving (ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
(ErrGroupSetPassword -> ErrGroupSetPassword -> Bool)
-> (ErrGroupSetPassword -> ErrGroupSetPassword -> Bool)
-> Eq ErrGroupSetPassword
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
$c/= :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
== :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
$c== :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
Eq, Eq ErrGroupSetPassword
Eq ErrGroupSetPassword
-> (ErrGroupSetPassword -> ErrGroupSetPassword -> Ordering)
-> (ErrGroupSetPassword -> ErrGroupSetPassword -> Bool)
-> (ErrGroupSetPassword -> ErrGroupSetPassword -> Bool)
-> (ErrGroupSetPassword -> ErrGroupSetPassword -> Bool)
-> (ErrGroupSetPassword -> ErrGroupSetPassword -> Bool)
-> (ErrGroupSetPassword
-> ErrGroupSetPassword -> ErrGroupSetPassword)
-> (ErrGroupSetPassword
-> ErrGroupSetPassword -> ErrGroupSetPassword)
-> Ord ErrGroupSetPassword
ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
ErrGroupSetPassword -> ErrGroupSetPassword -> Ordering
ErrGroupSetPassword -> ErrGroupSetPassword -> ErrGroupSetPassword
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSetPassword -> ErrGroupSetPassword -> ErrGroupSetPassword
$cmin :: ErrGroupSetPassword -> ErrGroupSetPassword -> ErrGroupSetPassword
max :: ErrGroupSetPassword -> ErrGroupSetPassword -> ErrGroupSetPassword
$cmax :: ErrGroupSetPassword -> ErrGroupSetPassword -> ErrGroupSetPassword
>= :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
$c>= :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
> :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
$c> :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
<= :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
$c<= :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
< :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
$c< :: ErrGroupSetPassword -> ErrGroupSetPassword -> Bool
compare :: ErrGroupSetPassword -> ErrGroupSetPassword -> Ordering
$ccompare :: ErrGroupSetPassword -> ErrGroupSetPassword -> Ordering
$cp1Ord :: Eq ErrGroupSetPassword
Ord, Int -> ErrGroupSetPassword
ErrGroupSetPassword -> Int
ErrGroupSetPassword -> [ErrGroupSetPassword]
ErrGroupSetPassword -> ErrGroupSetPassword
ErrGroupSetPassword -> ErrGroupSetPassword -> [ErrGroupSetPassword]
ErrGroupSetPassword
-> ErrGroupSetPassword
-> ErrGroupSetPassword
-> [ErrGroupSetPassword]
(ErrGroupSetPassword -> ErrGroupSetPassword)
-> (ErrGroupSetPassword -> ErrGroupSetPassword)
-> (Int -> ErrGroupSetPassword)
-> (ErrGroupSetPassword -> Int)
-> (ErrGroupSetPassword -> [ErrGroupSetPassword])
-> (ErrGroupSetPassword
-> ErrGroupSetPassword -> [ErrGroupSetPassword])
-> (ErrGroupSetPassword
-> ErrGroupSetPassword -> [ErrGroupSetPassword])
-> (ErrGroupSetPassword
-> ErrGroupSetPassword
-> ErrGroupSetPassword
-> [ErrGroupSetPassword])
-> Enum ErrGroupSetPassword
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSetPassword
-> ErrGroupSetPassword
-> ErrGroupSetPassword
-> [ErrGroupSetPassword]
$cenumFromThenTo :: ErrGroupSetPassword
-> ErrGroupSetPassword
-> ErrGroupSetPassword
-> [ErrGroupSetPassword]
enumFromTo :: ErrGroupSetPassword -> ErrGroupSetPassword -> [ErrGroupSetPassword]
$cenumFromTo :: ErrGroupSetPassword -> ErrGroupSetPassword -> [ErrGroupSetPassword]
enumFromThen :: ErrGroupSetPassword -> ErrGroupSetPassword -> [ErrGroupSetPassword]
$cenumFromThen :: ErrGroupSetPassword -> ErrGroupSetPassword -> [ErrGroupSetPassword]
enumFrom :: ErrGroupSetPassword -> [ErrGroupSetPassword]
$cenumFrom :: ErrGroupSetPassword -> [ErrGroupSetPassword]
fromEnum :: ErrGroupSetPassword -> Int
$cfromEnum :: ErrGroupSetPassword -> Int
toEnum :: Int -> ErrGroupSetPassword
$ctoEnum :: Int -> ErrGroupSetPassword
pred :: ErrGroupSetPassword -> ErrGroupSetPassword
$cpred :: ErrGroupSetPassword -> ErrGroupSetPassword
succ :: ErrGroupSetPassword -> ErrGroupSetPassword
$csucc :: ErrGroupSetPassword -> ErrGroupSetPassword
Enum, ErrGroupSetPassword
ErrGroupSetPassword
-> ErrGroupSetPassword -> Bounded ErrGroupSetPassword
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSetPassword
$cmaxBound :: ErrGroupSetPassword
minBound :: ErrGroupSetPassword
$cminBound :: ErrGroupSetPassword
Bounded, ReadPrec [ErrGroupSetPassword]
ReadPrec ErrGroupSetPassword
Int -> ReadS ErrGroupSetPassword
ReadS [ErrGroupSetPassword]
(Int -> ReadS ErrGroupSetPassword)
-> ReadS [ErrGroupSetPassword]
-> ReadPrec ErrGroupSetPassword
-> ReadPrec [ErrGroupSetPassword]
-> Read ErrGroupSetPassword
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSetPassword]
$creadListPrec :: ReadPrec [ErrGroupSetPassword]
readPrec :: ReadPrec ErrGroupSetPassword
$creadPrec :: ReadPrec ErrGroupSetPassword
readList :: ReadS [ErrGroupSetPassword]
$creadList :: ReadS [ErrGroupSetPassword]
readsPrec :: Int -> ReadS ErrGroupSetPassword
$creadsPrec :: Int -> ReadS ErrGroupSetPassword
Read, Int -> ErrGroupSetPassword -> ShowS
[ErrGroupSetPassword] -> ShowS
ErrGroupSetPassword -> String
(Int -> ErrGroupSetPassword -> ShowS)
-> (ErrGroupSetPassword -> String)
-> ([ErrGroupSetPassword] -> ShowS)
-> Show ErrGroupSetPassword
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSetPassword] -> ShowS
$cshowList :: [ErrGroupSetPassword] -> ShowS
show :: ErrGroupSetPassword -> String
$cshow :: ErrGroupSetPassword -> String
showsPrec :: Int -> ErrGroupSetPassword -> ShowS
$cshowsPrec :: Int -> ErrGroupSetPassword -> ShowS
Show, (forall x. ErrGroupSetPassword -> Rep ErrGroupSetPassword x)
-> (forall x. Rep ErrGroupSetPassword x -> ErrGroupSetPassword)
-> Generic ErrGroupSetPassword
forall x. Rep ErrGroupSetPassword x -> ErrGroupSetPassword
forall x. ErrGroupSetPassword -> Rep ErrGroupSetPassword x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSetPassword x -> ErrGroupSetPassword
$cfrom :: forall x. ErrGroupSetPassword -> Rep ErrGroupSetPassword x
Generic)
instance MessagePack ErrGroupSetPassword
instance Arbitrary ErrGroupSetPassword where arbitrary :: Gen ErrGroupSetPassword
arbitrary = Gen ErrGroupSetPassword
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_set_password :: ToxPtr -> Word32 -> CString -> CSize -> CErr ErrGroupSetPassword -> IO Bool
data ErrGroupSetTopicLock
= ErrGroupSetTopicLockGroupNotFound
| ErrGroupSetTopicLockInvalid
| ErrGroupSetTopicLockPermissions
| ErrGroupSetTopicLockFailSet
| ErrGroupSetTopicLockFailSend
| ErrGroupSetTopicLockDisconnected
deriving (ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
(ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool)
-> (ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool)
-> Eq ErrGroupSetTopicLock
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
$c/= :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
== :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
$c== :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
Eq, Eq ErrGroupSetTopicLock
Eq ErrGroupSetTopicLock
-> (ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Ordering)
-> (ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool)
-> (ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool)
-> (ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool)
-> (ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool)
-> (ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> ErrGroupSetTopicLock)
-> (ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> ErrGroupSetTopicLock)
-> Ord ErrGroupSetTopicLock
ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Ordering
ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> ErrGroupSetTopicLock
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> ErrGroupSetTopicLock
$cmin :: ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> ErrGroupSetTopicLock
max :: ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> ErrGroupSetTopicLock
$cmax :: ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> ErrGroupSetTopicLock
>= :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
$c>= :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
> :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
$c> :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
<= :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
$c<= :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
< :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
$c< :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Bool
compare :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Ordering
$ccompare :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock -> Ordering
$cp1Ord :: Eq ErrGroupSetTopicLock
Ord, Int -> ErrGroupSetTopicLock
ErrGroupSetTopicLock -> Int
ErrGroupSetTopicLock -> [ErrGroupSetTopicLock]
ErrGroupSetTopicLock -> ErrGroupSetTopicLock
ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> [ErrGroupSetTopicLock]
ErrGroupSetTopicLock
-> ErrGroupSetTopicLock
-> ErrGroupSetTopicLock
-> [ErrGroupSetTopicLock]
(ErrGroupSetTopicLock -> ErrGroupSetTopicLock)
-> (ErrGroupSetTopicLock -> ErrGroupSetTopicLock)
-> (Int -> ErrGroupSetTopicLock)
-> (ErrGroupSetTopicLock -> Int)
-> (ErrGroupSetTopicLock -> [ErrGroupSetTopicLock])
-> (ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> [ErrGroupSetTopicLock])
-> (ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> [ErrGroupSetTopicLock])
-> (ErrGroupSetTopicLock
-> ErrGroupSetTopicLock
-> ErrGroupSetTopicLock
-> [ErrGroupSetTopicLock])
-> Enum ErrGroupSetTopicLock
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSetTopicLock
-> ErrGroupSetTopicLock
-> ErrGroupSetTopicLock
-> [ErrGroupSetTopicLock]
$cenumFromThenTo :: ErrGroupSetTopicLock
-> ErrGroupSetTopicLock
-> ErrGroupSetTopicLock
-> [ErrGroupSetTopicLock]
enumFromTo :: ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> [ErrGroupSetTopicLock]
$cenumFromTo :: ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> [ErrGroupSetTopicLock]
enumFromThen :: ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> [ErrGroupSetTopicLock]
$cenumFromThen :: ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> [ErrGroupSetTopicLock]
enumFrom :: ErrGroupSetTopicLock -> [ErrGroupSetTopicLock]
$cenumFrom :: ErrGroupSetTopicLock -> [ErrGroupSetTopicLock]
fromEnum :: ErrGroupSetTopicLock -> Int
$cfromEnum :: ErrGroupSetTopicLock -> Int
toEnum :: Int -> ErrGroupSetTopicLock
$ctoEnum :: Int -> ErrGroupSetTopicLock
pred :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock
$cpred :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock
succ :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock
$csucc :: ErrGroupSetTopicLock -> ErrGroupSetTopicLock
Enum, ErrGroupSetTopicLock
ErrGroupSetTopicLock
-> ErrGroupSetTopicLock -> Bounded ErrGroupSetTopicLock
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSetTopicLock
$cmaxBound :: ErrGroupSetTopicLock
minBound :: ErrGroupSetTopicLock
$cminBound :: ErrGroupSetTopicLock
Bounded, ReadPrec [ErrGroupSetTopicLock]
ReadPrec ErrGroupSetTopicLock
Int -> ReadS ErrGroupSetTopicLock
ReadS [ErrGroupSetTopicLock]
(Int -> ReadS ErrGroupSetTopicLock)
-> ReadS [ErrGroupSetTopicLock]
-> ReadPrec ErrGroupSetTopicLock
-> ReadPrec [ErrGroupSetTopicLock]
-> Read ErrGroupSetTopicLock
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSetTopicLock]
$creadListPrec :: ReadPrec [ErrGroupSetTopicLock]
readPrec :: ReadPrec ErrGroupSetTopicLock
$creadPrec :: ReadPrec ErrGroupSetTopicLock
readList :: ReadS [ErrGroupSetTopicLock]
$creadList :: ReadS [ErrGroupSetTopicLock]
readsPrec :: Int -> ReadS ErrGroupSetTopicLock
$creadsPrec :: Int -> ReadS ErrGroupSetTopicLock
Read, Int -> ErrGroupSetTopicLock -> ShowS
[ErrGroupSetTopicLock] -> ShowS
ErrGroupSetTopicLock -> String
(Int -> ErrGroupSetTopicLock -> ShowS)
-> (ErrGroupSetTopicLock -> String)
-> ([ErrGroupSetTopicLock] -> ShowS)
-> Show ErrGroupSetTopicLock
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSetTopicLock] -> ShowS
$cshowList :: [ErrGroupSetTopicLock] -> ShowS
show :: ErrGroupSetTopicLock -> String
$cshow :: ErrGroupSetTopicLock -> String
showsPrec :: Int -> ErrGroupSetTopicLock -> ShowS
$cshowsPrec :: Int -> ErrGroupSetTopicLock -> ShowS
Show, (forall x. ErrGroupSetTopicLock -> Rep ErrGroupSetTopicLock x)
-> (forall x. Rep ErrGroupSetTopicLock x -> ErrGroupSetTopicLock)
-> Generic ErrGroupSetTopicLock
forall x. Rep ErrGroupSetTopicLock x -> ErrGroupSetTopicLock
forall x. ErrGroupSetTopicLock -> Rep ErrGroupSetTopicLock x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSetTopicLock x -> ErrGroupSetTopicLock
$cfrom :: forall x. ErrGroupSetTopicLock -> Rep ErrGroupSetTopicLock x
Generic)
instance MessagePack ErrGroupSetTopicLock
instance Arbitrary ErrGroupSetTopicLock where arbitrary :: Gen ErrGroupSetTopicLock
arbitrary = Gen ErrGroupSetTopicLock
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_set_topic_lock :: ToxPtr -> Word32 -> CEnum GroupTopicLock -> CErr ErrGroupSetTopicLock -> IO Bool
data ErrGroupSetVoiceState
= ErrGroupSetVoiceStateGroupNotFound
| ErrGroupSetVoiceStatePermissions
| ErrGroupSetVoiceStateFailSet
| ErrGroupSetVoiceStateFailSend
| ErrGroupSetVoiceStateDisconnected
deriving (ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
(ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool)
-> (ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool)
-> Eq ErrGroupSetVoiceState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
$c/= :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
== :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
$c== :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
Eq, Eq ErrGroupSetVoiceState
Eq ErrGroupSetVoiceState
-> (ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Ordering)
-> (ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool)
-> (ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool)
-> (ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool)
-> (ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool)
-> (ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> ErrGroupSetVoiceState)
-> (ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> ErrGroupSetVoiceState)
-> Ord ErrGroupSetVoiceState
ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Ordering
ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> ErrGroupSetVoiceState
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> ErrGroupSetVoiceState
$cmin :: ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> ErrGroupSetVoiceState
max :: ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> ErrGroupSetVoiceState
$cmax :: ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> ErrGroupSetVoiceState
>= :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
$c>= :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
> :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
$c> :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
<= :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
$c<= :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
< :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
$c< :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Bool
compare :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Ordering
$ccompare :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState -> Ordering
$cp1Ord :: Eq ErrGroupSetVoiceState
Ord, Int -> ErrGroupSetVoiceState
ErrGroupSetVoiceState -> Int
ErrGroupSetVoiceState -> [ErrGroupSetVoiceState]
ErrGroupSetVoiceState -> ErrGroupSetVoiceState
ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> [ErrGroupSetVoiceState]
ErrGroupSetVoiceState
-> ErrGroupSetVoiceState
-> ErrGroupSetVoiceState
-> [ErrGroupSetVoiceState]
(ErrGroupSetVoiceState -> ErrGroupSetVoiceState)
-> (ErrGroupSetVoiceState -> ErrGroupSetVoiceState)
-> (Int -> ErrGroupSetVoiceState)
-> (ErrGroupSetVoiceState -> Int)
-> (ErrGroupSetVoiceState -> [ErrGroupSetVoiceState])
-> (ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> [ErrGroupSetVoiceState])
-> (ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> [ErrGroupSetVoiceState])
-> (ErrGroupSetVoiceState
-> ErrGroupSetVoiceState
-> ErrGroupSetVoiceState
-> [ErrGroupSetVoiceState])
-> Enum ErrGroupSetVoiceState
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSetVoiceState
-> ErrGroupSetVoiceState
-> ErrGroupSetVoiceState
-> [ErrGroupSetVoiceState]
$cenumFromThenTo :: ErrGroupSetVoiceState
-> ErrGroupSetVoiceState
-> ErrGroupSetVoiceState
-> [ErrGroupSetVoiceState]
enumFromTo :: ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> [ErrGroupSetVoiceState]
$cenumFromTo :: ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> [ErrGroupSetVoiceState]
enumFromThen :: ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> [ErrGroupSetVoiceState]
$cenumFromThen :: ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> [ErrGroupSetVoiceState]
enumFrom :: ErrGroupSetVoiceState -> [ErrGroupSetVoiceState]
$cenumFrom :: ErrGroupSetVoiceState -> [ErrGroupSetVoiceState]
fromEnum :: ErrGroupSetVoiceState -> Int
$cfromEnum :: ErrGroupSetVoiceState -> Int
toEnum :: Int -> ErrGroupSetVoiceState
$ctoEnum :: Int -> ErrGroupSetVoiceState
pred :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState
$cpred :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState
succ :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState
$csucc :: ErrGroupSetVoiceState -> ErrGroupSetVoiceState
Enum, ErrGroupSetVoiceState
ErrGroupSetVoiceState
-> ErrGroupSetVoiceState -> Bounded ErrGroupSetVoiceState
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSetVoiceState
$cmaxBound :: ErrGroupSetVoiceState
minBound :: ErrGroupSetVoiceState
$cminBound :: ErrGroupSetVoiceState
Bounded, ReadPrec [ErrGroupSetVoiceState]
ReadPrec ErrGroupSetVoiceState
Int -> ReadS ErrGroupSetVoiceState
ReadS [ErrGroupSetVoiceState]
(Int -> ReadS ErrGroupSetVoiceState)
-> ReadS [ErrGroupSetVoiceState]
-> ReadPrec ErrGroupSetVoiceState
-> ReadPrec [ErrGroupSetVoiceState]
-> Read ErrGroupSetVoiceState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSetVoiceState]
$creadListPrec :: ReadPrec [ErrGroupSetVoiceState]
readPrec :: ReadPrec ErrGroupSetVoiceState
$creadPrec :: ReadPrec ErrGroupSetVoiceState
readList :: ReadS [ErrGroupSetVoiceState]
$creadList :: ReadS [ErrGroupSetVoiceState]
readsPrec :: Int -> ReadS ErrGroupSetVoiceState
$creadsPrec :: Int -> ReadS ErrGroupSetVoiceState
Read, Int -> ErrGroupSetVoiceState -> ShowS
[ErrGroupSetVoiceState] -> ShowS
ErrGroupSetVoiceState -> String
(Int -> ErrGroupSetVoiceState -> ShowS)
-> (ErrGroupSetVoiceState -> String)
-> ([ErrGroupSetVoiceState] -> ShowS)
-> Show ErrGroupSetVoiceState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSetVoiceState] -> ShowS
$cshowList :: [ErrGroupSetVoiceState] -> ShowS
show :: ErrGroupSetVoiceState -> String
$cshow :: ErrGroupSetVoiceState -> String
showsPrec :: Int -> ErrGroupSetVoiceState -> ShowS
$cshowsPrec :: Int -> ErrGroupSetVoiceState -> ShowS
Show, (forall x. ErrGroupSetVoiceState -> Rep ErrGroupSetVoiceState x)
-> (forall x. Rep ErrGroupSetVoiceState x -> ErrGroupSetVoiceState)
-> Generic ErrGroupSetVoiceState
forall x. Rep ErrGroupSetVoiceState x -> ErrGroupSetVoiceState
forall x. ErrGroupSetVoiceState -> Rep ErrGroupSetVoiceState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSetVoiceState x -> ErrGroupSetVoiceState
$cfrom :: forall x. ErrGroupSetVoiceState -> Rep ErrGroupSetVoiceState x
Generic)
instance MessagePack ErrGroupSetVoiceState
instance Arbitrary ErrGroupSetVoiceState where arbitrary :: Gen ErrGroupSetVoiceState
arbitrary = Gen ErrGroupSetVoiceState
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_set_voice_state :: ToxPtr -> Word32 -> CEnum GroupVoiceState -> CErr ErrGroupSetVoiceState -> IO Bool
data ErrGroupSetPrivacyState
= ErrGroupSetPrivacyStateGroupNotFound
| ErrGroupSetPrivacyStatePermissions
| ErrGroupSetPrivacyStateFailSet
| ErrGroupSetPrivacyStateFailSend
| ErrGroupSetPrivacyStateDisconnected
deriving (ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
(ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool)
-> (ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool)
-> Eq ErrGroupSetPrivacyState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
$c/= :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
== :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
$c== :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
Eq, Eq ErrGroupSetPrivacyState
Eq ErrGroupSetPrivacyState
-> (ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Ordering)
-> (ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool)
-> (ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool)
-> (ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool)
-> (ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool)
-> (ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState)
-> (ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState)
-> Ord ErrGroupSetPrivacyState
ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Ordering
ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState
$cmin :: ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState
max :: ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState
$cmax :: ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState
>= :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
$c>= :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
> :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
$c> :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
<= :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
$c<= :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
< :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
$c< :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Bool
compare :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Ordering
$ccompare :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState -> Ordering
$cp1Ord :: Eq ErrGroupSetPrivacyState
Ord, Int -> ErrGroupSetPrivacyState
ErrGroupSetPrivacyState -> Int
ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState]
ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState
ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState]
ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState
-> [ErrGroupSetPrivacyState]
(ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState)
-> (ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState)
-> (Int -> ErrGroupSetPrivacyState)
-> (ErrGroupSetPrivacyState -> Int)
-> (ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState])
-> (ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState])
-> (ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState])
-> (ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState
-> [ErrGroupSetPrivacyState])
-> Enum ErrGroupSetPrivacyState
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState
-> [ErrGroupSetPrivacyState]
$cenumFromThenTo :: ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState
-> [ErrGroupSetPrivacyState]
enumFromTo :: ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState]
$cenumFromTo :: ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState]
enumFromThen :: ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState]
$cenumFromThen :: ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState]
enumFrom :: ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState]
$cenumFrom :: ErrGroupSetPrivacyState -> [ErrGroupSetPrivacyState]
fromEnum :: ErrGroupSetPrivacyState -> Int
$cfromEnum :: ErrGroupSetPrivacyState -> Int
toEnum :: Int -> ErrGroupSetPrivacyState
$ctoEnum :: Int -> ErrGroupSetPrivacyState
pred :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState
$cpred :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState
succ :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState
$csucc :: ErrGroupSetPrivacyState -> ErrGroupSetPrivacyState
Enum, ErrGroupSetPrivacyState
ErrGroupSetPrivacyState
-> ErrGroupSetPrivacyState -> Bounded ErrGroupSetPrivacyState
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSetPrivacyState
$cmaxBound :: ErrGroupSetPrivacyState
minBound :: ErrGroupSetPrivacyState
$cminBound :: ErrGroupSetPrivacyState
Bounded, ReadPrec [ErrGroupSetPrivacyState]
ReadPrec ErrGroupSetPrivacyState
Int -> ReadS ErrGroupSetPrivacyState
ReadS [ErrGroupSetPrivacyState]
(Int -> ReadS ErrGroupSetPrivacyState)
-> ReadS [ErrGroupSetPrivacyState]
-> ReadPrec ErrGroupSetPrivacyState
-> ReadPrec [ErrGroupSetPrivacyState]
-> Read ErrGroupSetPrivacyState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSetPrivacyState]
$creadListPrec :: ReadPrec [ErrGroupSetPrivacyState]
readPrec :: ReadPrec ErrGroupSetPrivacyState
$creadPrec :: ReadPrec ErrGroupSetPrivacyState
readList :: ReadS [ErrGroupSetPrivacyState]
$creadList :: ReadS [ErrGroupSetPrivacyState]
readsPrec :: Int -> ReadS ErrGroupSetPrivacyState
$creadsPrec :: Int -> ReadS ErrGroupSetPrivacyState
Read, Int -> ErrGroupSetPrivacyState -> ShowS
[ErrGroupSetPrivacyState] -> ShowS
ErrGroupSetPrivacyState -> String
(Int -> ErrGroupSetPrivacyState -> ShowS)
-> (ErrGroupSetPrivacyState -> String)
-> ([ErrGroupSetPrivacyState] -> ShowS)
-> Show ErrGroupSetPrivacyState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSetPrivacyState] -> ShowS
$cshowList :: [ErrGroupSetPrivacyState] -> ShowS
show :: ErrGroupSetPrivacyState -> String
$cshow :: ErrGroupSetPrivacyState -> String
showsPrec :: Int -> ErrGroupSetPrivacyState -> ShowS
$cshowsPrec :: Int -> ErrGroupSetPrivacyState -> ShowS
Show, (forall x.
ErrGroupSetPrivacyState -> Rep ErrGroupSetPrivacyState x)
-> (forall x.
Rep ErrGroupSetPrivacyState x -> ErrGroupSetPrivacyState)
-> Generic ErrGroupSetPrivacyState
forall x. Rep ErrGroupSetPrivacyState x -> ErrGroupSetPrivacyState
forall x. ErrGroupSetPrivacyState -> Rep ErrGroupSetPrivacyState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSetPrivacyState x -> ErrGroupSetPrivacyState
$cfrom :: forall x. ErrGroupSetPrivacyState -> Rep ErrGroupSetPrivacyState x
Generic)
instance MessagePack ErrGroupSetPrivacyState
instance Arbitrary ErrGroupSetPrivacyState where arbitrary :: Gen ErrGroupSetPrivacyState
arbitrary = Gen ErrGroupSetPrivacyState
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_set_privacy_state :: ToxPtr -> Word32 -> CEnum GroupPrivacyState -> CErr ErrGroupSetPrivacyState -> IO Bool
data ErrGroupSetPeerLimit
= ErrGroupSetPeerLimitGroupNotFound
| ErrGroupSetPeerLimitPermissions
| ErrGroupSetPeerLimitFailSet
| ErrGroupSetPeerLimitFailSend
| ErrGroupSetPeerLimitDisconnected
deriving (ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
(ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool)
-> (ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool)
-> Eq ErrGroupSetPeerLimit
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
$c/= :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
== :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
$c== :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
Eq, Eq ErrGroupSetPeerLimit
Eq ErrGroupSetPeerLimit
-> (ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Ordering)
-> (ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool)
-> (ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool)
-> (ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool)
-> (ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool)
-> (ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit)
-> (ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit)
-> Ord ErrGroupSetPeerLimit
ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Ordering
ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit
$cmin :: ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit
max :: ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit
$cmax :: ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit
>= :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
$c>= :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
> :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
$c> :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
<= :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
$c<= :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
< :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
$c< :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Bool
compare :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Ordering
$ccompare :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit -> Ordering
$cp1Ord :: Eq ErrGroupSetPeerLimit
Ord, Int -> ErrGroupSetPeerLimit
ErrGroupSetPeerLimit -> Int
ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit]
ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit
ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit]
ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit
-> [ErrGroupSetPeerLimit]
(ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit)
-> (ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit)
-> (Int -> ErrGroupSetPeerLimit)
-> (ErrGroupSetPeerLimit -> Int)
-> (ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit])
-> (ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit])
-> (ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit])
-> (ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit
-> [ErrGroupSetPeerLimit])
-> Enum ErrGroupSetPeerLimit
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit
-> [ErrGroupSetPeerLimit]
$cenumFromThenTo :: ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit
-> [ErrGroupSetPeerLimit]
enumFromTo :: ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit]
$cenumFromTo :: ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit]
enumFromThen :: ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit]
$cenumFromThen :: ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit]
enumFrom :: ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit]
$cenumFrom :: ErrGroupSetPeerLimit -> [ErrGroupSetPeerLimit]
fromEnum :: ErrGroupSetPeerLimit -> Int
$cfromEnum :: ErrGroupSetPeerLimit -> Int
toEnum :: Int -> ErrGroupSetPeerLimit
$ctoEnum :: Int -> ErrGroupSetPeerLimit
pred :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit
$cpred :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit
succ :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit
$csucc :: ErrGroupSetPeerLimit -> ErrGroupSetPeerLimit
Enum, ErrGroupSetPeerLimit
ErrGroupSetPeerLimit
-> ErrGroupSetPeerLimit -> Bounded ErrGroupSetPeerLimit
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSetPeerLimit
$cmaxBound :: ErrGroupSetPeerLimit
minBound :: ErrGroupSetPeerLimit
$cminBound :: ErrGroupSetPeerLimit
Bounded, ReadPrec [ErrGroupSetPeerLimit]
ReadPrec ErrGroupSetPeerLimit
Int -> ReadS ErrGroupSetPeerLimit
ReadS [ErrGroupSetPeerLimit]
(Int -> ReadS ErrGroupSetPeerLimit)
-> ReadS [ErrGroupSetPeerLimit]
-> ReadPrec ErrGroupSetPeerLimit
-> ReadPrec [ErrGroupSetPeerLimit]
-> Read ErrGroupSetPeerLimit
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSetPeerLimit]
$creadListPrec :: ReadPrec [ErrGroupSetPeerLimit]
readPrec :: ReadPrec ErrGroupSetPeerLimit
$creadPrec :: ReadPrec ErrGroupSetPeerLimit
readList :: ReadS [ErrGroupSetPeerLimit]
$creadList :: ReadS [ErrGroupSetPeerLimit]
readsPrec :: Int -> ReadS ErrGroupSetPeerLimit
$creadsPrec :: Int -> ReadS ErrGroupSetPeerLimit
Read, Int -> ErrGroupSetPeerLimit -> ShowS
[ErrGroupSetPeerLimit] -> ShowS
ErrGroupSetPeerLimit -> String
(Int -> ErrGroupSetPeerLimit -> ShowS)
-> (ErrGroupSetPeerLimit -> String)
-> ([ErrGroupSetPeerLimit] -> ShowS)
-> Show ErrGroupSetPeerLimit
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSetPeerLimit] -> ShowS
$cshowList :: [ErrGroupSetPeerLimit] -> ShowS
show :: ErrGroupSetPeerLimit -> String
$cshow :: ErrGroupSetPeerLimit -> String
showsPrec :: Int -> ErrGroupSetPeerLimit -> ShowS
$cshowsPrec :: Int -> ErrGroupSetPeerLimit -> ShowS
Show, (forall x. ErrGroupSetPeerLimit -> Rep ErrGroupSetPeerLimit x)
-> (forall x. Rep ErrGroupSetPeerLimit x -> ErrGroupSetPeerLimit)
-> Generic ErrGroupSetPeerLimit
forall x. Rep ErrGroupSetPeerLimit x -> ErrGroupSetPeerLimit
forall x. ErrGroupSetPeerLimit -> Rep ErrGroupSetPeerLimit x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSetPeerLimit x -> ErrGroupSetPeerLimit
$cfrom :: forall x. ErrGroupSetPeerLimit -> Rep ErrGroupSetPeerLimit x
Generic)
instance MessagePack ErrGroupSetPeerLimit
instance Arbitrary ErrGroupSetPeerLimit where arbitrary :: Gen ErrGroupSetPeerLimit
arbitrary = Gen ErrGroupSetPeerLimit
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_set_peer_limit :: ToxPtr -> Word32 -> Word16 -> CErr ErrGroupSetPeerLimit -> IO Bool
data ErrGroupSetIgnore
= ErrGroupSetIgnoreGroupNotFound
| ErrGroupSetIgnorePeerNotFound
| ErrGroupSetIgnoreSelf
deriving (ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
(ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool)
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool)
-> Eq ErrGroupSetIgnore
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
$c/= :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
== :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
$c== :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
Eq, Eq ErrGroupSetIgnore
Eq ErrGroupSetIgnore
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore -> Ordering)
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool)
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool)
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool)
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool)
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore -> ErrGroupSetIgnore)
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore -> ErrGroupSetIgnore)
-> Ord ErrGroupSetIgnore
ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
ErrGroupSetIgnore -> ErrGroupSetIgnore -> Ordering
ErrGroupSetIgnore -> ErrGroupSetIgnore -> ErrGroupSetIgnore
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> ErrGroupSetIgnore
$cmin :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> ErrGroupSetIgnore
max :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> ErrGroupSetIgnore
$cmax :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> ErrGroupSetIgnore
>= :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
$c>= :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
> :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
$c> :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
<= :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
$c<= :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
< :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
$c< :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bool
compare :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Ordering
$ccompare :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> Ordering
$cp1Ord :: Eq ErrGroupSetIgnore
Ord, Int -> ErrGroupSetIgnore
ErrGroupSetIgnore -> Int
ErrGroupSetIgnore -> [ErrGroupSetIgnore]
ErrGroupSetIgnore -> ErrGroupSetIgnore
ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore]
ErrGroupSetIgnore
-> ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore]
(ErrGroupSetIgnore -> ErrGroupSetIgnore)
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore)
-> (Int -> ErrGroupSetIgnore)
-> (ErrGroupSetIgnore -> Int)
-> (ErrGroupSetIgnore -> [ErrGroupSetIgnore])
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore])
-> (ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore])
-> (ErrGroupSetIgnore
-> ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore])
-> Enum ErrGroupSetIgnore
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSetIgnore
-> ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore]
$cenumFromThenTo :: ErrGroupSetIgnore
-> ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore]
enumFromTo :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore]
$cenumFromTo :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore]
enumFromThen :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore]
$cenumFromThen :: ErrGroupSetIgnore -> ErrGroupSetIgnore -> [ErrGroupSetIgnore]
enumFrom :: ErrGroupSetIgnore -> [ErrGroupSetIgnore]
$cenumFrom :: ErrGroupSetIgnore -> [ErrGroupSetIgnore]
fromEnum :: ErrGroupSetIgnore -> Int
$cfromEnum :: ErrGroupSetIgnore -> Int
toEnum :: Int -> ErrGroupSetIgnore
$ctoEnum :: Int -> ErrGroupSetIgnore
pred :: ErrGroupSetIgnore -> ErrGroupSetIgnore
$cpred :: ErrGroupSetIgnore -> ErrGroupSetIgnore
succ :: ErrGroupSetIgnore -> ErrGroupSetIgnore
$csucc :: ErrGroupSetIgnore -> ErrGroupSetIgnore
Enum, ErrGroupSetIgnore
ErrGroupSetIgnore -> ErrGroupSetIgnore -> Bounded ErrGroupSetIgnore
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSetIgnore
$cmaxBound :: ErrGroupSetIgnore
minBound :: ErrGroupSetIgnore
$cminBound :: ErrGroupSetIgnore
Bounded, ReadPrec [ErrGroupSetIgnore]
ReadPrec ErrGroupSetIgnore
Int -> ReadS ErrGroupSetIgnore
ReadS [ErrGroupSetIgnore]
(Int -> ReadS ErrGroupSetIgnore)
-> ReadS [ErrGroupSetIgnore]
-> ReadPrec ErrGroupSetIgnore
-> ReadPrec [ErrGroupSetIgnore]
-> Read ErrGroupSetIgnore
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSetIgnore]
$creadListPrec :: ReadPrec [ErrGroupSetIgnore]
readPrec :: ReadPrec ErrGroupSetIgnore
$creadPrec :: ReadPrec ErrGroupSetIgnore
readList :: ReadS [ErrGroupSetIgnore]
$creadList :: ReadS [ErrGroupSetIgnore]
readsPrec :: Int -> ReadS ErrGroupSetIgnore
$creadsPrec :: Int -> ReadS ErrGroupSetIgnore
Read, Int -> ErrGroupSetIgnore -> ShowS
[ErrGroupSetIgnore] -> ShowS
ErrGroupSetIgnore -> String
(Int -> ErrGroupSetIgnore -> ShowS)
-> (ErrGroupSetIgnore -> String)
-> ([ErrGroupSetIgnore] -> ShowS)
-> Show ErrGroupSetIgnore
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSetIgnore] -> ShowS
$cshowList :: [ErrGroupSetIgnore] -> ShowS
show :: ErrGroupSetIgnore -> String
$cshow :: ErrGroupSetIgnore -> String
showsPrec :: Int -> ErrGroupSetIgnore -> ShowS
$cshowsPrec :: Int -> ErrGroupSetIgnore -> ShowS
Show, (forall x. ErrGroupSetIgnore -> Rep ErrGroupSetIgnore x)
-> (forall x. Rep ErrGroupSetIgnore x -> ErrGroupSetIgnore)
-> Generic ErrGroupSetIgnore
forall x. Rep ErrGroupSetIgnore x -> ErrGroupSetIgnore
forall x. ErrGroupSetIgnore -> Rep ErrGroupSetIgnore x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSetIgnore x -> ErrGroupSetIgnore
$cfrom :: forall x. ErrGroupSetIgnore -> Rep ErrGroupSetIgnore x
Generic)
instance MessagePack ErrGroupSetIgnore
instance Arbitrary ErrGroupSetIgnore where arbitrary :: Gen ErrGroupSetIgnore
arbitrary = Gen ErrGroupSetIgnore
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_set_ignore :: ToxPtr -> Word32 -> Word32 -> Bool -> CErr ErrGroupSetIgnore -> IO Bool
data ErrGroupSetRole
= ErrGroupSetRoleGroupNotFound
| ErrGroupSetRolePeerNotFound
| ErrGroupSetRolePermissions
| ErrGroupSetRoleAssignment
| ErrGroupSetRoleFailAction
| ErrGroupSetRoleSelf
deriving (ErrGroupSetRole -> ErrGroupSetRole -> Bool
(ErrGroupSetRole -> ErrGroupSetRole -> Bool)
-> (ErrGroupSetRole -> ErrGroupSetRole -> Bool)
-> Eq ErrGroupSetRole
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
$c/= :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
== :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
$c== :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
Eq, Eq ErrGroupSetRole
Eq ErrGroupSetRole
-> (ErrGroupSetRole -> ErrGroupSetRole -> Ordering)
-> (ErrGroupSetRole -> ErrGroupSetRole -> Bool)
-> (ErrGroupSetRole -> ErrGroupSetRole -> Bool)
-> (ErrGroupSetRole -> ErrGroupSetRole -> Bool)
-> (ErrGroupSetRole -> ErrGroupSetRole -> Bool)
-> (ErrGroupSetRole -> ErrGroupSetRole -> ErrGroupSetRole)
-> (ErrGroupSetRole -> ErrGroupSetRole -> ErrGroupSetRole)
-> Ord ErrGroupSetRole
ErrGroupSetRole -> ErrGroupSetRole -> Bool
ErrGroupSetRole -> ErrGroupSetRole -> Ordering
ErrGroupSetRole -> ErrGroupSetRole -> ErrGroupSetRole
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupSetRole -> ErrGroupSetRole -> ErrGroupSetRole
$cmin :: ErrGroupSetRole -> ErrGroupSetRole -> ErrGroupSetRole
max :: ErrGroupSetRole -> ErrGroupSetRole -> ErrGroupSetRole
$cmax :: ErrGroupSetRole -> ErrGroupSetRole -> ErrGroupSetRole
>= :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
$c>= :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
> :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
$c> :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
<= :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
$c<= :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
< :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
$c< :: ErrGroupSetRole -> ErrGroupSetRole -> Bool
compare :: ErrGroupSetRole -> ErrGroupSetRole -> Ordering
$ccompare :: ErrGroupSetRole -> ErrGroupSetRole -> Ordering
$cp1Ord :: Eq ErrGroupSetRole
Ord, Int -> ErrGroupSetRole
ErrGroupSetRole -> Int
ErrGroupSetRole -> [ErrGroupSetRole]
ErrGroupSetRole -> ErrGroupSetRole
ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole]
ErrGroupSetRole
-> ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole]
(ErrGroupSetRole -> ErrGroupSetRole)
-> (ErrGroupSetRole -> ErrGroupSetRole)
-> (Int -> ErrGroupSetRole)
-> (ErrGroupSetRole -> Int)
-> (ErrGroupSetRole -> [ErrGroupSetRole])
-> (ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole])
-> (ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole])
-> (ErrGroupSetRole
-> ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole])
-> Enum ErrGroupSetRole
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupSetRole
-> ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole]
$cenumFromThenTo :: ErrGroupSetRole
-> ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole]
enumFromTo :: ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole]
$cenumFromTo :: ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole]
enumFromThen :: ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole]
$cenumFromThen :: ErrGroupSetRole -> ErrGroupSetRole -> [ErrGroupSetRole]
enumFrom :: ErrGroupSetRole -> [ErrGroupSetRole]
$cenumFrom :: ErrGroupSetRole -> [ErrGroupSetRole]
fromEnum :: ErrGroupSetRole -> Int
$cfromEnum :: ErrGroupSetRole -> Int
toEnum :: Int -> ErrGroupSetRole
$ctoEnum :: Int -> ErrGroupSetRole
pred :: ErrGroupSetRole -> ErrGroupSetRole
$cpred :: ErrGroupSetRole -> ErrGroupSetRole
succ :: ErrGroupSetRole -> ErrGroupSetRole
$csucc :: ErrGroupSetRole -> ErrGroupSetRole
Enum, ErrGroupSetRole
ErrGroupSetRole -> ErrGroupSetRole -> Bounded ErrGroupSetRole
forall a. a -> a -> Bounded a
maxBound :: ErrGroupSetRole
$cmaxBound :: ErrGroupSetRole
minBound :: ErrGroupSetRole
$cminBound :: ErrGroupSetRole
Bounded, ReadPrec [ErrGroupSetRole]
ReadPrec ErrGroupSetRole
Int -> ReadS ErrGroupSetRole
ReadS [ErrGroupSetRole]
(Int -> ReadS ErrGroupSetRole)
-> ReadS [ErrGroupSetRole]
-> ReadPrec ErrGroupSetRole
-> ReadPrec [ErrGroupSetRole]
-> Read ErrGroupSetRole
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupSetRole]
$creadListPrec :: ReadPrec [ErrGroupSetRole]
readPrec :: ReadPrec ErrGroupSetRole
$creadPrec :: ReadPrec ErrGroupSetRole
readList :: ReadS [ErrGroupSetRole]
$creadList :: ReadS [ErrGroupSetRole]
readsPrec :: Int -> ReadS ErrGroupSetRole
$creadsPrec :: Int -> ReadS ErrGroupSetRole
Read, Int -> ErrGroupSetRole -> ShowS
[ErrGroupSetRole] -> ShowS
ErrGroupSetRole -> String
(Int -> ErrGroupSetRole -> ShowS)
-> (ErrGroupSetRole -> String)
-> ([ErrGroupSetRole] -> ShowS)
-> Show ErrGroupSetRole
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupSetRole] -> ShowS
$cshowList :: [ErrGroupSetRole] -> ShowS
show :: ErrGroupSetRole -> String
$cshow :: ErrGroupSetRole -> String
showsPrec :: Int -> ErrGroupSetRole -> ShowS
$cshowsPrec :: Int -> ErrGroupSetRole -> ShowS
Show, (forall x. ErrGroupSetRole -> Rep ErrGroupSetRole x)
-> (forall x. Rep ErrGroupSetRole x -> ErrGroupSetRole)
-> Generic ErrGroupSetRole
forall x. Rep ErrGroupSetRole x -> ErrGroupSetRole
forall x. ErrGroupSetRole -> Rep ErrGroupSetRole x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupSetRole x -> ErrGroupSetRole
$cfrom :: forall x. ErrGroupSetRole -> Rep ErrGroupSetRole x
Generic)
instance MessagePack ErrGroupSetRole
instance Arbitrary ErrGroupSetRole where arbitrary :: Gen ErrGroupSetRole
arbitrary = Gen ErrGroupSetRole
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_set_role :: ToxPtr -> Word32 -> Word32 -> CEnum GroupRole -> CErr ErrGroupSetRole -> IO Bool
data ErrGroupKickPeer
= ErrGroupKickPeerGroupNotFound
| ErrGroupKickPeerPeerNotFound
| ErrGroupKickPeerPermissions
| ErrGroupKickPeerFailAction
| ErrGroupKickPeerFailSend
| ErrGroupKickPeerSelf
deriving (ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
(ErrGroupKickPeer -> ErrGroupKickPeer -> Bool)
-> (ErrGroupKickPeer -> ErrGroupKickPeer -> Bool)
-> Eq ErrGroupKickPeer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
$c/= :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
== :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
$c== :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
Eq, Eq ErrGroupKickPeer
Eq ErrGroupKickPeer
-> (ErrGroupKickPeer -> ErrGroupKickPeer -> Ordering)
-> (ErrGroupKickPeer -> ErrGroupKickPeer -> Bool)
-> (ErrGroupKickPeer -> ErrGroupKickPeer -> Bool)
-> (ErrGroupKickPeer -> ErrGroupKickPeer -> Bool)
-> (ErrGroupKickPeer -> ErrGroupKickPeer -> Bool)
-> (ErrGroupKickPeer -> ErrGroupKickPeer -> ErrGroupKickPeer)
-> (ErrGroupKickPeer -> ErrGroupKickPeer -> ErrGroupKickPeer)
-> Ord ErrGroupKickPeer
ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
ErrGroupKickPeer -> ErrGroupKickPeer -> Ordering
ErrGroupKickPeer -> ErrGroupKickPeer -> ErrGroupKickPeer
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: ErrGroupKickPeer -> ErrGroupKickPeer -> ErrGroupKickPeer
$cmin :: ErrGroupKickPeer -> ErrGroupKickPeer -> ErrGroupKickPeer
max :: ErrGroupKickPeer -> ErrGroupKickPeer -> ErrGroupKickPeer
$cmax :: ErrGroupKickPeer -> ErrGroupKickPeer -> ErrGroupKickPeer
>= :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
$c>= :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
> :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
$c> :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
<= :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
$c<= :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
< :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
$c< :: ErrGroupKickPeer -> ErrGroupKickPeer -> Bool
compare :: ErrGroupKickPeer -> ErrGroupKickPeer -> Ordering
$ccompare :: ErrGroupKickPeer -> ErrGroupKickPeer -> Ordering
$cp1Ord :: Eq ErrGroupKickPeer
Ord, Int -> ErrGroupKickPeer
ErrGroupKickPeer -> Int
ErrGroupKickPeer -> [ErrGroupKickPeer]
ErrGroupKickPeer -> ErrGroupKickPeer
ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer]
ErrGroupKickPeer
-> ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer]
(ErrGroupKickPeer -> ErrGroupKickPeer)
-> (ErrGroupKickPeer -> ErrGroupKickPeer)
-> (Int -> ErrGroupKickPeer)
-> (ErrGroupKickPeer -> Int)
-> (ErrGroupKickPeer -> [ErrGroupKickPeer])
-> (ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer])
-> (ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer])
-> (ErrGroupKickPeer
-> ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer])
-> Enum ErrGroupKickPeer
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: ErrGroupKickPeer
-> ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer]
$cenumFromThenTo :: ErrGroupKickPeer
-> ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer]
enumFromTo :: ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer]
$cenumFromTo :: ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer]
enumFromThen :: ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer]
$cenumFromThen :: ErrGroupKickPeer -> ErrGroupKickPeer -> [ErrGroupKickPeer]
enumFrom :: ErrGroupKickPeer -> [ErrGroupKickPeer]
$cenumFrom :: ErrGroupKickPeer -> [ErrGroupKickPeer]
fromEnum :: ErrGroupKickPeer -> Int
$cfromEnum :: ErrGroupKickPeer -> Int
toEnum :: Int -> ErrGroupKickPeer
$ctoEnum :: Int -> ErrGroupKickPeer
pred :: ErrGroupKickPeer -> ErrGroupKickPeer
$cpred :: ErrGroupKickPeer -> ErrGroupKickPeer
succ :: ErrGroupKickPeer -> ErrGroupKickPeer
$csucc :: ErrGroupKickPeer -> ErrGroupKickPeer
Enum, ErrGroupKickPeer
ErrGroupKickPeer -> ErrGroupKickPeer -> Bounded ErrGroupKickPeer
forall a. a -> a -> Bounded a
maxBound :: ErrGroupKickPeer
$cmaxBound :: ErrGroupKickPeer
minBound :: ErrGroupKickPeer
$cminBound :: ErrGroupKickPeer
Bounded, ReadPrec [ErrGroupKickPeer]
ReadPrec ErrGroupKickPeer
Int -> ReadS ErrGroupKickPeer
ReadS [ErrGroupKickPeer]
(Int -> ReadS ErrGroupKickPeer)
-> ReadS [ErrGroupKickPeer]
-> ReadPrec ErrGroupKickPeer
-> ReadPrec [ErrGroupKickPeer]
-> Read ErrGroupKickPeer
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ErrGroupKickPeer]
$creadListPrec :: ReadPrec [ErrGroupKickPeer]
readPrec :: ReadPrec ErrGroupKickPeer
$creadPrec :: ReadPrec ErrGroupKickPeer
readList :: ReadS [ErrGroupKickPeer]
$creadList :: ReadS [ErrGroupKickPeer]
readsPrec :: Int -> ReadS ErrGroupKickPeer
$creadsPrec :: Int -> ReadS ErrGroupKickPeer
Read, Int -> ErrGroupKickPeer -> ShowS
[ErrGroupKickPeer] -> ShowS
ErrGroupKickPeer -> String
(Int -> ErrGroupKickPeer -> ShowS)
-> (ErrGroupKickPeer -> String)
-> ([ErrGroupKickPeer] -> ShowS)
-> Show ErrGroupKickPeer
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ErrGroupKickPeer] -> ShowS
$cshowList :: [ErrGroupKickPeer] -> ShowS
show :: ErrGroupKickPeer -> String
$cshow :: ErrGroupKickPeer -> String
showsPrec :: Int -> ErrGroupKickPeer -> ShowS
$cshowsPrec :: Int -> ErrGroupKickPeer -> ShowS
Show, (forall x. ErrGroupKickPeer -> Rep ErrGroupKickPeer x)
-> (forall x. Rep ErrGroupKickPeer x -> ErrGroupKickPeer)
-> Generic ErrGroupKickPeer
forall x. Rep ErrGroupKickPeer x -> ErrGroupKickPeer
forall x. ErrGroupKickPeer -> Rep ErrGroupKickPeer x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ErrGroupKickPeer x -> ErrGroupKickPeer
$cfrom :: forall x. ErrGroupKickPeer -> Rep ErrGroupKickPeer x
Generic)
instance MessagePack ErrGroupKickPeer
instance Arbitrary ErrGroupKickPeer where arbitrary :: Gen ErrGroupKickPeer
arbitrary = Gen ErrGroupKickPeer
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
foreign import ccall tox_group_kick_peer :: ToxPtr -> Word32 -> Word32 -> CErr ErrGroupKickPeer -> IO Bool
data GroupModEvent
= GroupModEventKick
| GroupModEventObserver
| GroupModEventUser
| GroupModEventModerator
deriving (GroupModEvent -> GroupModEvent -> Bool
(GroupModEvent -> GroupModEvent -> Bool)
-> (GroupModEvent -> GroupModEvent -> Bool) -> Eq GroupModEvent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GroupModEvent -> GroupModEvent -> Bool
$c/= :: GroupModEvent -> GroupModEvent -> Bool
== :: GroupModEvent -> GroupModEvent -> Bool
$c== :: GroupModEvent -> GroupModEvent -> Bool
Eq, Eq GroupModEvent
Eq GroupModEvent
-> (GroupModEvent -> GroupModEvent -> Ordering)
-> (GroupModEvent -> GroupModEvent -> Bool)
-> (GroupModEvent -> GroupModEvent -> Bool)
-> (GroupModEvent -> GroupModEvent -> Bool)
-> (GroupModEvent -> GroupModEvent -> Bool)
-> (GroupModEvent -> GroupModEvent -> GroupModEvent)
-> (GroupModEvent -> GroupModEvent -> GroupModEvent)
-> Ord GroupModEvent
GroupModEvent -> GroupModEvent -> Bool
GroupModEvent -> GroupModEvent -> Ordering
GroupModEvent -> GroupModEvent -> GroupModEvent
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: GroupModEvent -> GroupModEvent -> GroupModEvent
$cmin :: GroupModEvent -> GroupModEvent -> GroupModEvent
max :: GroupModEvent -> GroupModEvent -> GroupModEvent
$cmax :: GroupModEvent -> GroupModEvent -> GroupModEvent
>= :: GroupModEvent -> GroupModEvent -> Bool
$c>= :: GroupModEvent -> GroupModEvent -> Bool
> :: GroupModEvent -> GroupModEvent -> Bool
$c> :: GroupModEvent -> GroupModEvent -> Bool
<= :: GroupModEvent -> GroupModEvent -> Bool
$c<= :: GroupModEvent -> GroupModEvent -> Bool
< :: GroupModEvent -> GroupModEvent -> Bool
$c< :: GroupModEvent -> GroupModEvent -> Bool
compare :: GroupModEvent -> GroupModEvent -> Ordering
$ccompare :: GroupModEvent -> GroupModEvent -> Ordering
$cp1Ord :: Eq GroupModEvent
Ord, Int -> GroupModEvent
GroupModEvent -> Int
GroupModEvent -> [GroupModEvent]
GroupModEvent -> GroupModEvent
GroupModEvent -> GroupModEvent -> [GroupModEvent]
GroupModEvent -> GroupModEvent -> GroupModEvent -> [GroupModEvent]
(GroupModEvent -> GroupModEvent)
-> (GroupModEvent -> GroupModEvent)
-> (Int -> GroupModEvent)
-> (GroupModEvent -> Int)
-> (GroupModEvent -> [GroupModEvent])
-> (GroupModEvent -> GroupModEvent -> [GroupModEvent])
-> (GroupModEvent -> GroupModEvent -> [GroupModEvent])
-> (GroupModEvent
-> GroupModEvent -> GroupModEvent -> [GroupModEvent])
-> Enum GroupModEvent
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
enumFromThenTo :: GroupModEvent -> GroupModEvent -> GroupModEvent -> [GroupModEvent]
$cenumFromThenTo :: GroupModEvent -> GroupModEvent -> GroupModEvent -> [GroupModEvent]
enumFromTo :: GroupModEvent -> GroupModEvent -> [GroupModEvent]
$cenumFromTo :: GroupModEvent -> GroupModEvent -> [GroupModEvent]
enumFromThen :: GroupModEvent -> GroupModEvent -> [GroupModEvent]
$cenumFromThen :: GroupModEvent -> GroupModEvent -> [GroupModEvent]
enumFrom :: GroupModEvent -> [GroupModEvent]
$cenumFrom :: GroupModEvent -> [GroupModEvent]
fromEnum :: GroupModEvent -> Int
$cfromEnum :: GroupModEvent -> Int
toEnum :: Int -> GroupModEvent
$ctoEnum :: Int -> GroupModEvent
pred :: GroupModEvent -> GroupModEvent
$cpred :: GroupModEvent -> GroupModEvent
succ :: GroupModEvent -> GroupModEvent
$csucc :: GroupModEvent -> GroupModEvent
Enum, GroupModEvent
GroupModEvent -> GroupModEvent -> Bounded GroupModEvent
forall a. a -> a -> Bounded a
maxBound :: GroupModEvent
$cmaxBound :: GroupModEvent
minBound :: GroupModEvent
$cminBound :: GroupModEvent
Bounded, ReadPrec [GroupModEvent]
ReadPrec GroupModEvent
Int -> ReadS GroupModEvent
ReadS [GroupModEvent]
(Int -> ReadS GroupModEvent)
-> ReadS [GroupModEvent]
-> ReadPrec GroupModEvent
-> ReadPrec [GroupModEvent]
-> Read GroupModEvent
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GroupModEvent]
$creadListPrec :: ReadPrec [GroupModEvent]
readPrec :: ReadPrec GroupModEvent
$creadPrec :: ReadPrec GroupModEvent
readList :: ReadS [GroupModEvent]
$creadList :: ReadS [GroupModEvent]
readsPrec :: Int -> ReadS GroupModEvent
$creadsPrec :: Int -> ReadS GroupModEvent
Read, Int -> GroupModEvent -> ShowS
[GroupModEvent] -> ShowS
GroupModEvent -> String
(Int -> GroupModEvent -> ShowS)
-> (GroupModEvent -> String)
-> ([GroupModEvent] -> ShowS)
-> Show GroupModEvent
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GroupModEvent] -> ShowS
$cshowList :: [GroupModEvent] -> ShowS
show :: GroupModEvent -> String
$cshow :: GroupModEvent -> String
showsPrec :: Int -> GroupModEvent -> ShowS
$cshowsPrec :: Int -> GroupModEvent -> ShowS
Show, (forall x. GroupModEvent -> Rep GroupModEvent x)
-> (forall x. Rep GroupModEvent x -> GroupModEvent)
-> Generic GroupModEvent
forall x. Rep GroupModEvent x -> GroupModEvent
forall x. GroupModEvent -> Rep GroupModEvent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GroupModEvent x -> GroupModEvent
$cfrom :: forall x. GroupModEvent -> Rep GroupModEvent x
Generic)
instance MessagePack GroupModEvent
instance Arbitrary GroupModEvent where arbitrary :: Gen GroupModEvent
arbitrary = Gen GroupModEvent
forall a. (Bounded a, Enum a) => Gen a
arbitraryBoundedEnum
type GroupModerationCb = ToxPtr -> Word32 -> Word32 -> Word32 -> CEnum GroupModEvent -> Ptr () -> IO ()
foreign import ccall "wrapper" wrapGroupModerationCb :: GroupModerationCb -> IO (FunPtr GroupModerationCb)
foreign import ccall tox_callback_group_moderation :: ToxPtr -> FunPtr GroupModerationCb -> IO ()