screp-0.1.0.0: grep-like CLI using Parsec parsers instead of regex
Safe HaskellNone
LanguageHaskell2010

Scrappy.Grep.Search

Synopsis

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

offsetToLineCol :: String -> Int -> (Int, Int) Source #

Convert a byte offset in text to (line, col) - 1-indexed