Enforce the type of expectation
Useful with polymorphic expectations that are defined below.
Example
Because shouldBeExpr is polymorphic in m, compiler will choke with a unification
error. This is due to the fact that hspec's it expects a polymorphic Example.
it "MyTest" $ do
"foo" `shouldBeExpr` "bar"However, this is easily solved by io:
it "MyTest" $ io $ do
"foo" `shouldBeExpr` "bar"