License | BSD-3-Clause |
---|---|
Maintainer | Jamie Willis |
Stability | experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
This module contains the machinery for manipulating position information, both in static and dynamic forms.
Since: 2.1.0.0
Documentation
fromDynPos :: DynPos -> StaPos Source #
Converts a dynamic position into an unannotated static one.
Since: 2.1.0.0
toDynPos :: StaPos -> DynPos Source #
Forgets the static information found in a position and converts it into a dynamic one.
Since: 2.1.0.0
fromStaPos :: (Word, Word) -> StaPos Source #
Produce a static position from a given line and column pair.
Since: 2.1.0.0
force :: StaPos -> PosSelector -> (Code Int -> StaPos -> Code r) -> Code r Source #
Given a static position, and a component to select, collapse the position down to its smallest form (binding this to a let if necessary) and extract the desired component. The new, potentially rebound, position is provided to the continuation too.
Since: 2.1.0.0