Language.Preprocessor.Cpphs.Position

| cpphs | Source code | Contents | Index
Language.Preprocessor.Cpphs.Position |
Portability | All
Stability | experimental
Maintainer | Malcolm 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) |
Instances
Eq Posn
Show Posn
newfile :: String -> Posn | Source
Constructor
addcol :: Int -> Posn -> Posn | Source
Updates
newline :: Posn -> Posn | Source
tab :: Posn -> Posn | Source
newlines :: Int -> Posn -> Posn | Source
newpos :: Int -> Maybe String -> Posn -> Posn | Source
cppline :: Posn -> String | Source
cpp-style printing
filename :: Posn -> String | Source
lineno :: Posn -> Int | Source
Projections
directory :: Posn -> FilePath | Source
Produced by Haddock version 0.8