From e5d8b5182784a5e59f09c5e513bc35cbeef7ec43 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 20 May 2008 22:08:15 +0000 Subject: [PATCH] Added a missing line to substitute back inferred types for anonymous non-numeric types --- frontends/RainTypes.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/frontends/RainTypes.hs b/frontends/RainTypes.hs index 75d6d74..ef393d6 100644 --- a/frontends/RainTypes.hs +++ b/frontends/RainTypes.hs @@ -127,6 +127,7 @@ substituteUnknownTypes mt = applyDepthM sub where sub :: A.Type -> PassM A.Type sub (A.UnknownVarType (Left n)) = lookup $ UnifyIndex (A.nameMeta n, Right n) + sub (A.UnknownVarType (Right (m,i))) = lookup $ UnifyIndex (m,Left i) sub (A.UnknownNumLitType m i _) = lookup $ UnifyIndex (m, Left i) sub t = return t