on master help sign in
style: minor indentation change
commit7adf060c79a55a800dfb5a81892ba09fccc0dfd1 authorEvan Czaplicki <info@elm-lang.org> dateMon 9 Feb 2015, 14:16 (12 years ago) parente896635
1 file changed+7−3
src/Transform/Canonicalize/Variable.hs+7−3
src/Transform/Canonicalize/Variable.hs+7−3
@@ -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