removed trace
This commit is contained in:
parent
41fc863658
commit
867485be12
1 changed files with 0 additions and 2 deletions
|
|
@ -84,7 +84,6 @@ checkPrg (Program bs) = do
|
||||||
preRun bs
|
preRun bs
|
||||||
-- Type check the program twice to produce all top-level types in the first pass through
|
-- Type check the program twice to produce all top-level types in the first pass through
|
||||||
bs' <- checkDef bs
|
bs' <- checkDef bs
|
||||||
trace ("FIRST ITERATION: " <> printTree bs') pure ()
|
|
||||||
bs'' <- checkDef bs
|
bs'' <- checkDef bs
|
||||||
return $ T.Program bs''
|
return $ T.Program bs''
|
||||||
where
|
where
|
||||||
|
|
@ -330,7 +329,6 @@ makeLambda = foldl (flip (EAbs . coerce))
|
||||||
|
|
||||||
-- | Unify two types producing a new substitution
|
-- | Unify two types producing a new substitution
|
||||||
unify :: T.Type -> T.Type -> Infer Subst
|
unify :: T.Type -> T.Type -> Infer Subst
|
||||||
unify t0 t1 | trace ("T0: " <> show t0 <> "\nT1: " <> show t1) False = undefined
|
|
||||||
unify t0 t1 = do
|
unify t0 t1 = do
|
||||||
case (t0, t1) of
|
case (t0, t1) of
|
||||||
(T.TFun a b, T.TFun c d) -> do
|
(T.TFun a b, T.TFun c d) -> do
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue