Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
1-indexed row and column positions in a file.
Instances
Generic Position Source # | |
Show Position Source # | |
Binary Position Source # | |
NFData Position Source # | |
Defined in Distribution.Parsec.Position | |
Eq Position Source # | |
Ord Position Source # | |
Defined in Distribution.Parsec.Position | |
type Rep Position Source # | |
Defined in Distribution.Parsec.Position type Rep Position = D1 ('MetaData "Position" "Distribution.Parsec.Position" "Cabal-syntax-3.14.1.0-Cm6co4XoXcLG0FTMtu5Sqa" 'False) (C1 ('MetaCons "Position" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'SourceUnpack 'SourceStrict 'DecidedStrict) (Rec0 Int))) |
positionCol :: Position -> Int Source #
Since: 3.0.0.0
positionRow :: Position -> Int Source #
Since: 3.0.0.0