cartel-0.10.0.0: Specify your Cabal files in Haskell

Safe HaskellSafe-Inferred

Cartel.Render

Description

Functions to render the data types in Cartel.Ast. You shouldn't need anything from this module; the main rendering function is also exported from Cartel.

Documentation

labeledSource

Arguments

:: Int

Indentation

-> String

Label

-> String

Text

-> String

Result, with a newline. Empty if the text to show is also empty.

labeledListSource

Arguments

:: Int

Indentation

-> String

Label

-> [String]

List

-> String

Result, with newlines. Empty if the list is empty.