kedgeree-demo-0.1.0
 
Safe HaskellNone

Geometry.Render

Description

Rendering Shapes to simple textual descriptions.

This module imports Geometry, so the hyperlinked-source view has cross-module links to follow.

Synopsis

Descriptions

describe :: Style -> Shape -> StringSource #

Describe a single shape's area and perimeter.

describeAll :: Style -> [Shape] -> StringSource #

Describe many shapes, one per line.

Styling

data StyleSource #

How to render a description.

Constructors

Style 

Fields

Instances

Instances details
Eq Style Source # 
Instance details

Defined in Geometry.Render

Methods

(==) :: Style -> Style -> Bool

(/=) :: Style -> Style -> Bool

Show Style Source # 
Instance details

Defined in Geometry.Render

Methods

showsPrec :: Int -> Style -> ShowS

show :: Style -> String

showList :: [Style] -> ShowS

defaultStyle :: StyleSource #

A reasonable default: centimetres, two decimals.