unittyped-0.1: An extendable library for type-safe computations including units.

Safe HaskellNone

UnitTyped.SI.Derived

Description

A module with dimensions and units derived from combining SI units.

Synopsis

Documentation

type Speed = UnitCons Time NOne (UnitCons Length POne UnitNil)Source

Speed. Length^1 Time^-1.

type Acceleration = UnitCons Time NTwo (UnitCons Length POne UnitNil)Source

Acceleration. Length^1 Time^-2.

data Knot Source

Derived unit of speed (kn).

type Force = UnitCons Time NTwo (UnitCons Mass POne (UnitCons Length POne UnitNil))Source

Force. Length^1 Time^-1 Mass^1.

data Newton Source

Unit of force (N).

type Energy = UnitCons Time NTwo (UnitCons Mass POne (UnitCons Length PTwo UnitNil))Source

Energy. Length^2 Time^-2 Mass^1.

data Joule Source

Unit of energy (J).

data Ev Source

Unit of energy (eV).

Instances

type Power = UnitCons Time NThree (UnitCons Length PTwo (UnitCons Mass POne UnitNil))Source

Energy. Length^2 Time^-3 Mass^1.

data Watt Source

Unit of power (W).

type Pressure = UnitCons Time NTwo (UnitCons Mass POne (UnitCons Length NOne UnitNil))Source

Energy. Length^-1 Time^-2 Mass^1.

data Pascal Source

Unit of pressure (Pa).

data Bar Source

Unit of pressure (bar).

data MmHg Source

Unit of pressure (mmHg).

type Charge = UnitCons Time POne (UnitCons Current POne UnitNil)Source

Electric charge. Time^1 Current^1.

data Coulomb Source

Unit of chage (C).

type Potential = UnitCons Current NOne (UnitCons Mass POne (UnitCons Length PTwo (UnitCons Time NThree UnitNil)))Source

Electric potential. Time^-3 Current^-1 Mass^1 Length^2.

data Volt Source

Unit of potential (V).

type Capacitance = UnitCons Current PTwo (UnitCons Mass NOne (UnitCons Length NTwo (UnitCons Time PFour UnitNil)))Source

Electric capacitance. Current^2 Mass^-1 Length^2 Time^4.

data Farad Source

Unit of capacitance (F).

type Resistance = UnitCons Current NTwo (UnitCons Time NThree (UnitCons Length PTwo (UnitCons Mass POne UnitNil)))Source

Electric resistance. Current^-2 Time^-3 Length^2 Mass^1.

data Ohm Source

Unit of resistance (Ω).

type Conductance = UnitCons Current PTwo (UnitCons Mass NOne (UnitCons Length NTwo (UnitCons Time PThree UnitNil)))Source

Electric conductance. Current^2 Mass^-1 Length^-2 Time^3.

data Siemens Source

Unit of conductance (S).

type Flux = UnitCons Current NOne (UnitCons Length PTwo (UnitCons Mass POne (UnitCons Time NTwo UnitNil)))Source

Magnetic flux. Current^-1 Length^2 Mass^1 Time^-2.

data Weber Source

Unit of magnetic flux (Wb).

type FluxDensity = UnitCons Time NTwo (UnitCons Mass POne (UnitCons Current NOne UnitNil))Source

Magnetic field strength. Time^-2 Mass^1 Current^-1.

data Tesla Source

Unit of magnetic field strength (T).

type Inductance = UnitCons Current NTwo (UnitCons Time NTwo (UnitCons Mass POne (UnitCons Length PTwo UnitNil)))Source

Inductance. Current^-2 Time^-2 Mass^1 Length^2.

data Henry Source

Unit of Inductance (H).

knot :: Fractional f => Value f Speed KnotSource

One knot.

newton :: Fractional f => Value f Force NewtonSource

One newton.

joule :: Fractional f => Value f Energy JouleSource

One joule.

eV :: Fractional f => Value f Energy EvSource

One eV.

kwh :: Fractional f => Value f Energy (Mul (Kilo Watt) Hour)Source

One kwh.

watt :: Fractional f => Value f Power WattSource

One watt.

weber :: Fractional f => Value f Flux WeberSource

One weber.