on master help sign in
cosmetic: make line a bit shorter
commitd9709769d3002b4614696ff7c9d07b7bce695eb0 authorEvan Czaplicki <info@elm-lang.org> dateThu 29 May 2014, 14:19 (12 years ago) parente327216
1 file changed+2−2
compiler/Type/Environment.hs+2−2
compiler/Type/Environment.hs+2−2
@@ -107,9 +107,9 @@ ctorToType env (name, (tvars, ctors)) =
107107
108108
109109get :: Environment -> (Environment -> Map.Map String a) -> String -> a
110−get env subDict key = Map.findWithDefault err key (subDict env)
110+get env subDict key = Map.findWithDefault (error msg) key (subDict env)
111111 where
112− err = error $ "Could not find type constructor '" ++ key ++ "' while checking types."
112+ msg = "Could not find type constructor '" ++ key ++ "' while checking types."
113113
114114
115115freshDataScheme :: Environment -> String -> IO (Int, [Variable], [Type], Type)