Skip to content

Commit 7db7147

Browse files
committed
Change return type of expectationFailure from Expectation to IO a
1 parent dfb5e34 commit 7db7147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Test/Hspec/Expectations.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ type HasCallStack = (() :: Constraint)
7575

7676
type Expectation = Test.HUnit.Assertion
7777

78-
expectationFailure :: HasCallStack => String -> Expectation
78+
expectationFailure :: HasCallStack => String -> IO a
7979
expectationFailure = Test.HUnit.assertFailure
8080

8181
expectTrue :: HasCallStack => String -> Bool -> Expectation

0 commit comments

Comments
 (0)