xml-basic-0.1.2: Basics for XML/HTML representation and processing

Maintainertagsoup@henning-thielemann.de
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Text.XML.Basic.Position

Description

Position in a file.

Cf. to Text.ParserCombinators.Parsec.Pos

Synopsis

Documentation

data T Source #

Position in a file consisting of file name, row and column coordinates. Upper left is (0,0), but show routines can display this with different offsets.

Instances

Eq T Source # 

Methods

(==) :: T -> T -> Bool #

(/=) :: T -> T -> Bool #

Ord T Source # 

Methods

compare :: T -> T -> Ordering #

(<) :: T -> T -> Bool #

(<=) :: T -> T -> Bool #

(>) :: T -> T -> Bool #

(>=) :: T -> T -> Bool #

max :: T -> T -> T #

min :: T -> T -> T #

Show T Source # 

Methods

showsPrec :: Int -> T -> ShowS #

show :: T -> String #

showList :: [T] -> ShowS #

type Row = Int Source #

toReportText :: T -> String Source #

Convert the file position to a format that development environments can understand.