regex-0.11.1.0: Toolkit for regex-base
Text.RE.ZeInternals.Types.LineNo
Synopsis
newtype LineNo Source #
our line numbers are of the proper zero-based kind
Constructors
Fields
Instances
Methods
succ :: LineNo -> LineNo #
pred :: LineNo -> LineNo #
toEnum :: Int -> LineNo #
fromEnum :: LineNo -> Int #
enumFrom :: LineNo -> [LineNo] #
enumFromThen :: LineNo -> LineNo -> [LineNo] #
enumFromTo :: LineNo -> LineNo -> [LineNo] #
enumFromThenTo :: LineNo -> LineNo -> LineNo -> [LineNo] #
showsPrec :: Int -> LineNo -> ShowS #
show :: LineNo -> String #
showList :: [LineNo] -> ShowS #
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