Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ParsedSource
- parseModule :: FilePath -> IO (Either ParseError ParsedSource)
- data ParseError
- printParseError :: ParseError -> [Char]
- data Query
- = MatchSimple [Char]
- | MatchRegex Regex
- data Regex
- compileRegex :: [Char] -> Either [Char] Regex
- data SearchResult
- queryModule :: Query -> ParsedSource -> [SearchResult]
- data PrintOpts = PrintOpts {}
- defaultPrintOpts :: PrintOpts
- data ColourOpts
- printResults :: PrintOpts -> [SearchResult] -> IO ()
- printSearchResult :: PrintOpts -> SearchResult -> [Char]
- printSearchResultLocation :: PrintOpts -> SearchResult -> [Char]
Parsing
data ParsedSource Source #
parseModule :: FilePath -> IO (Either ParseError ParsedSource) Source #
data ParseError Source #
printParseError :: ParseError -> [Char] Source #
Searching
Queries
Running queries
data SearchResult Source #
queryModule :: Query -> ParsedSource -> [SearchResult] Source #
Printing results
data ColourOpts Source #
printResults :: PrintOpts -> [SearchResult] -> IO () Source #
printSearchResult :: PrintOpts -> SearchResult -> [Char] Source #
printSearchResultLocation :: PrintOpts -> SearchResult -> [Char] Source #