@@ -141,8 +141,6 @@ data SimpleErrorMessage
141141 | UnusedDctorImport (ProperName 'TypeName)
142142 | UnusedDctorExplicitImport (ProperName 'TypeName) [ProperName 'ConstructorName]
143143 | DeprecatedOperatorDecl String
144− | DeprecatedClassImport ModuleName (ProperName 'ClassName)
145− | DeprecatedClassExport (ProperName 'ClassName)
146144 | DuplicateSelectiveImport ModuleName
147145 | DuplicateImport ModuleName ImportDeclarationType (Maybe ModuleName)
148146 | DuplicateImportRef String
@@ -328,8 +326,6 @@ errorCode em = case unwrapErrorMessage em of
328326 UnusedDctorImport{} -> "UnusedDctorImport"
329327 UnusedDctorExplicitImport{} -> "UnusedDctorExplicitImport"
330328 DeprecatedOperatorDecl{} -> "DeprecatedOperatorDecl"
331− DeprecatedClassImport{} -> "DeprecatedClassImport"
332− DeprecatedClassExport{} -> "DeprecatedClassExport"
333329 DuplicateSelectiveImport{} -> "DuplicateSelectiveImport"
334330 DuplicateImport{} -> "DuplicateImport"
335331 DuplicateImportRef{} -> "DuplicateImportRef"
@@ -453,7 +449,6 @@ wikiUri e = "https://github.com/purescript/purescript/wiki/Error-Code-" ++ error
453449-- TODO Other possible suggestions:
454450-- WildcardInferredType - source span not small enough
455451-- DuplicateSelectiveImport - would require 2 ranges to remove and 1 insert
456−-- DeprecatedClassExport, DeprecatedClassImport, would want to replace smaller span?
457452errorSuggestion :: SimpleErrorMessage -> Maybe ErrorSuggestion
458453errorSuggestion err = case err of
459454 UnusedImport{} -> emptySuggestion
@@ -934,22 +929,6 @@ prettyPrintSingleError full level showWiki e = flip evalState defaultUnknownMap
934929 , line "Support for value-declared operators will be removed in PureScript 0.9."
935930 ]
936931
937− renderSimpleErrorMessage (DeprecatedClassImport mn name) =
938− paras [ line $ "Class import from " ++ runModuleName mn ++ " uses deprecated syntax that omits the 'class' keyword:"
939− , indent $ line $ runProperName name
940− , line "Should instead use the form:"
941− , indent $ line $ "class " ++ runProperName name
942− , line "The deprecated syntax will be removed in PureScript 0.9."
943− ]
944−
945− renderSimpleErrorMessage (DeprecatedClassExport name) =
946− paras [ line "Class export uses deprecated syntax that omits the 'class' keyword:"
947− , indent $ line $ runProperName name
948− , line "Should instead use the form:"
949− , indent $ line $ "class " ++ runProperName name
950− , line "The deprecated syntax will be removed in PureScript 0.9."
951− ]
952−
953932 renderSimpleErrorMessage (DuplicateSelectiveImport name) =
954933 line $ "There is an existing import of " ++ runModuleName name ++ ", consider merging the import lists"
955934
@@ -1208,7 +1187,6 @@ prettyPrintRef (TypeRef pn (Just dctors)) = runProperName pn ++ "(" ++ intercala
12081187prettyPrintRef (TypeOpRef ident) = "type " ++ showIdent ident
12091188prettyPrintRef (ValueRef ident) = showIdent ident
12101189prettyPrintRef (TypeClassRef pn) = "class " ++ runProperName pn
1211−prettyPrintRef (ProperRef name) = name
12121190prettyPrintRef (TypeInstanceRef ident) = showIdent ident
12131191prettyPrintRef (ModuleRef name) = "module " ++ runModuleName name
12141192prettyPrintRef (PositionedDeclarationRef _ _ ref) = prettyPrintExport ref