Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
newtype Auth (auths :: [Type]) a Source #
Auth a |
Instances
IsRequest (Auth auths a) Source # | |
Defined in Web.Minion.Auth type RequestValue (Auth auths a) Source # getRequestValue :: Auth auths a -> RequestValue (Auth auths a) Source # | |
type RequestValue (Auth auths a) Source # | |
Defined in Web.Minion.Auth |
data AuthResult a Source #
Instances
Functor AuthResult Source # | |
Defined in Web.Minion.Auth fmap :: (a -> b) -> AuthResult a -> AuthResult b # (<$) :: a -> AuthResult b -> AuthResult a # |
class UnwindAuth (ctx :: [Type]) (auths :: [Type]) m a where Source #
unwindAuth :: [HList ctx -> ErrorBuilder -> Request -> m (AuthResult a)] Source #
Instances
UnwindAuth ctx ('[] :: [Type]) m a Source # | |
Defined in Web.Minion.Auth unwindAuth :: [HList ctx -> ErrorBuilder -> Request -> m (AuthResult a)] Source # | |
(IsAuth auth m a, UnwindAuth ctx auths m a, GetByType (Settings auth m a) ctx) => UnwindAuth ctx (auth ': auths) m a Source # | |
Defined in Web.Minion.Auth unwindAuth :: [HList ctx -> ErrorBuilder -> Request -> m (AuthResult a)] Source # |
class IsAuth (auth :: Type) m a where Source #
toAuth :: Settings auth m a -> ErrorBuilder -> Request -> m (AuthResult a) Source #
:: forall auths a m ctx ts i. Introspection i Request (Auth auths a) | |
=> UnwindAuth ctx auths m a | |
=> MonadThrow m | |
=> m (HList ctx) | Context with auths settings |
-> (MakeError -> AuthResult Void -> m Void) | Handle non-Authenticated. |
-> ValueCombinator i (WithReq m (Auth auths a)) ts m |