trifecta-0.37: A modern parser combinator library with convenient diagnostics

Text.Trifecta.Diagnostic.Rendering.Prim

Contents

Description

Diagnostics rendering

The type for Lines will very likely change over time, so we can draw lit up control characters for ^Z, ^[, 0xff, etc. this will make for much nicer diagnostics when working with protocols!

Synopsis

Documentation

class Source t whereSource

Methods

source :: t -> (Int, Lines -> Lines)Source

rendering :: Source s => Delta -> s -> RenderingSource

create a drawing surface

Lower level drawing primitives