@@ -34,7 +34,7 @@ unify hint region expected actual =
35 do expectedSrcType <- Type.toSrcType expected
35 do expectedSrcType <- Type.toSrcType expected
36 actualSrcType <- Type.toSrcType actual
36 actualSrcType <- Type.toSrcType actual
37− mergeHelp expected actual Error noRank
37+ mergeHelp expected actual (Error "?") noRank
38 let info = Error.MismatchInfo hint expectedSrcType actualSrcType maybeReason
38 let info = Error.MismatchInfo hint expectedSrcType actualSrcType maybeReason
39 return (Error.Mismatch info)
39 return (Error.Mismatch info)
@@ -204,7 +204,7 @@ actuallyUnify context@(Context _ _ firstDesc _ secondDesc) =
204 secondContent = _content secondDesc
204 secondContent = _content secondDesc
206 case firstContent of
206 case firstContent of
207− Error ->
207+ Error _ ->
208 -- If there was an error, just pretend it is okay. This lets us avoid
208 -- If there was an error, just pretend it is okay. This lets us avoid
209 -- "cascading" errors where one problem manifests as multiple message.
209 -- "cascading" errors where one problem manifests as multiple message.
210 return ()
210 return ()
@@ -235,7 +235,7 @@ actuallyUnify context@(Context _ _ firstDesc _ secondDesc) =
235unifyFlex :: Context -> Content -> Unify ()
235unifyFlex :: Context -> Content -> Unify ()
236unifyFlex context otherContent =
236unifyFlex context otherContent =
237 case otherContent of
237 case otherContent of
238− Error ->
238+ Error _ ->
239 return ()
239 return ()
241 Var Flex _ _ ->
241 Var Flex _ _ ->
@@ -261,7 +261,7 @@ unifyFlex context otherContent =
261unifyRigid :: Context -> Maybe Super -> Maybe Text -> Content -> Content -> Unify ()
261unifyRigid :: Context -> Maybe Super -> Maybe Text -> Content -> Content -> Unify ()
262unifyRigid context maybeSuper maybeName content otherContent =
262unifyRigid context maybeSuper maybeName content otherContent =
263 case otherContent of
263 case otherContent of
264− Error ->
264+ Error _ ->
265 return ()
265 return ()
267 Var Flex otherMaybeSuper _ ->
267 Var Flex otherMaybeSuper _ ->
@@ -352,7 +352,7 @@ unifyFlexSuper context super content otherContent =
352 Alias _ _ realVar ->
352 Alias _ _ realVar ->
353 subUnify context (_first context) realVar
353 subUnify context (_first context) realVar
355− Error ->
355+ Error _ ->
356 return ()
356 return ()
@@ -516,7 +516,7 @@ getContent variable =
516unifyAtom :: Context -> Var.Canonical -> Content -> Unify ()
516unifyAtom :: Context -> Var.Canonical -> Content -> Unify ()
517unifyAtom context name otherContent =
517unifyAtom context name otherContent =
518 case otherContent of
518 case otherContent of
519− Error ->
519+ Error _ ->
520 return ()
520 return ()
522 Var Flex Nothing _ ->
522 Var Flex Nothing _ ->
@@ -562,7 +562,7 @@ isIntFloat name otherName =
562unifyAlias :: Context -> Var.Canonical -> [(Text, Variable)] -> Variable -> Content -> Unify ()
562unifyAlias :: Context -> Var.Canonical -> [(Text, Variable)] -> Variable -> Content -> Unify ()
563unifyAlias context name args realVar otherContent =
563unifyAlias context name args realVar otherContent =
564 case otherContent of
564 case otherContent of
565− Error ->
565+ Error _ ->
566 return ()
566 return ()
568 Var Flex Nothing _ ->
568 Var Flex Nothing _ ->
@@ -593,7 +593,7 @@ unifyAlias context name args realVar otherContent =
593unifyStructure :: Context -> FlatType -> Content -> Content -> Unify ()
593unifyStructure :: Context -> FlatType -> Content -> Content -> Unify ()
594unifyStructure context term content otherContent =
594unifyStructure context term content otherContent =
595 case otherContent of
595 case otherContent of
596− Error ->
596+ Error _ ->
597 return ()
597 return ()
599 Var Flex Nothing _ ->
599 Var Flex Nothing _ ->