@@ -3,7 +3,7 @@ module Reporting.Error.Canonicalize where
4import Control.Arrow (second)
4import Control.Arrow (second)
5import qualified Data.Char as Char
5import qualified Data.Char as Char
6−import Text.PrettyPrint.ANSI.Leijen (Doc, dullyellow, fillSep, indent, text, vcat)
6+import Text.PrettyPrint.ANSI.Leijen (Doc, dullyellow, fillSep, indent, text)
8import qualified AST.Expression.Canonical as Canonical
8import qualified AST.Expression.Canonical as Canonical
9import qualified AST.Module.Name as ModuleName
9import qualified AST.Module.Name as ModuleName
@@ -377,12 +377,6 @@ badMutualRecursion region name names =
379 Help.functionName name ++ " is defined in terms of itself in a sneaky way, causing an infinite loop."
379 Help.functionName name ++ " is defined in terms of itself in a sneaky way, causing an infinite loop."
382− if length names == 1 then
383− "one other definition"
385− show (length names) ++ " other definitions"
387 Report.report "BAD RECURSION" (Just region) header $
381 Report.report "BAD RECURSION" (Just region) header $
388 Help.stack
382 Help.stack