uulib-0.9.15: Haskell Utrecht Tools Library
UU.Scanner.Position
type Line = IntSource
type Column = IntSource
type Filename = StringSource
class Position p whereSource
Methods
line :: p -> LineSource
column :: p -> ColumnSource
file :: p -> FilenameSource
Instances
data Pos Source
Constructors
initPos :: FilePath -> PosSource
noPos :: PosSource
advl :: Line -> Pos -> PosSource
advc :: Column -> Pos -> PosSource
adv :: Pos -> Char -> PosSource
updPos :: Char -> Pos -> PosSource
tab :: Pos -> PosSource
newl :: Pos -> PosSource
tabWidth :: Column -> IntSource
updPos' :: Char -> Pos -> (Pos -> a) -> aSource
advc' :: Int -> Pos -> (Pos -> a) -> aSource
tab' :: Pos -> (Pos -> a) -> aSource
newl' :: Pos -> (Pos -> a) -> aSource