captcha-core-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Captcha.Internal.Monad

Synopsis

Documentation

newtype Captcha a Source #

Effect providing an environment required to solve captchas.

Constructors

Captcha 

Fields

Instances

Instances details
Monad Captcha Source # 
Instance details

Defined in Captcha.Internal.Monad

Methods

(>>=) :: Captcha a -> (a -> Captcha b) -> Captcha b #

(>>) :: Captcha a -> Captcha b -> Captcha b #

return :: a -> Captcha a #

Functor Captcha Source # 
Instance details

Defined in Captcha.Internal.Monad

Methods

fmap :: (a -> b) -> Captcha a -> Captcha b #

(<$) :: a -> Captcha b -> Captcha a #

Applicative Captcha Source # 
Instance details

Defined in Captcha.Internal.Monad

Methods

pure :: a -> Captcha a #

(<*>) :: Captcha (a -> b) -> Captcha a -> Captcha b #

liftA2 :: (a -> b -> c) -> Captcha a -> Captcha b -> Captcha c #

(*>) :: Captcha a -> Captcha b -> Captcha b #

(<*) :: Captcha a -> Captcha b -> Captcha a #

MonadIO Captcha Source # 
Instance details

Defined in Captcha.Internal.Monad

Methods

liftIO :: IO a -> Captcha a #

MonadUnliftIO Captcha Source # 
Instance details

Defined in Captcha.Internal.Monad

Methods

withRunInIO :: ((forall a. Captcha a -> IO a) -> IO b) -> Captcha b #

MonadReader CaptchaEnv Captcha Source # 
Instance details

Defined in Captcha.Internal.Monad

newtype CaptchaEnv Source #

Provides an HTTP Session to be reused for each request.

Constructors

CaptchaEnv 

Fields

class HasCaptchaEnv c where Source #

Minimal complete definition

captchaEnv

mkCaptchaEnv :: MonadIO m => m CaptchaEnv Source #

Create the environment required to solve captchas.