numerals-0.4: Convert numbers to number words

Safe HaskellSafe-Inferred

Text.Numeral.Exp.Reified

Synopsis

Documentation

data Exp i Source

An expression that represents the structure of a numeral.

Constructors

Unknown

An unknown value.

Lit

A literal value.

Neg (Exp i)

Negation of an expression.

Add (Exp i) (Exp i)

Addition of two expressions.

Mul (Exp i) (Exp i)

Multiplication of two expressions.

Sub (Exp i) (Exp i)

One expression subtracted from another expression.

Frac (Exp i) (Exp i)

A fraction.

Scale (Exp i)

A step in a scale of large values.

Dual (Exp i)

A dual form of an expression.

Plural (Exp i)

A plural form of an expression.

Inflection (i -> i) (Exp i)

A change of inflection.

Instances

Inflection (Exp i)

Precisely the Inflection constructor.

Plural (Exp i)

Precisely the Plural constructor.

Dual (Exp i)

Precisely the Dual constructor.

Scale (Exp i)

Precisely the Scale constructor.

Frac (Exp i)

Precisely the Frac constructor.

Sub (Exp i)

Precisely the Sub constructor.

Mul (Exp i)

Precisely the Mul constructor.

Add (Exp i)

Precisely the Add constructor.

Neg (Exp i)

Precisely the Neg constructor.

Lit (Exp i)

Precisely the Lit constructor.

Unknown (Exp i)

Precisely the Unknown constructor.

data Side Source

A side or direction, either Left or Right.

Constructors

L

Left.

R

Right.

Instances