layout-rules-0.1.0.2: A collection of different layout implementations

Safe HaskellNone
LanguageHaskell2010

Text.Layout.OffSides

Contents

Synopsis

Off-sides Rule

data Layout tok Source #

Constructors

Layout 

Fields

layout :: Layout tok -> [Lexeme tok] -> [Lexeme tok] Source #

The off-sides rule.

Utilities

wrapToken :: tok -> SourceRange -> Lexeme tok Source #

Turn a single token into the form required by the Layout type.