| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Test.TypeSpec.ShouldBe
Description
Type level assertions on type equality.
- data ShouldBe :: actual -> expected -> Type
- data ShouldNotBe :: actual -> expected -> Type
- data ShouldBeTrue :: expectation -> Type
- data ShouldBeFalse :: expectation -> Type
- data ButNot :: shouldBe -> shouldntBe -> Type
Documentation
data ShouldBe :: actual -> expected -> Type Source #
State that two types or type constructs are boiled down to the same type.
data ShouldNotBe :: actual -> expected -> Type Source #
State that two types or type constructs are NOT the same type.
Instances
| PrettyTypeSpec Type (ShouldNotBe expected actual a b) Source # | |
| type EvalExpectation Type (ShouldNotBe expected actual actual1 expected1) Source # | |
data ShouldBeTrue :: expectation -> Type Source #
State that a type is equal to the type level True.
Instances
| PrettyTypeSpec Type (ShouldBeTrue expectation a) Source # | |
| type EvalExpectation Type (ShouldBeTrue t t1) Source # | |
data ShouldBeFalse :: expectation -> Type Source #
State that a type is equal to the type level False.
Instances
| PrettyTypeSpec Type (ShouldBeFalse expectation a) Source # | |
| type EvalExpectation Type (ShouldBeFalse t t1) Source # | |