HaRe-0.7.2.4: the Haskell Refactorer.

Safe HaskellSafe-Inferred

Language.Haskell.Refact.Utils.TokenUtilsTypes

Description

This module contains types shared between TokenUtils and Monad, and exists to break import cycles

Synopsis

Documentation

data PprOrigin Source

Constructors

Original

Original tokens

Added

Added tokens

data Ppr Source

A data structure to make the ppr process visible

Constructors

PprText Row Col PprOrigin String

Original row and col of the tokens making up the string

PprAbove EndOffset (Row, Col) EndOffset [Ppr]

Offset of start of embedded parts, coords of last token, offset to start of next part, relative to the column of the start

PprDeleted Row Col RowOffset RowOffset RowOffset

Marks lines that have been deleted together with the original gap before, how many lines were originally included, and gap after. And a note field for debugging

Instances