dep-software-0.1.0.0
Maintainerhapytexeu+gh@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Dep.Class.Renderable

Description

A module that has a type class to render items of the types that are members of the typeclass.

Synopsis

Documentation

class CharRenderable a where Source #

A typeclass that specifies that a certain type can be rendered with a single Character.

Methods

charRenderItem Source #

Arguments

:: a

THe given item to render.

-> Char

The corresponding Character when rendering the object.

Render the given item to a Char object.

Instances

Instances details
CharRenderable Bool Source # 
Instance details

Defined in Dep.Class.Renderable

CharRenderable Char Source # 
Instance details

Defined in Dep.Class.Renderable

CharRenderable ThreeValue Source # 
Instance details

Defined in Dep.Data.ThreeValue

CharRenderable a => CharRenderable (Maybe a) Source # 
Instance details

Defined in Dep.Class.Renderable

class Renderable a where Source #

A typeclass that specifies that a certain type can be rendered as a DEP Text object.

Minimal complete definition

Nothing

Methods

renderItem Source #

Arguments

:: a

The given item to render.

-> Text

The corresponding Text for the rendered information.

Render the given item to a Text object.

default renderItem :: CharRenderable a => a -> Text Source #

Instances

Instances details
Renderable Bool Source # 
Instance details

Defined in Dep.Class.Renderable

Methods

renderItem :: Bool -> Text Source #

Renderable Char Source # 
Instance details

Defined in Dep.Class.Renderable

Methods

renderItem :: Char -> Text Source #

Renderable ThreeValue Source # 
Instance details

Defined in Dep.Data.ThreeValue

CharRenderable a => Renderable (Maybe a) Source # 
Instance details

Defined in Dep.Class.Renderable

Methods

renderItem :: Maybe a -> Text Source #