Stability | experimental |
---|---|
Safe Haskell | None |
This module provides access to Hspec's internals. It is less stable than other parts of the API. For most users Test.Hspec is more suitable!
- class Example e where
- type Arg e
- evaluateExample :: e -> Params -> (ActionWith (Arg e) -> IO ()) -> ProgressCallback -> IO Result
- data Params = Params {}
- type Progress = (Int, Int)
- type ProgressCallback = Progress -> IO ()
- data Result
- data SpecM a r
- runSpecM :: SpecWith a -> [SpecTree a]
- fromSpecList :: [SpecTree a] -> SpecWith a
- data SpecTree a
- data Item a = Item {
- itemIsParallelizable :: Bool
- itemExample :: Params -> (ActionWith a -> IO ()) -> ProgressCallback -> IO Result
- type ActionWith a = a -> IO ()
- mapSpecItem :: (Item a -> Item b) -> SpecWith a -> SpecWith b
- modifyParams :: (Params -> Params) -> SpecWith a -> SpecWith a
- describe :: String -> [SpecTree a] -> SpecTree a
- it :: Example e => String -> e -> SpecTree (Arg e)
A type class for examples
A type class for examples.
evaluateExample :: e -> Params -> (ActionWith (Arg e) -> IO ()) -> ProgressCallback -> IO ResultSource
type ProgressCallback = Progress -> IO ()Source
The result of running an example.
A writer monad for constructing specs
A writer monad for SpecTree
forests.
Internal representation of a spec tree
Internal representation of a spec.
Item | |
|
type ActionWith a = a -> IO ()Source
An IO
action that expects an argument of type a.