git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Reduce duplicate errors
commit5061808f3d934d81106879dfb3ce69db6bb2e676 authorPhil Freeman <paf31@cantab.net> dateMon 2 Feb 2015, 19:39 (12 years ago) parent783802d
1 file changed+1−1
src/Language/PureScript/TypeChecker/Types.hs+1−1
src/Language/PureScript/TypeChecker/Types.hs+1−1
@@ -565,7 +565,7 @@ check' val kt@(KindedType ty kind) = do
565565 val' <- check' val ty
566566 return $ TypedValue True val' kt
567567check' (PositionedValue pos _ val) ty =
568− rethrowWithPosition pos $ check val ty
568+ rethrowWithPosition pos $ check' val ty
569569check' val ty = throwError $ mkErrorStack ("Expr does not have type " ++ prettyPrintType ty) (Just (ExprError val))
570570
571571containsTypeSynonyms :: Type -> Bool