| Copyright | 2000-2004 Malcolm Wallace |
|---|---|
| License | LGPL |
| Maintainer | Malcolm Wallace <Malcolm.Wallace@cs.york.ac.uk> |
| Stability | experimental |
| Portability | All |
| Safe Haskell | Safe-Inferred |
| Language | Haskell98 |
Language.Preprocessor.Cpphs.Position
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
- haskline :: Posn -> String
- cpp2hask :: String -> String
- filename :: Posn -> String
- lineno :: Posn -> Int
- directory :: Posn -> FilePath
- cleanPath :: FilePath -> FilePath