@@ -67,8 +67,11 @@ unhandledError unhandledPatterns relevantMessage =
67 patternList =
67 patternList =
68 map (Pattern.toString False) visiblePatterns
68 map (Pattern.toString False) visiblePatterns
69 ++ if null rest then [] else ["..."]
69 ++ if null rest then [] else ["..."]
72+ if length unhandledPatterns == 1 then "pattern" else "patterns"
71− "You need to account for the following values:\n"
74+ "You need to account for the following " ++ noun ++ ":\n"
72 ++ concatMap ("\n " ++) patternList ++ "\n"
75 ++ concatMap ("\n " ++) patternList ++ "\n"
74 ++ relevantMessage ++ "\n"
77 ++ relevantMessage ++ "\n"