Copyright | (c) 2022 Edward Yang |
---|---|
License | MIT |
Safe Haskell | None |
Language | Haskell2010 |
This module is for internal-use and does not follow pvp versioning policies.
Synopsis
- newtype Captcha a = Captcha {
- runCaptcha :: CaptchaEnv -> IO a
- newtype CaptchaEnv = CaptchaEnv {}
- class HasCaptchaEnv c where
- captchaEnv :: Lens' c CaptchaEnv
- session :: Lens' c Session
- mkCaptchaEnv :: MonadIO m => m CaptchaEnv
Documentation
Effect providing an environment required to solve captchas.
Captcha | |
|
Instances
Monad Captcha Source # | |
Functor Captcha Source # | |
Applicative Captcha Source # | |
MonadIO Captcha Source # | |
Defined in Captcha.Internal.Monad | |
MonadUnliftIO Captcha Source # | |
Defined in Captcha.Internal.Monad | |
MonadReader CaptchaEnv Captcha Source # | |
Defined in Captcha.Internal.Monad ask :: Captcha CaptchaEnv # local :: (CaptchaEnv -> CaptchaEnv) -> Captcha a -> Captcha a # reader :: (CaptchaEnv -> a) -> Captcha a # |
newtype CaptchaEnv Source #
Provides an HTTP Session
to be reused for each request.
Instances
HasCaptchaEnv CaptchaEnv Source # | |
Defined in Captcha.Internal.Monad | |
MonadReader CaptchaEnv Captcha Source # | |
Defined in Captcha.Internal.Monad ask :: Captcha CaptchaEnv # local :: (CaptchaEnv -> CaptchaEnv) -> Captcha a -> Captcha a # reader :: (CaptchaEnv -> a) -> Captcha a # |
mkCaptchaEnv :: MonadIO m => m CaptchaEnv Source #
Create the environment required to solve captchas.