Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Documentation
FetchUserForAuthCheck Env Text (Either AuthQueryError (Maybe WikiMusicUser) -> a) | |
FetchUserFromToken Env Text (Either AuthQueryError (Maybe WikiMusicUser) -> a) | |
FetchMe Env UUID (Either AuthQueryError (Maybe WikiMusicUser) -> a) | |
FetchUserRoles Env UUID (Either AuthQueryError [UserRole] -> a) |
fetchUserForAuthCheck :: AuthQuery :<: f => Env -> Text -> Free f (Either AuthQueryError (Maybe WikiMusicUser)) Source #
fetchMe :: AuthQuery :<: f => Env -> UUID -> Free f (Either AuthQueryError (Maybe WikiMusicUser)) Source #
fetchUserRoles :: AuthQuery :<: f => Env -> UUID -> Free f (Either AuthQueryError [UserRole]) Source #
fetchUserFromToken :: AuthQuery :<: f => Env -> Text -> Free f (Either AuthQueryError (Maybe WikiMusicUser)) Source #
data AuthQueryError Source #
Instances
Show AuthQueryError Source # | |
Defined in WikiMusic.Free.AuthQuery showsPrec :: Int -> AuthQueryError -> ShowS # show :: AuthQueryError -> String # showList :: [AuthQueryError] -> ShowS # | |
Eq AuthQueryError Source # | |
Defined in WikiMusic.Free.AuthQuery (==) :: AuthQueryError -> AuthQueryError -> Bool # (/=) :: AuthQueryError -> AuthQueryError -> Bool # |