Skip to content

Change type of expectationFailure to IO a #190

@sol

Description

@sol

That makes expectationFailure more general, but it hurts type inference, e.g. the following will need a type annotation:

it "foobar" $ do
  expectationFailure "foobar" :: Expectation

However, expectationFailure is not very useful in cases where you only have one code branch. When you have two code branches, the other branch will unify a to (). So I don't see a big issue here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions