| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ormolu.Printer.SpanStream
Description
Build span stream from AST.
Synopsis
- newtype SpanStream = SpanStream [RealSrcSpan]
- mkSpanStream :: Data a => a -> SpanStream
Documentation
newtype SpanStream #
A stream of RealSrcSpans 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.