Make :browse filter declarations by module name instead of value name.

See #396.
This commit is contained in:
Brian Huffman 2017-10-04 15:45:25 -07:00
parent 2b568897da
commit d025108bd2

View File

@ -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