HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulesandwich-0.3.1.0Haskell2010

Test.Sandwich.Nodes

This module exports the special "primed" versions of the test tree nodes. These primed versions accept an additional options argument, which allows you to do things like control the visibility thresholds of the nodes.

  • 1 type
  • 15 values
  • Packagesandwich-0.3.1.0
  • Exports16
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceNodes.hs

Basic nodes

3 declarations

Node options

5 declarations
datadata NodeOptions
#

Options for an individual test node.

Instances1Show

Whether to create a folder in the on-disk test results for this node. Defaults to True, but can be turned off to reduce extraneous folders from nodes like Parallel.

Context manager nodes

8 declarations
valueintroduceWith'
  1. :: HasCallStack
  2. => NodeOptions

    Custom options for this node

  3. -> String

    String label for this node

  4. -> Label l intro

    Label under which to introduce the value

  5. -> ((HasCallStack => intro -> ExampleT context m [Result]) -> ExampleT context m ())

    Callback to receive the new value and the child tree.

  6. -> SpecFree (LabelValue l intro :> context) m ()

    Child spec tree

  7. -> SpecFree context m ()
#

Introduce a new value in an around fashion, so it can be used with context managers like withFile or bracket.