Safe Haskell | None |
---|---|
Language | Haskell2010 |
Build span stream from AST.
Synopsis
- newtype SpanStream = SpanStream [RealSrcSpan]
- mkSpanStream :: Data a => a -> SpanStream
Documentation
newtype SpanStream Source #
A stream of RealSrcSpan
s in ascending order. This allows us to tell
e.g. whether there is another "located" element of AST between current
element and comment we're considering for printing.
SpanStream [RealSrcSpan] |
Instances
:: Data a | |
=> a | Data structure to inspect (AST) |
-> SpanStream |
Create SpanStream
from a data structure containing "located"
elements.