Make :browse handle shadowing of names from dynamic environment.

Fixes #538.
This commit is contained in:
Brian Huffman 2018-09-17 11:04:45 -07:00
parent 634c5a03e7
commit 515642328a

View File

@ -801,7 +801,9 @@ quitCmd = stop
browseCmd :: String -> REPL ()
browseCmd input = do
(_,iface,names,disp) <- getFocusedEnv
(_, iface, fNames, disp) <- getFocusedEnv
denv <- getDynEnv
let names = M.deNames denv `M.shadowing` fNames
let mnames = map (M.textToModName . T.pack) (words input)
validModNames <- (:) M.interactiveName <$> getModNames