Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ormolu.Printer.SpanStream
Description
Build span stream from AST.
Synopsis
- newtype SpanStream = SpanStream [RealSrcSpan]
- mkSpanStream :: Data a => a -> SpanStream
Documentation
newtype SpanStream Source #
A stream of SrcSpan
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.
Constructors
SpanStream [RealSrcSpan] |
Instances
Arguments
:: Data a | |
=> a | Data structure to inspect (AST) |
-> SpanStream |
Create SpanStream
from a data structure containing "located"
elements.