-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A collection of different layout implementations -- -- A collection of different layout implementations, currently just the -- off-sides rule. @package layout-rules @version 0.1.0.0 module Text.Layout.OffSides data Layout tok Layout :: (tok -> Bool) -> (tok -> Bool) -> (SourceRange -> Lexeme tok) -> (SourceRange -> Lexeme tok) -> (SourceRange -> Lexeme tok) -> Layout tok -- | True when this token begins layout [beginsLayout] :: Layout tok -> tok -> Bool -- | True when this token explicitly ends layout [endsLayout] :: Layout tok -> tok -> Bool -- | The separator token [sep] :: Layout tok -> SourceRange -> Lexeme tok -- | Layout block starting token [start] :: Layout tok -> SourceRange -> Lexeme tok -- | Layout block ending token [end] :: Layout tok -> SourceRange -> Lexeme tok -- | The off-sides rule. layout :: Layout tok -> [Lexeme tok] -> [Lexeme tok] -- | Turn a single token into the form required by the Layout type. wrapToken :: tok -> SourceRange -> Lexeme tok