cpphsSource codeContentsIndex
Language.Preprocessor.Cpphs.Position
PortabilityAll
Stabilityexperimental
MaintainerMalcolm Wallace <Malcolm.Wallace@cs.york.ac.uk>
Description
Simple file position information, with recursive inclusion points.
Synopsis
data Posn = Pn String !Int !Int (Maybe Posn)
newfile :: String -> Posn
addcol :: Int -> Posn -> Posn
newline :: Posn -> Posn
tab :: Posn -> Posn
newlines :: Int -> Posn -> Posn
newpos :: Int -> Maybe String -> Posn -> Posn
cppline :: Posn -> String
filename :: Posn -> String
lineno :: Posn -> Int
directory :: Posn -> FilePath
Documentation
data Posn Source
Source positions contain a filename, line, column, and an inclusion point, which is itself another source position, recursively.
Constructors
Pn String !Int !Int (Maybe Posn)
show/hide Instances
Eq Posn
Show Posn
newfile :: String -> PosnSource
Constructor
addcol :: Int -> Posn -> PosnSource
Updates
newline :: Posn -> PosnSource
tab :: Posn -> PosnSource
newlines :: Int -> Posn -> PosnSource
newpos :: Int -> Maybe String -> Posn -> PosnSource
cppline :: Posn -> StringSource
cpp-style printing
filename :: Posn -> StringSource
lineno :: Posn -> IntSource
Projections
directory :: Posn -> FilePathSource
Produced by Haddock version 0.8