regex-0.10.0.3: Toolkit for regex-base

Safe HaskellNone
LanguageHaskell2010

Text.RE.Types.LineNo

Synopsis

Documentation

newtype LineNo Source #

our line numbers are of the proper zero-based kind

Constructors

ZeroBasedLineNo 

firstLine :: LineNo Source #

the first line in a file

getLineNo :: LineNo -> Int Source #

extract a conventional 1-based line number

lineNo :: Int -> LineNo Source #

inject a conventional 1-based line number