Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.WebDriver.WD
Contents
Description
This module contains the WD
monad, which serves as an example of how to use
this library in a standalone fashion.
For more complex usage, you'll probably want to skip this module and write
WebDriverBase
and SessionState
instances for your own monads.
You can find a full example in the project repo at https://github.com/haskell-webdriver/haskell-webdriver/blob/main/app/Main.hs.
Documentation
Instances
MonadIO WD Source # | |
Defined in Test.WebDriver.WD | |
Applicative WD Source # | |
Functor WD Source # | |
Monad WD Source # | |
MonadCatch WD Source # | |
Defined in Test.WebDriver.WD | |
MonadMask WD Source # | |
Defined in Test.WebDriver.WD Methods mask :: HasCallStack => ((forall a. WD a -> WD a) -> WD b) -> WD b # uninterruptibleMask :: HasCallStack => ((forall a. WD a -> WD a) -> WD b) -> WD b # generalBracket :: HasCallStack => WD a -> (a -> ExitCase b -> WD c) -> (a -> WD b) -> WD (b, c) # | |
MonadThrow WD Source # | |
Defined in Test.WebDriver.WD Methods throwM :: (HasCallStack, Exception e) => e -> WD a # | |
MonadLogger WD Source # | |
Defined in Test.WebDriver.WD | |
MonadUnliftIO WD Source # | |
Defined in Test.WebDriver.WD | |
SessionState WD Source # | |
Defined in Test.WebDriver.WD Methods getSession :: WD Session Source # | |
WebDriverBase WD Source # | |
Defined in Test.WebDriver.WD Methods doCommandBase :: (HasCallStack, ToJSON a) => Driver -> Method -> Text -> a -> WD (Response ByteString) Source # | |
MonadReader Session WD Source # | |
Orphan instances
WebDriverBase (LoggingT IO) Source # | |
Methods doCommandBase :: (HasCallStack, ToJSON a) => Driver -> Method -> Text -> a -> LoggingT IO (Response ByteString) Source # |