HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulewebdriver-0.12.0.1Haskell2010

Test.WebDriver.JSON

A collection of convenience functions for using and parsing JSON values within WD. All monadic parse errors are converted to asynchronous BadJSON exceptions.

These functions are used internally to implement webdriver commands, and may be useful for implementing non-standard commands.

  • 2 types
  • 14 values

Access a JSON object key

2 declarations

Conversion from JSON within WD

2 declarations

Apostrophes are used to disambiguate these functions from their Data.Aeson counterparts.

Tuple functions

0 declarations

Convenience functions for working with tuples.

JSON object constructors

Extracting JSON objects into tuples

Conversion from parser results to WD

2 declarations

These functions are used to implement the other functions in this module, and could be used to implement other JSON convenience functions

Parse exception

1 declaration
newtypenewtype BadJSON
#

An error occured when parsing a JSON value.

Constructors

Instances3Eq, Show, Exception
  • Eq BadJSONDefined in webdriver-0.12.0.1 · Test.WebDriver.JSON
  • Show BadJSONDefined in webdriver-0.12.0.1 · Test.WebDriver.JSON
  • Exception BadJSONDefined in webdriver-0.12.0.1 · Test.WebDriver.JSON

parsing commands with no return value

4 declarations
datadata NoReturn
#

A type indicating that we expect no return value from the webdriver request. Its FromJSON instance parses successfully for any values that indicate lack of a return value (a notion that varies from server to server).

Instances1FromJSON
valuenoReturn :: WebDriver wd => wd NoReturn -> wd ()
#

Convenience function to handle webdriver commands with no return value.