purescript-0.8.1.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.Docs.RenderedCode.Types

Description

Data types and functions for representing a simplified form of PureScript code, intended for use in e.g. HTML documentation.

Synopsis

Documentation

data RenderedCodeElement Source

A single element in a rendered code fragment. The intention is to support multiple output formats. For example, plain text, or highlighted HTML.

data ContainingModule Source

This type is isomorphic to Maybe ModuleName. It makes code a bit easier to read, as the meaning is more explicit.

data RenderedCode Source

A type representing a highly simplified version of PureScript code, intended for use in output formats like plain text or HTML.

outputWith :: Monoid a => (RenderedCodeElement -> a) -> RenderedCode -> a Source

This function allows conversion of a RenderedCode value into a value of some other type (for example, plain text, or HTML). The first argument is a function specifying how each individual RenderedCodeElement should be rendered.

sp :: RenderedCode Source

A RenderedCode fragment representing a space.