on master help sign in
style: minor indentation change
7adf060Evan Czaplicki
src/Transform/Canonicalize/Variable.hs+7−3
@@ -69,9 +69,13 @@ notFound :: String -> [String] -> String -> Canonicalizer String a
69notFound kind possibilities var =
69notFound kind possibilities var =
70 throwError $ "Could not find " ++ kind ++ " '" ++ var ++ "'." ++ msg
70 throwError $ "Could not find " ++ kind ++ " '" ++ var ++ "'." ++ msg
71 where
71 where
72+ matches =
72− matches = filter (List.isInfixOf var) possibilities
73+ filter (List.isInfixOf var) possibilities
74+
75+ msg =
73− msg = if null matches then "" else
76+ if null matches
77+ then ""
74− "\nClose matches include: " ++ List.intercalate ", " matches
78+ else "\nClose matches include: " ++ List.intercalate ", " matches
75
79
76
80
77preferLocals
81preferLocals