regex-0.2.0.1: Toolkit for regex-base

Safe HaskellNone
LanguageHaskell2010

Text.RE.Tools.Grep

Documentation

data Line Source

Constructors

Line 

Fields

_ln_no :: LineNo
 
_ln_matches :: 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