Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Bindings
- getLocalScope :: Bindings -> RealSrcSpan -> [(Name, Maybe Type)]
- getFuzzyScope :: Bindings -> Position -> Position -> [(Name, Maybe Type)]
- getDefiningBindings :: Bindings -> RealSrcSpan -> [(Name, Maybe Type)]
- getFuzzyDefiningBindings :: Bindings -> Position -> Position -> [(Name, Maybe Type)]
- bindings :: RefMap Type -> Bindings
Documentation
The available bindings at every point in a Haskell tree.
getLocalScope :: Bindings -> RealSrcSpan -> [(Name, Maybe Type)] Source #
Given a Bindings
get every identifier in scope at the given
RealSrcSpan
,
getFuzzyScope :: Bindings -> Position -> Position -> [(Name, Maybe Type)] Source #
Lookup all names in scope in any span that intersects the interval
defined by the two positions.
This is meant for use with the fuzzy PositionRange
returned by PositionMapping
getDefiningBindings :: Bindings -> RealSrcSpan -> [(Name, Maybe Type)] Source #
Given a Bindings
, get every binding currently active at a given
RealSrcSpan
,