comments and better type errors

This commit is contained in:
crumbtoo
2023-12-18 15:37:32 -07:00
parent f7e850c61a
commit 0470912983
3 changed files with 66 additions and 17 deletions
+1 -1
View File
@@ -15,5 +15,5 @@ spec :: Spec
spec = do
it "should infer `id 3` :: Int" $
let g = [ ("id", TyVar "a" :-> TyVar "a") ]
in infer g [coreExpr|id 3|] `shouldBe` Just TyInt
in infer g [coreExpr|id 3|] `shouldBe` Right TyInt