Safe Haskell | None |
---|---|
Language | Haskell2010 |
Filters for psc-ide commands
Synopsis
- data Filter
- moduleFilter :: Set ModuleName -> Filter
- namespaceFilter :: Set IdeNamespace -> Filter
- exactFilter :: Text -> Filter
- prefixFilter :: Text -> Filter
- declarationTypeFilter :: Set DeclarationType -> Filter
- applyFilters :: [Filter] -> ModuleMap [IdeDeclarationAnn] -> ModuleMap [IdeDeclarationAnn]
Documentation
moduleFilter :: Set ModuleName -> Filter Source #
Only keeps Declarations in the given modules
namespaceFilter :: Set IdeNamespace -> Filter Source #
Only keeps Identifiers in the given Namespaces
exactFilter :: Text -> Filter Source #
Only keeps Identifiers that are equal to the search string
prefixFilter :: Text -> Filter Source #
Only keeps Identifiers that start with the given prefix
declarationTypeFilter :: Set DeclarationType -> Filter Source #
Only keeps Identifiers in the given type declarations
applyFilters :: [Filter] -> ModuleMap [IdeDeclarationAnn] -> ModuleMap [IdeDeclarationAnn] Source #