regex-0.6.0.0: Toolkit for regex-base

Safe HaskellNone
LanguageHaskell2010

Text.RE.Tools.Grep

Documentation

data Line Source

Constructors

Line 

Fields

getLineNumber :: LineNo
 
getLineMatches :: Matches ByteString
 

Instances

grep :: IsRegex re ByteString => re -> FilePath -> IO () Source

grepLines :: IsRegex re ByteString => re -> FilePath -> IO [Line] Source

type GrepScript re s t = [(re, LineNo -> Matches s -> Maybe t)] Source

grepScript :: IsRegex re s => GrepScript re s t -> [s] -> [t] Source