purescript-0.15.15: PureScript Programming Language Compiler

Safe Haskell | None
Language | Haskell2010

Language.PureScript.CST.Print

Description

This is just a simple token printer. It's not a full fledged formatter, but it is used by the layout golden tests. Printing each token in the tree with this printer will result in the exact input that was given to the lexer.

# Documentation

printToken :: Token -> Text #

printTokens :: [SourceToken] -> Text #

printModule :: Module a -> Text #

printLeadingComment :: Comment LineFeed -> Text #

printTrailingComment :: Comment void -> Text #