on master help sign in
Fix kernel symbol lookup for new parsing code
commit21cf408dcad9c9bfa03cb602af58e0eaf844a2c7 authorEvan Czaplicki <evancz@users.noreply.github.com> dateTue 11 Jul 2017, 14:59 (9 years ago) parent4cd5aec
1 file changed+2−2
src/Parse/Kernel.hs+2−2
src/Parse/Kernel.hs+2−2
@@ -56,7 +56,7 @@ parserHelp table enums chunks =
5656 Parse.KernelImport var ->
5757 case Map.lookup var table of
5858 Nothing ->
59− error $ show $ "could not find " <> var <> " when parsing kernel code"
59+ error ("Bad kernel symbol: " ++ Text.unpack var)
6060
6161 Just (home, name) ->
6262 parserHelp table enums (Kernel.Var home name : Kernel.JS javascript : chunks)
@@ -112,7 +112,7 @@ importToTable (A.A _ ( A.A _ fullName, Module.ImportMethod maybeAlias exposed ))
112112 fullName
113113
114114 toEntry value =
115− ( "__" <> shortName <> "_" <> value, ( fullName, value ) )
115+ ( shortName <> "_" <> value, ( fullName, value ) )
116116 in
117117 Map.fromList $ map toEntry $
118118 concatMap entryToValues $ getExplicits exposed