mirror of
https://github.com/GaloisInc/cryptol.git
synced 2025-01-08 08:49:44 +03:00
Make :browse handle shadowing of names from dynamic environment.
Fixes #538.
This commit is contained in:
parent
634c5a03e7
commit
515642328a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user