backend-0.1.0.0
LicenseAGPL-3
Maintainerstu235271@mail.uni-kiel.de stu236925@mail.uni-kiel.de
Safe HaskellNone
LanguageHaskell2010

Docs.Renderable

Description

This module provides a class to obtain information from text nodes needed to render these text nodes as html, pdf or the like.

Synopsis

Documentation

class Renderable r where Source #

Class for all types renderable as a text element.

Methods

kindOf :: r -> KindName Source #

The kind of the text

typeOf :: r -> TypeName Source #

The type of the text

contentOf :: r -> Text Source #

The content of the text; the text itself

data DirectRenderable id Source #

Datatype only intended to be used as a Renderable. Can be used to enrich not-Renderable types such as Text with informations needed to be renderable

Constructors

DirectRenderable 

Fields

Instances

Instances details
Renderable (DirectRenderable id) Source # 
Instance details

Defined in Docs.Renderable

directRenderable :: Renderable r => r -> id -> DirectRenderable id Source #

Make a DirectRenderable from any Renderable