Skip to content

Commit

Permalink
compiler: seem to have fixed #22
Browse files Browse the repository at this point in the history
need @liamoc to review
  • Loading branch information
Zilin Chen authored and Zilin Chen committed Mar 6, 2018
1 parent 5dd3bc1 commit 01a2f45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cogent/src/Cogent/TypeCheck/Solver.hs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ rule (T (TTuple xs) :< T (TTuple ys))
| length xs /= length ys = return $ Just $ Unsat (TypeMismatch (T (TTuple xs)) (T (TTuple ys)))
| otherwise = return $ Just $ mconcat (zipWith (:<) xs ys)
rule ct@(T (TFun a b) :< T (TFun c d)) = do
let ct' = (c :< a) :& (b :< d)
let ct' = (a :< c) :& (d :< b)
traceTC "sol" (text "constraint" <+> pretty ct <+> text "is decomposed into"
P.<$> pretty ct')
return $ Just ct'
Expand Down

0 comments on commit 01a2f45

Please sign in to comment.