xml-basic-0.1.3.1: 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 # 
Instance details

Defined in Text.XML.Basic.Position

Methods

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

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

Ord T Source # 
Instance details

Defined in Text.XML.Basic.Position

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 # 
Instance details

Defined in Text.XML.Basic.Position

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.