| Stability | experimental |
|---|---|
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Test.Hspec.Core.Format
Description
Synopsis
- type Format = Event -> IO ()
- data FormatConfig = FormatConfig {}
- data Event
- type Progress = (Int, Int)
- type Path = ([String], String)
- data Location = Location {}
- newtype Seconds = Seconds Double
- data Item = Item {}
- data Result
- data FailureReason
- monadic :: MonadIO m => (m () -> IO ()) -> (Event -> m ()) -> IO Format
Documentation
data FormatConfig Source #
Constructors
| FormatConfig | |
Instances
| Show FormatConfig Source # | |
Defined in Test.Hspec.Core.Format | |
| Eq FormatConfig Source # | |
Defined in Test.Hspec.Core.Format Methods (==) :: FormatConfig -> FormatConfig -> Bool Source # (/=) :: FormatConfig -> FormatConfig -> Bool Source # | |
type Path = ([String], String) Source #
A Path describes the location of a spec item within a spec tree.
It consists of a list of group descriptions and a requirement description.
Location is used to represent source locations.
Constructors
| Location | |
Fields
| |
Instances
| Num Seconds Source # | |
Defined in Test.Hspec.Core.Clock | |
| Fractional Seconds Source # | |
| Show Seconds Source # | |
| PrintfArg Seconds Source # | |
Defined in Test.Hspec.Core.Clock Methods formatArg :: Seconds -> FieldFormatter Source # parseFormat :: Seconds -> ModifierParser Source # | |
| Eq Seconds Source # | |
| Ord Seconds Source # | |
Defined in Test.Hspec.Core.Clock | |
Constructors
| Item | |
Fields
| |
data FailureReason Source #
Constructors
| NoReason | |
| Reason String | |
| ExpectedButGot (Maybe String) String String | |
| Error (Maybe String) SomeException |
Instances
| Show FailureReason Source # | |
Defined in Test.Hspec.Core.Example | |
| NFData FailureReason Source # | |
Defined in Test.Hspec.Core.Example Methods rnf :: FailureReason -> () Source # | |