type-spec-0.4.0.0: Type Level Specification by Example

Safe HaskellNone
LanguageHaskell2010

Test.TypeSpec.Label

Description

Labels for expectations.

Synopsis

Documentation

data It :: Symbol -> expectation -> Type Source #

Add a type level string as label or longer descripton around expectations. This is analog to the it function in the hspec package.

Instances
(KnownSymbol msg, PrettyTypeSpec x) => PrettyTypeSpec (It msg x :: Type) Source # 
Instance details

Defined in Test.TypeSpec.Label

Methods

prettyTypeSpec :: proxy (It msg x) -> Doc Source #

type EvalExpectation (It message expectation2 :: Type) Source # 
Instance details

Defined in Test.TypeSpec.Label

type EvalExpectation (It message expectation2 :: Type) = PrependToError (Text message :$$: Text " ") (EvalExpectation expectation2) >> OK (It message expectation2)