errata-0.2.0.0: Source code error pretty printing
Copyright(c) 2020 comp
LicenseMIT
Maintaineronecomputer00@gmail.com
Stabilitystable
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Errata.Internal.Render

Description

Functions for rendering the errors. You should not need to import this, as these functions are lower-level.

This module is internal, and may break across non-breaking versions.

Synopsis

Documentation

renderErrors :: Source source => source -> [Errata] -> Builder Source #

Renders errors.

renderErrata :: Source source => Array Int source -> Errata -> Builder Source #

A single pretty error from metadata and source lines.

renderBlock :: Source source => Array Int source -> Block -> Builder Source #

A single pretty block from block data and source lines.

renderSourceLines :: Source source => Array Int source -> Block -> NonEmpty Pointer -> Builder Source #

The source lines for a block.