| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Unison.Codebase.Editor.HandleInput.Names
Synopsis
- handleNames :: Bool -> (RawQuery, ErrorMessageOrName) -> Cli ()
Documentation
handleNames :: Bool -> (RawQuery, ErrorMessageOrName) -> Cli () Source #
Handles a single NamesI input query returning terms that match a given name.
Parameters:
global :: Bool
- * If
True, search all projects and branches. - * If
False, search only the current branch. query :: (RawQuery, ErrorMessageOrName)
- * The first member is the raw
nameQuerybeing handled. - * The second member is the parsed
nameQuerythat is either an error message to be printed or a name that can be looked up in the codebase.