unicode-tricks-0.9.1.0: Functions to work with unicode blocks more convenient.
Maintainerhapytexeu+gh@gmail.com
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe
LanguageHaskell2010

Data.Char.BallotBox

Description

Unicode has a block named Miscellaneous Symbols that includes unicode characters for boxes that are empty, contain a check or a cross, this module aims to make it more convenient to render these.

Synopsis

Represent a ballot box.

data BallotBox Source #

A datatype that represents the different types of ballot boxes.

Constructors

Empty

The box is empty, this is represented with ☐.

Check

The box has a check, this is represented with ☑.

Cross

The box has a cross, this is represented with ☒.

Instances

Instances details
Bounded BallotBox Source # 
Instance details

Defined in Data.Char.BallotBox

Enum BallotBox Source # 
Instance details

Defined in Data.Char.BallotBox

Eq BallotBox Source # 
Instance details

Defined in Data.Char.BallotBox

Ord BallotBox Source # 
Instance details

Defined in Data.Char.BallotBox

Read BallotBox Source # 
Instance details

Defined in Data.Char.BallotBox

Show BallotBox Source # 
Instance details

Defined in Data.Char.BallotBox

Arbitrary BallotBox Source # 
Instance details

Defined in Data.Char.BallotBox

UnicodeText BallotBox Source # 
Instance details

Defined in Data.Char.BallotBox

UnicodeCharacter BallotBox Source # 
Instance details

Defined in Data.Char.BallotBox

Convert a boolean to a ballot box.

toCheckBox Source #

Arguments

:: Bool

The given Bool that determines if the box contains a Check.

-> BallotBox

The corresponding BallotBox.

Convert the given Boolean to a BallotBox that is Empty, or contains a Check.

toCrossBox Source #

Arguments

:: Bool

The given Bool that determines if the box contains a Cross.

-> BallotBox

The corresponding BallotBox.

Convert the given Boolean to a BallotBox that is Empty, or contains a Cross.