You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
prettyPrintErrorMessage (CycleInDeclaration nm) ="Cycle in declaration of "++show nm
112
+
prettyPrintErrorMessage (NotYetDefined names err) ="The following are not yet defined here: "++unwords (mapshow names) ++"\n"++ prettyPrintErrorMessage err
113
+
prettyPrintErrorMessage (CycleInTypeSynonym pn) ="Cycle in type synonym"++foldMap ((""++) .show) pn
114
+
prettyPrintErrorMessage (NameIsUndefined ident) =show ident ++" is undefined"
115
+
prettyPrintErrorMessage (NameNotInScope ident) =show ident ++" may not be defined in the current scope"
116
+
prettyPrintErrorMessage (UndefinedTypeVariable name) ="Type variable "++show name ++" is undefined"
117
+
prettyPrintErrorMessage (PartiallyAppliedSynonym name) ="Partially applied type synonym "++show name
118
+
prettyPrintErrorMessage (EscapedSkolem binding) ="Rigid/skolem type variable "++foldMap (("bound by "++) . prettyPrintValue) binding ++" has escaped."
cycleError (PositionedDeclaration p _ d) ds = rethrowWithPosition p $ cycleError d ds
184
-
cycleError (ValueDeclaration n _ _ (Right e)) []= throwError $
185
-
mkMultipleErrors ("Cycle in definition of "++show n) (Just (ExprError e))
186
-
cycleError d ds@(_:_) = rethrow (mkCompileError ("The following are not yet defined here: "++unwords (map (show. getIdent) ds)) Nothing`combineErrors`) $ cycleError d []
184
+
cycleError (ValueDeclaration n _ _ (Right _)) []= throwError . errorMessage $CycleInDeclaration n
185
+
cycleError d ds@(_:_) = rethrow (onErrorMessages (NotYetDefined (map getIdent ds))) $ cycleError d []
0 commit comments