| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Scrappy.Grep.Search
Synopsis
- searchFile :: ScraperT String -> FilePath -> IO [MatchResult]
- searchFiles :: ScraperT String -> [FilePath] -> IO [MatchResult]
- searchText :: FilePath -> ScraperT String -> String -> [MatchResult]
- offsetToLineCol :: String -> Int -> (Int, Int)
Documentation
searchFile :: ScraperT String -> FilePath -> IO [MatchResult] Source #
Search a file for all matches, returning results with positions
searchFiles :: ScraperT String -> [FilePath] -> IO [MatchResult] Source #
Search multiple files
searchText :: FilePath -> ScraperT String -> String -> [MatchResult] Source #
Search text content and return matches with positions