Safe Haskell | None |
---|---|
Language | Haskell2010 |
- transformQuery :: String -> ([String], [String], String)
- extractFilters :: [Expression] -> ([Expression], [Expression], [Expression])
- formatFilters :: [Expression] -> [Expression] -> ([String], [String])
- formatQueryWith :: (Expression -> String) -> [Expression] -> String
- formatQueryNoEscaping :: [Expression] -> String
- formatQuery :: [Expression] -> String
- data Expression
- data Conj
- toStringNoEscaping :: Expression -> String
- toString :: Expression -> String
- quote :: String -> String
- maybeQuote :: String -> String
- conjToString :: Conj -> String
- escapeString :: String -> String
- stripAlphaNum :: Char -> Char
- type Parser' = ParsecT String () Identity
- parseFilters :: String -> [Expression]
- filtersAndLiterals :: Parser' Expression
- tagFilter :: Parser' Expression
- authorFilter :: Parser' Expression
- phrase :: Parser' Expression
- literalStop :: Parser' ()
- literal :: Parser' Expression
- parseQueryNoFilters :: String -> [Expression]
- expressionNoFilters :: Parser' Expression
- andOrExpr :: Parser' Expression
- conjExpr :: Parser' Conj
- andExpr :: Parser' Conj
- orExpr :: Parser' Conj
- mkConjExpr :: [String] -> Conj -> Parser' Conj
- literalStopNoFilters :: Parser' ()
- literalNoFilters :: Parser' Expression
- isTagFilter :: Expression -> Bool
- tagNameFromExpression :: Expression -> String
- isAuthorFilter :: Expression -> Bool
- authorNameFromExpression :: Expression -> String
Documentation
Extract tag and author filters and prepare resulting query string for submission to Sphinx.
extractFilters :: [Expression] -> ([Expression], [Expression], [Expression]) Source #
formatFilters :: [Expression] -> [Expression] -> ([String], [String]) Source #
formatQueryWith :: (Expression -> String) -> [Expression] -> String Source #
formatQueryNoEscaping :: [Expression] -> String Source #
formatQuery :: [Expression] -> String Source #
data Expression Source #
toString :: Expression -> String Source #
maybeQuote :: String -> String Source #
conjToString :: Conj -> String Source #
escapeString :: String -> String Source #
stripAlphaNum :: Char -> Char Source #
parseFilters :: String -> [Expression] Source #
literalStop :: Parser' () Source #
parseQueryNoFilters :: String -> [Expression] Source #
literalStopNoFilters :: Parser' () Source #
isTagFilter :: Expression -> Bool Source #
isAuthorFilter :: Expression -> Bool Source #