Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data UserStatus
- = UserStatusEmpty
- | UserStatusOnline { }
- | UserStatusOffline {
- was_online :: Maybe Int
- | UserStatusRecently { }
- | UserStatusLastWeek { }
- | UserStatusLastMonth { }
Documentation
data UserStatus Source #
Describes the last time the user was online
UserStatusEmpty | The user's status has never been changed |
UserStatusOnline | The user is online |
UserStatusOffline | The user is offline |
| |
UserStatusRecently | The user was online recently |
| |
UserStatusLastWeek | The user is offline, but was online last week |
| |
UserStatusLastMonth | The user is offline, but was online last month |
|
Instances
FromJSON UserStatus Source # | |
Defined in TD.Data.UserStatus parseJSON :: Value -> Parser UserStatus # parseJSONList :: Value -> Parser [UserStatus] # | |
Show UserStatus Source # | |
Defined in TD.Data.UserStatus showsPrec :: Int -> UserStatus -> ShowS # show :: UserStatus -> String # showList :: [UserStatus] -> ShowS # | |
Eq UserStatus Source # | |
Defined in TD.Data.UserStatus (==) :: UserStatus -> UserStatus -> Bool # (/=) :: UserStatus -> UserStatus -> Bool # | |
ShortShow UserStatus Source # | |
Defined in TD.Data.UserStatus shortShow :: UserStatus -> String Source # |