Skip to content

Commit

Permalink
Fix #1192 where mismatched type alias produce bad errors
Browse files Browse the repository at this point in the history
  • Loading branch information
process-bot committed Apr 27, 2016
1 parent 04c5e28 commit 8d41d95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Type/Unify.hs
Original file line number Diff line number Diff line change
Expand Up @@ -519,8 +519,8 @@ unifyAlias context name args realVar otherContent =

Alias otherName otherArgs otherRealVar ->
if name == otherName then
do merge context otherContent
zipWithM_ (subUnify context) (map snd args) (map snd otherArgs)
do zipWithM_ (subUnify context) (map snd args) (map snd otherArgs)
merge context otherContent

else
subUnify context realVar otherRealVar
Expand Down

0 comments on commit 8d41d95

Please sign in to comment.