@@ -69,9 +69,13 @@ notFound :: String -> [String] -> String -> Canonicalizer String a
6969notFound kind possibilities var =
7070 throwError $ "Could not find " ++ kind ++ " '" ++ var ++ "'." ++ msg
7171 where
72− matches = filter (List.isInfixOf var) possibilities
73− msg = if null matches then "" else
74− "\nClose matches include: " ++ List.intercalate ", " matches
72+ matches =
73+ filter (List.isInfixOf var) possibilities
74+
75+ msg =
76+ if null matches
77+ then ""
78+ else "\nClose matches include: " ++ List.intercalate ", " matches
7579
7680
7781preferLocals