HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulelanguage-c-0.9.3Haskell2010

Language.C.Data.Position

Source code position

  • 2 types
  • 1 class
  • 17 values
  • Packagelanguage-c-0.9.3
  • Exports20
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePosition.hs
datadata Position
#

uniform representation of source file positions

Instances7Eq, Data, Ord, Show, Generic, NFData, …
valueposRow :: Position -> Int
#

row (line) in the original file. Affected by #LINE pragmas.

valueposColumn :: Position -> Int
#

column in the preprocessed file. Inaccurate w.r.t. to the original file in the presence of preprocessor macros.

valueinitPos :: FilePath -> Position
#

initialize a Position to the start of the translation unit starting in the given file

valuenopos :: Position
#

no position (for unknown position information)

valueisNoPos :: Position -> Bool
#

returns True if the there is no position information available

classclass Pos a where
#

class of type which aggregate a source code location

Methods

Instances48Pos, …