comments and better type errors

This commit is contained in:
crumbtoo committed 2023-12-18 15:37:32 -07:00
1 parent f7e850c61a
commit 0470912983
3 files changed
+66 -17

No files matched your search

+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