Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
Documentation
data AccountsClientError Source #
Errors that indicate invalid client-supplied information.
NoAccountId | No account was found for the given ID. |
InvalidAuth | Credentials did not match stored auth data. |
NoAccountName | No account was found for the given name. |
Conflict | Name given for registration already exists in storage. |
Instances
FromJSON AccountsClientError Source # | |
Defined in Polysemy.Account.Data.AccountsError parseJSON :: Value -> Parser AccountsClientError # parseJSONList :: Value -> Parser [AccountsClientError] # | |
ToJSON AccountsClientError Source # | |
Defined in Polysemy.Account.Data.AccountsError toJSON :: AccountsClientError -> Value # toEncoding :: AccountsClientError -> Encoding # toJSONList :: [AccountsClientError] -> Value # toEncodingList :: [AccountsClientError] -> Encoding # | |
Show AccountsClientError Source # | |
Defined in Polysemy.Account.Data.AccountsError showsPrec :: Int -> AccountsClientError -> ShowS # show :: AccountsClientError -> String # showList :: [AccountsClientError] -> ShowS # | |
Eq AccountsClientError Source # | |
Defined in Polysemy.Account.Data.AccountsError (==) :: AccountsClientError -> AccountsClientError -> Bool # (/=) :: AccountsClientError -> AccountsClientError -> Bool # |
data AccountsError Source #
Errors produced by the effect Accounts
.
Client AccountsClientError | Errors that indicate invalid client-supplied information. |
Internal Text | Error indicating storage backend failure. |
Instances
Show AccountsError Source # | |
Defined in Polysemy.Account.Data.AccountsError showsPrec :: Int -> AccountsError -> ShowS # show :: AccountsError -> String # showList :: [AccountsError] -> ShowS # | |
Eq AccountsError Source # | |
Defined in Polysemy.Account.Data.AccountsError (==) :: AccountsError -> AccountsError -> Bool # (/=) :: AccountsError -> AccountsError -> Bool # |