ref: 0e0fb3a05f851c0485a4ddd5ba7cdc6ddb9e87f9
parent: dfda74cbaf3d2f129cc4d7da87435464f00a29fe
parent: fec277805cf47d2027ee7dd08104cc179d8b2b00
author: Lennart Augustsson <lennart@augustsson.net>
date: Sun Dec 8 06:49:05 EST 2024
Merge branch 'master' into patsyn3
--- a/src/MicroHs/TypeCheck.hs
+++ b/src/MicroHs/TypeCheck.hs
@@ -1490,7 +1490,7 @@
-- When inferring the type, the resulting type will
-- be assigned to the TRef (using tSetRefType),
-- and can then be read of (using tGetRefType).
--- When checking, the expected type is simple given.
+-- When checking, the expected type is simply given.
data Expected = Infer TRef | Check EType
-- deriving(Show)
@@ -1528,7 +1528,7 @@
tGetRefType ref = do
m <- gets uvarSubst
case IM.lookup ref m of
- Nothing -> return (EUVar ref) -- error "tGetRefType"
+ Nothing -> return (EUVar ref)
Just t -> return t
-- Set the type for an Infer