units-defs-2.2.1: Definitions for use with the units package
Copyright(C) 2013 Richard Eisenberg
LicenseBSD-style (see LICENSE)
MaintainerRichard Eisenberg (rae@cs.brynmawr.edu)
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.Units.Imperial

Description

This module defines the Imperial system of units, based on the Exchequer Standards of 1825. Two big differences between the Imperial system and the US customary one are that because the USA declared their independence from the UK in 1776, the US customary system is based on the previous Winchester Standards, and that the Imperial system uses the same units for dry and fluid measures. This module gathers together a subjective set of units of general use appearing <https://en.wikipedia.org/wiki/Imperial_units here>, submodules will gather measures of more limited use. It also exports type instances DefaultUnitOfDim that use the SI internal representations. This choice is made for inter-compatibility with SI computations. If you want the foot-pound-second system, use the FPS.

Where possible, reference have been made to UK legislation. However, Wikipedia's page is much better organized than any government resource immediately available.

The UK legislation used as references are as follows: http://www.legislation.gov.uk/ukpga/1985/72/enacted http://www.legislation.gov.uk/uksi/1994/2867/schedule/part/VI/made http://www.legislation.gov.uk/uksi/1995/1804/schedule/made

Synopsis

Lengths

data Thou Source #

Constructors

Thou 

Instances

Instances details
Show Thou Source # 
Instance details

Defined in Data.Units.Imperial.Length

Methods

showsPrec :: Int -> Thou -> ShowS #

show :: Thou -> String #

showList :: [Thou] -> ShowS #

Unit Thou Source # 
Instance details

Defined in Data.Units.Imperial.Length

Associated Types

type BaseUnit Thou #

type DimOfUnit Thou #

type UnitFactorsOf Thou :: [Factor Type] #

type UnitFactorsOf Thou Source # 
Instance details

Defined in Data.Units.Imperial.Length

type DimOfUnit Thou Source # 
Instance details

Defined in Data.Units.Imperial.Length

type BaseUnit Thou Source # 
Instance details

Defined in Data.Units.Imperial.Length

data Inch Source #

Constructors

Inch 

Instances

Instances details
Show Inch Source # 
Instance details

Defined in Data.Units.Imperial.Length

Methods

showsPrec :: Int -> Inch -> ShowS #

show :: Inch -> String #

showList :: [Inch] -> ShowS #

Unit Inch Source # 
Instance details

Defined in Data.Units.Imperial.Length

Associated Types

type BaseUnit Inch #

type DimOfUnit Inch #

type UnitFactorsOf Inch :: [Factor Type] #

type UnitFactorsOf Inch Source # 
Instance details

Defined in Data.Units.Imperial.Length

type DimOfUnit Inch Source # 
Instance details

Defined in Data.Units.Imperial.Length

type BaseUnit Inch Source # 
Instance details

Defined in Data.Units.Imperial.Length

data Foot Source #

Constructors

Foot 

Instances

Instances details
Show Foot Source # 
Instance details

Defined in Data.Units.Imperial.Length

Methods

showsPrec :: Int -> Foot -> ShowS #

show :: Foot -> String #

showList :: [Foot] -> ShowS #

Unit Foot Source # 
Instance details

Defined in Data.Units.Imperial.Length

Associated Types

type BaseUnit Foot #

type DimOfUnit Foot #

type UnitFactorsOf Foot :: [Factor Type] #

type UnitFactorsOf Foot Source # 
Instance details

Defined in Data.Units.Imperial.Length

type DimOfUnit Foot Source # 
Instance details

Defined in Data.Units.Imperial.Length

type BaseUnit Foot Source # 
Instance details

Defined in Data.Units.Imperial.Length

data Yard Source #

Constructors

Yard 

Instances

Instances details
Show Yard Source # 
Instance details

Defined in Data.Units.Imperial.Length

Methods

showsPrec :: Int -> Yard -> ShowS #

show :: Yard -> String #

showList :: [Yard] -> ShowS #

Unit Yard Source # 
Instance details

Defined in Data.Units.Imperial.Length

Associated Types

type BaseUnit Yard #

type DimOfUnit Yard #

type UnitFactorsOf Yard :: [Factor Type] #

type UnitFactorsOf Yard Source # 
Instance details

Defined in Data.Units.Imperial.Length

type DimOfUnit Yard Source # 
Instance details

Defined in Data.Units.Imperial.Length

type BaseUnit Yard Source # 
Instance details

Defined in Data.Units.Imperial.Length

data Mile Source #

Constructors

Mile 

Instances

Instances details
Show Mile Source # 
Instance details

Defined in Data.Units.Imperial.Length

Methods

showsPrec :: Int -> Mile -> ShowS #

show :: Mile -> String #

showList :: [Mile] -> ShowS #

Unit Mile Source # 
Instance details

Defined in Data.Units.Imperial.Length

Associated Types

type BaseUnit Mile #

type DimOfUnit Mile #

type UnitFactorsOf Mile :: [Factor Type] #

type UnitFactorsOf Mile Source # 
Instance details

Defined in Data.Units.Imperial.Length

type DimOfUnit Mile Source # 
Instance details

Defined in Data.Units.Imperial.Length

type BaseUnit Mile Source # 
Instance details

Defined in Data.Units.Imperial.Length

Velocity

data Knot Source #

Constructors

Knot 

Instances

Instances details
Show Knot Source # 
Instance details

Defined in Data.Units.Imperial.Misc

Methods

showsPrec :: Int -> Knot -> ShowS #

show :: Knot -> String #

showList :: [Knot] -> ShowS #

Unit Knot Source # 
Instance details

Defined in Data.Units.Imperial.Misc

Associated Types

type BaseUnit Knot #

type DimOfUnit Knot #

type UnitFactorsOf Knot :: [Factor Type] #

type UnitFactorsOf Knot Source # 
Instance details

Defined in Data.Units.Imperial.Misc

type DimOfUnit Knot Source # 
Instance details

Defined in Data.Units.Imperial.Misc

type BaseUnit Knot Source # 
Instance details

Defined in Data.Units.Imperial.Misc

Area

data Acre Source #

Constructors

Acre 

Instances

Instances details
Show Acre Source # 
Instance details

Defined in Data.Units.Imperial.Area

Methods

showsPrec :: Int -> Acre -> ShowS #

show :: Acre -> String #

showList :: [Acre] -> ShowS #

Unit Acre Source # 
Instance details

Defined in Data.Units.Imperial.Area

Associated Types

type BaseUnit Acre #

type DimOfUnit Acre #

type UnitFactorsOf Acre :: [Factor Type] #

type UnitFactorsOf Acre Source # 
Instance details

Defined in Data.Units.Imperial.Area

type DimOfUnit Acre Source # 
Instance details

Defined in Data.Units.Imperial.Area

type BaseUnit Acre Source # 
Instance details

Defined in Data.Units.Imperial.Area

Volume

data Pint Source #

Constructors

Pint 

Instances

Instances details
Show Pint Source # 
Instance details

Defined in Data.Units.Imperial.Volume

Methods

showsPrec :: Int -> Pint -> ShowS #

show :: Pint -> String #

showList :: [Pint] -> ShowS #

Unit Pint Source # 
Instance details

Defined in Data.Units.Imperial.Volume

Associated Types

type BaseUnit Pint #

type DimOfUnit Pint #

type UnitFactorsOf Pint :: [Factor Type] #

type UnitFactorsOf Pint Source # 
Instance details

Defined in Data.Units.Imperial.Volume

type DimOfUnit Pint Source # 
Instance details

Defined in Data.Units.Imperial.Volume

type BaseUnit Pint Source # 
Instance details

Defined in Data.Units.Imperial.Volume

data Quart Source #

Constructors

Quart 

Instances

Instances details
Show Quart Source # 
Instance details

Defined in Data.Units.Imperial.Volume

Methods

showsPrec :: Int -> Quart -> ShowS #

show :: Quart -> String #

showList :: [Quart] -> ShowS #

Unit Quart Source # 
Instance details

Defined in Data.Units.Imperial.Volume

Associated Types

type BaseUnit Quart #

type DimOfUnit Quart #

type UnitFactorsOf Quart :: [Factor Type] #

type UnitFactorsOf Quart Source # 
Instance details

Defined in Data.Units.Imperial.Volume

type DimOfUnit Quart Source # 
Instance details

Defined in Data.Units.Imperial.Volume

type BaseUnit Quart Source # 
Instance details

Defined in Data.Units.Imperial.Volume

data Gallon Source #

Constructors

Gallon 

Instances

Instances details
Show Gallon Source # 
Instance details

Defined in Data.Units.Imperial.Volume

Unit Gallon Source # 
Instance details

Defined in Data.Units.Imperial.Volume

Associated Types

type BaseUnit Gallon #

type DimOfUnit Gallon #

type UnitFactorsOf Gallon :: [Factor Type] #

type UnitFactorsOf Gallon Source # 
Instance details

Defined in Data.Units.Imperial.Volume

type DimOfUnit Gallon Source # 
Instance details

Defined in Data.Units.Imperial.Volume

type BaseUnit Gallon Source # 
Instance details

Defined in Data.Units.Imperial.Volume

Mass

These are all in the avoirdupois system

data Ounce Source #

Constructors

Ounce 

Instances

Instances details
Show Ounce Source # 
Instance details

Defined in Data.Units.Imperial.Weight

Methods

showsPrec :: Int -> Ounce -> ShowS #

show :: Ounce -> String #

showList :: [Ounce] -> ShowS #

Unit Ounce Source # 
Instance details

Defined in Data.Units.Imperial.Weight

Associated Types

type BaseUnit Ounce #

type DimOfUnit Ounce #

type UnitFactorsOf Ounce :: [Factor Type] #

type UnitFactorsOf Ounce Source # 
Instance details

Defined in Data.Units.Imperial.Weight

type DimOfUnit Ounce Source # 
Instance details

Defined in Data.Units.Imperial.Weight

type BaseUnit Ounce Source # 
Instance details

Defined in Data.Units.Imperial.Weight

data Pound Source #

Constructors

Pound 

Instances

Instances details
Show Pound Source # 
Instance details

Defined in Data.Units.Imperial.Weight

Methods

showsPrec :: Int -> Pound -> ShowS #

show :: Pound -> String #

showList :: [Pound] -> ShowS #

Unit Pound Source # 
Instance details

Defined in Data.Units.Imperial.Weight

Associated Types

type BaseUnit Pound #

type DimOfUnit Pound #

type UnitFactorsOf Pound :: [Factor Type] #

type UnitFactorsOf Pound Source # 
Instance details

Defined in Data.Units.Imperial.Weight

type DimOfUnit Pound Source # 
Instance details

Defined in Data.Units.Imperial.Weight

type BaseUnit Pound Source # 
Instance details

Defined in Data.Units.Imperial.Weight

data Stone Source #

Constructors

Stone 

Instances

Instances details
Show Stone Source # 
Instance details

Defined in Data.Units.Imperial.Weight

Methods

showsPrec :: Int -> Stone -> ShowS #

show :: Stone -> String #

showList :: [Stone] -> ShowS #

Unit Stone Source # 
Instance details

Defined in Data.Units.Imperial.Weight

Associated Types

type BaseUnit Stone #

type DimOfUnit Stone #

type UnitFactorsOf Stone :: [Factor Type] #

type UnitFactorsOf Stone Source # 
Instance details

Defined in Data.Units.Imperial.Weight

type DimOfUnit Stone Source # 
Instance details

Defined in Data.Units.Imperial.Weight

type BaseUnit Stone Source # 
Instance details

Defined in Data.Units.Imperial.Weight

data Ton Source #

Constructors

Ton 

Instances

Instances details
Show Ton Source # 
Instance details

Defined in Data.Units.Imperial.Weight

Methods

showsPrec :: Int -> Ton -> ShowS #

show :: Ton -> String #

showList :: [Ton] -> ShowS #

Unit Ton Source # 
Instance details

Defined in Data.Units.Imperial.Weight

Associated Types

type BaseUnit Ton #

type DimOfUnit Ton #

type UnitFactorsOf Ton :: [Factor Type] #

type UnitFactorsOf Ton Source # 
Instance details

Defined in Data.Units.Imperial.Weight

type DimOfUnit Ton Source # 
Instance details

Defined in Data.Units.Imperial.Weight

type BaseUnit Ton Source # 
Instance details

Defined in Data.Units.Imperial.Weight

Pressure

Energy

data Therm Source #

Constructors

Therm 

Instances

Instances details
Show Therm Source # 
Instance details

Defined in Data.Units.Imperial.Misc

Methods

showsPrec :: Int -> Therm -> ShowS #

show :: Therm -> String #

showList :: [Therm] -> ShowS #

Unit Therm Source # 
Instance details

Defined in Data.Units.Imperial.Misc

Associated Types

type BaseUnit Therm #

type DimOfUnit Therm #

type UnitFactorsOf Therm :: [Factor Type] #

type UnitFactorsOf Therm Source # 
Instance details

Defined in Data.Units.Imperial.Misc

type DimOfUnit Therm Source # 
Instance details

Defined in Data.Units.Imperial.Misc

type BaseUnit Therm Source # 
Instance details

Defined in Data.Units.Imperial.Misc

Power

Temperature