Language.PureScript.Ide.Matcher

purescript-0.15.15: PureScript Programming Language Compiler

Safe Haskell | None
Language | Haskell2010

Language.PureScript.Ide.Matcher

Description

Matchers for psc-ide commands

Synopsis

- data Matcher a
- runMatcher :: Matcher a -> [Match a] -> [Match a]
- flexMatcher :: Text -> Matcher IdeDeclarationAnn

# Documentation

data Matcher a #

#### Instances

Instances details

FromJSON (Matcher IdeDeclarationAnn) # |
Instance details Defined in Language.PureScript.Ide.Matcher Methods parseJSON :: Value -> Parser (Matcher IdeDeclarationAnn) # parseJSONList :: Value -> Parser [Matcher IdeDeclarationAnn] # omittedField :: Maybe (Matcher IdeDeclarationAnn) #
Monoid (Matcher a) # |
Instance details Defined in Language.PureScript.Ide.Matcher Methods mempty :: Matcher a # mappend :: Matcher a -> Matcher a -> Matcher a # mconcat :: [Matcher a] -> Matcher a #
Semigroup (Matcher a) # |
Instance details Defined in Language.PureScript.Ide.Matcher Methods (<>) :: Matcher a -> Matcher a -> Matcher a # sconcat :: NonEmpty (Matcher a) -> Matcher a # stimes :: Integral b => b -> Matcher a -> Matcher a #

runMatcher :: Matcher a -> [Match a] -> [Match a] #

flexMatcher :: Text -> Matcher IdeDeclarationAnn #

Matches any occurrence of the search string with intersections

The scoring measures how far the matches span the string where closer is better. Examples: flMa matches flexMatcher. Score: 14.28 sons matches sortCompletions. Score: 6.25