From 1ac7ba99fc809958ab59ed9b81df6fda7f2dbf05 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 27 Jul 2020 08:35:57 +0200 Subject: Correct type variable rigidity (I think) --- typecheck/CC/Typecheck/Types.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'typecheck/CC/Typecheck') diff --git a/typecheck/CC/Typecheck/Types.hs b/typecheck/CC/Typecheck/Types.hs index 3f3c471..3009ca1 100644 --- a/typecheck/CC/Typecheck/Types.hs +++ b/typecheck/CC/Typecheck/Types.hs @@ -99,5 +99,4 @@ convertType' aliases extraVars sr origtype = do convert mp (S.TTup ts) = T.TTup (map (convert mp) ts) convert mp (S.TNamed n ts) = T.TNamed n (map (convert mp) ts) convert mp (S.TUnion ts) = T.TUnion (Set.map (convert mp) ts) - -- TODO: Should this be Rigid? I really don't know how this works. - convert mp (S.TyVar n) = T.TyVar T.Rigid (mp Map.! n) + convert mp (S.TyVar n) = T.TyVar T.Instantiable (mp Map.! n) -- cgit v1.2.3-70-g09d2