Copyright | (C) 2017 Jacob Stanley |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Stevan Andjelkovic <stevan@advancedtelematic.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
This module contains reference related types. It's taken almost verbatim from the Hedgehog library.
Documentation
newtype Reference v a Source #
References are the potential or actual result of executing an action. They
are parameterised by either Symbolic
or Concrete
depending on the
phase of the test.
Symbolic
variables are the potential results of actions. These are used
when generating the sequence of actions to execute. They allow actions
which occur later in the sequence to make use of the result of an action
which came earlier in the sequence.
Concrete
variables are the actual results of actions. These are used
during test execution. They provide access to the actual runtime value of
a variable.
Reference (v a) |
opaque :: Reference Concrete (Opaque a) -> a Source #
Take the value from an opaque concrete variable.
Opaque values.
Useful if you want to put something without a Show
instance inside
something which you'd like to be able to display.