@@ -34,7 +34,7 @@ unify hint region expected actual =
3434 mkError =
3535 do expectedSrcType <- Type.toSrcType expected
3636 actualSrcType <- Type.toSrcType actual
37− mergeHelp expected actual Error noRank
37+ mergeHelp expected actual (Error "?") noRank
3838 let info = Error.MismatchInfo hint expectedSrcType actualSrcType maybeReason
3939 return (Error.Mismatch info)
4040 in
@@ -204,7 +204,7 @@ actuallyUnify context@(Context _ _ firstDesc _ secondDesc) =
204204 secondContent = _content secondDesc
205205 in
206206 case firstContent of
207− Error ->
207+ Error _ ->
208208 -- If there was an error, just pretend it is okay. This lets us avoid
209209 -- "cascading" errors where one problem manifests as multiple message.
210210 return ()
@@ -235,7 +235,7 @@ actuallyUnify context@(Context _ _ firstDesc _ secondDesc) =
235235unifyFlex :: Context -> Content -> Unify ()
236236unifyFlex context otherContent =
237237 case otherContent of
238− Error ->
238+ Error _ ->
239239 return ()
240240
241241 Var Flex _ _ ->
@@ -261,7 +261,7 @@ unifyFlex context otherContent =
261261unifyRigid :: Context -> Maybe Super -> Maybe Text -> Content -> Content -> Unify ()
262262unifyRigid context maybeSuper maybeName content otherContent =
263263 case otherContent of
264− Error ->
264+ Error _ ->
265265 return ()
266266
267267 Var Flex otherMaybeSuper _ ->
@@ -352,7 +352,7 @@ unifyFlexSuper context super content otherContent =
352352 Alias _ _ realVar ->
353353 subUnify context (_first context) realVar
354354
355− Error ->
355+ Error _ ->
356356 return ()
357357
358358
@@ -516,7 +516,7 @@ getContent variable =
516516unifyAtom :: Context -> Var.Canonical -> Content -> Unify ()
517517unifyAtom context name otherContent =
518518 case otherContent of
519− Error ->
519+ Error _ ->
520520 return ()
521521
522522 Var Flex Nothing _ ->
@@ -562,7 +562,7 @@ isIntFloat name otherName =
562562unifyAlias :: Context -> Var.Canonical -> [(Text, Variable)] -> Variable -> Content -> Unify ()
563563unifyAlias context name args realVar otherContent =
564564 case otherContent of
565− Error ->
565+ Error _ ->
566566 return ()
567567
568568 Var Flex Nothing _ ->
@@ -593,7 +593,7 @@ unifyAlias context name args realVar otherContent =
593593unifyStructure :: Context -> FlatType -> Content -> Content -> Unify ()
594594unifyStructure context term content otherContent =
595595 case otherContent of
596− Error ->
596+ Error _ ->
597597 return ()
598598
599599 Var Flex Nothing _ ->