Safe Haskell | None |
---|---|
Language | Haskell2010 |
For convenience, this module exports only the important types from Loc
.
Documentation
Pos
stands for positive integer. You can also think of it as position,
because we use it to represent line and column numbers (Line
and Column
).
Pos
has instances of several of the standard numeric typeclasses, although
many of the operations throw Underflow
when non-positive values result.
Pos
does not have an Integral
instance, because there is no sensible
way to implement quotRem
.
Enum Pos Source # |
|
Eq Pos Source # | |
Num Pos Source # |
|
Ord Pos Source # | |
Read Pos Source # | |
Real Pos Source # | |
Show Pos Source # | |
ToNat Pos Source # | |