mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-12-17 13:01:31 +03:00
Make :browse filter declarations by module name instead of value name.
See #396.
This commit is contained in:
parent
2b568897da
commit
d025108bd2
@ -953,7 +953,7 @@ isNamePrefix :: String -> M.Name -> Bool
|
||||
isNamePrefix pfx =
|
||||
let pfx' = ST.pack pfx
|
||||
in \n -> case M.nameInfo n of
|
||||
M.Declared _ -> pfx' `ST.isPrefixOf` M.identText (M.nameIdent n)
|
||||
M.Declared m -> pfx' `ST.isPrefixOf` m
|
||||
M.Parameter -> False
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user