@@ -147,6 +147,7 @@ data SimpleErrorMessage
147 | DuplicateSelectiveImport ModuleName
147 | DuplicateSelectiveImport ModuleName
148 | DuplicateImport ModuleName ImportDeclarationType (Maybe ModuleName)
148 | DuplicateImport ModuleName ImportDeclarationType (Maybe ModuleName)
149 | IntOutOfRange Integer String Integer Integer
149 | IntOutOfRange Integer String Integer Integer
150+ | RedundantEmptyHidingImport ModuleName
150 deriving (Show)
151 deriving (Show)
152-- | Error message hints, providing more detailed information about failure.
153-- | Error message hints, providing more detailed information about failure.
@@ -286,6 +287,7 @@ errorCode em = case unwrapErrorMessage em of
286 DuplicateSelectiveImport{} -> "DuplicateSelectiveImport"
287 DuplicateSelectiveImport{} -> "DuplicateSelectiveImport"
287 DuplicateImport{} -> "DuplicateImport"
288 DuplicateImport{} -> "DuplicateImport"
288 IntOutOfRange{} -> "IntOutOfRange"
289 IntOutOfRange{} -> "IntOutOfRange"
290+ RedundantEmptyHidingImport{} -> "RedundantEmptyHidingImport"
@@ -794,6 +796,9 @@ prettyPrintSingleError full level e = do
794 paras [ line $ "Integer value " ++ show value ++ " is out of range for the " ++ backend ++ " backend."
796 paras [ line $ "Integer value " ++ show value ++ " is out of range for the " ++ backend ++ " backend."
795 , line $ "Acceptable values fall within the range " ++ show lo ++ " to " ++ show hi ++ " (inclusive)." ]
797 , line $ "Acceptable values fall within the range " ++ show lo ++ " to " ++ show hi ++ " (inclusive)." ]
799+ renderSimpleErrorMessage (RedundantEmptyHidingImport mn) =
800+ line $ "The import for module " ++ runModuleName mn ++ " is redundant as all members have been explicitly hidden."
797 renderHint :: ErrorMessageHint -> Box.Box -> Box.Box
802 renderHint :: ErrorMessageHint -> Box.Box -> Box.Box
798 renderHint (ErrorUnifyingTypes t1 t2) detail =
803 renderHint (ErrorUnifyingTypes t1 t2) detail =
799 paras [ detail
804 paras [ detail