Copyright | (C) 2013 Richard Eisenberg |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Richard Eisenberg (rae@cs.brynmawr.edu) |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Due to the <https://en.wikipedia.org/wiki/International_yard_and_pound International yard and pound agreement of 1959>, it so happens that Imperial and US customary units of length have the same base (the international yard at 0.9144 meters). However, if subdivisions are generally the same, Imperial units feature multiples of the yard that US customary ones generally don't (e.g. the Imperial furlong is defined by reference to the international yard, not the US survey one).
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
Documentation
Instances
Show Thou Source # | |
Unit Thou Source # | |
Defined in Data.Units.Imperial.Length conversionRatio :: Thou -> Rational # canonicalConvRatio :: Thou -> Rational | |
type UnitFactorsOf Thou Source # | |
Defined in Data.Units.Imperial.Length | |
type DimOfUnit Thou Source # | |
type BaseUnit Thou Source # | |
Defined in Data.Units.Imperial.Length |
Instances
Show Inch Source # | |
Unit Inch Source # | |
Defined in Data.Units.Imperial.Length conversionRatio :: Inch -> Rational # canonicalConvRatio :: Inch -> Rational | |
type UnitFactorsOf Inch Source # | |
Defined in Data.Units.Imperial.Length | |
type DimOfUnit Inch Source # | |
type BaseUnit Inch Source # | |
Defined in Data.Units.Imperial.Length |
Instances
Show Foot Source # | |
Unit Foot Source # | |
Defined in Data.Units.Imperial.Length conversionRatio :: Foot -> Rational # canonicalConvRatio :: Foot -> Rational | |
type UnitFactorsOf Foot Source # | |
Defined in Data.Units.Imperial.Length | |
type DimOfUnit Foot Source # | |
type BaseUnit Foot Source # | |
Defined in Data.Units.Imperial.Length |
Instances
Show Yard Source # | |
Unit Yard Source # | |
Defined in Data.Units.Imperial.Length conversionRatio :: Yard -> Rational # canonicalConvRatio :: Yard -> Rational | |
type UnitFactorsOf Yard Source # | |
Defined in Data.Units.Imperial.Length | |
type DimOfUnit Yard Source # | |
type BaseUnit Yard Source # | |
Defined in Data.Units.Imperial.Length |
Instances
Show Chain Source # | |
Unit Chain Source # | |
Defined in Data.Units.Imperial.Length conversionRatio :: Chain -> Rational # canonicalConvRatio :: Chain -> Rational | |
type UnitFactorsOf Chain Source # | |
Defined in Data.Units.Imperial.Length | |
type DimOfUnit Chain Source # | |
type BaseUnit Chain Source # | |
Defined in Data.Units.Imperial.Length |
Instances
Show Furlong Source # | |
Unit Furlong Source # | |
Defined in Data.Units.Imperial.Length conversionRatio :: Furlong -> Rational # | |
type UnitFactorsOf Furlong Source # | |
Defined in Data.Units.Imperial.Length type UnitFactorsOf Furlong = If (IsCanonical Furlong) '['F Furlong One] (UnitFactorsOf (BaseUnit Furlong)) | |
type DimOfUnit Furlong Source # | |
type BaseUnit Furlong Source # | |
Defined in Data.Units.Imperial.Length |
Instances
Show Mile Source # | |
Unit Mile Source # | |
Defined in Data.Units.Imperial.Length conversionRatio :: Mile -> Rational # canonicalConvRatio :: Mile -> Rational | |
type UnitFactorsOf Mile Source # | |
Defined in Data.Units.Imperial.Length | |
type DimOfUnit Mile Source # | |
type BaseUnit Mile Source # | |
Defined in Data.Units.Imperial.Length |
Instances
Show League Source # | |
Unit League Source # | |
Defined in Data.Units.Imperial.Length conversionRatio :: League -> Rational # canonicalConvRatio :: League -> Rational | |
type UnitFactorsOf League Source # | |
Defined in Data.Units.Imperial.Length type UnitFactorsOf League = If (IsCanonical League) '['F League One] (UnitFactorsOf (BaseUnit League)) | |
type DimOfUnit League Source # | |
type BaseUnit League Source # | |
Defined in Data.Units.Imperial.Length |
Instances
Show Hand Source # | |
Unit Hand Source # | |
Defined in Data.Units.Imperial.Length conversionRatio :: Hand -> Rational # canonicalConvRatio :: Hand -> Rational | |
type UnitFactorsOf Hand Source # | |
Defined in Data.Units.Imperial.Length | |
type DimOfUnit Hand Source # | |
type BaseUnit Hand Source # | |
Defined in Data.Units.Imperial.Length |