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 |
There's only one set of volume units in the Imperial system, hence the one ´Volume´ module to the two (´Liquid´ and ´DryVolume´) in the US system.
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
- data Gallon = Gallon
- data Quart = Quart
- data Pint = Pint
- data Gill = Gill
- data FluidOunce = FluidOunce
- data Cran = Cran
- data Bushel = Bushel
- commonVolumeMeasures :: [Name]
- otherVolumeMeasures :: [Name]
Documentation
Instances
Show Gallon Source # | |
Unit Gallon Source # | |
Defined in Data.Units.Imperial.Volume conversionRatio :: Gallon -> Rational # canonicalConvRatio :: Gallon -> Rational | |
type UnitFactorsOf Gallon Source # | |
Defined in Data.Units.Imperial.Volume type UnitFactorsOf Gallon = If (IsCanonical Gallon) '['F Gallon One] (UnitFactorsOf (BaseUnit Gallon)) | |
type DimOfUnit Gallon Source # | |
type BaseUnit Gallon Source # | |
Defined in Data.Units.Imperial.Volume |
Instances
Show Quart Source # | |
Unit Quart Source # | |
Defined in Data.Units.Imperial.Volume conversionRatio :: Quart -> Rational # canonicalConvRatio :: Quart -> Rational | |
type UnitFactorsOf Quart Source # | |
Defined in Data.Units.Imperial.Volume | |
type DimOfUnit Quart Source # | |
type BaseUnit Quart Source # | |
Defined in Data.Units.Imperial.Volume |
Instances
Show Pint Source # | |
Unit Pint Source # | |
Defined in Data.Units.Imperial.Volume conversionRatio :: Pint -> Rational # canonicalConvRatio :: Pint -> Rational | |
type UnitFactorsOf Pint Source # | |
Defined in Data.Units.Imperial.Volume | |
type DimOfUnit Pint Source # | |
type BaseUnit Pint Source # | |
Defined in Data.Units.Imperial.Volume |
Instances
Show Gill Source # | |
Unit Gill Source # | |
Defined in Data.Units.Imperial.Volume conversionRatio :: Gill -> Rational # canonicalConvRatio :: Gill -> Rational | |
type UnitFactorsOf Gill Source # | |
Defined in Data.Units.Imperial.Volume | |
type DimOfUnit Gill Source # | |
type BaseUnit Gill Source # | |
Defined in Data.Units.Imperial.Volume |
data FluidOunce Source #
Instances
Show FluidOunce Source # | |
Defined in Data.Units.Imperial.Volume showsPrec :: Int -> FluidOunce -> ShowS # show :: FluidOunce -> String # showList :: [FluidOunce] -> ShowS # | |
Unit FluidOunce Source # | |
Defined in Data.Units.Imperial.Volume type BaseUnit FluidOunce # type DimOfUnit FluidOunce # type UnitFactorsOf FluidOunce :: [Factor Type] # | |
type UnitFactorsOf FluidOunce Source # | |
Defined in Data.Units.Imperial.Volume type UnitFactorsOf FluidOunce = If (IsCanonical FluidOunce) '['F FluidOunce One] (UnitFactorsOf (BaseUnit FluidOunce)) | |
type DimOfUnit FluidOunce Source # | |
Defined in Data.Units.Imperial.Volume | |
type BaseUnit FluidOunce Source # | |
Defined in Data.Units.Imperial.Volume |
Instances
Show Cran Source # | |
Unit Cran Source # | |
Defined in Data.Units.Imperial.Volume conversionRatio :: Cran -> Rational # canonicalConvRatio :: Cran -> Rational | |
type UnitFactorsOf Cran Source # | |
Defined in Data.Units.Imperial.Volume | |
type DimOfUnit Cran Source # | |
type BaseUnit Cran Source # | |
Defined in Data.Units.Imperial.Volume |
Instances
Show Bushel Source # | |
Unit Bushel Source # | |
Defined in Data.Units.Imperial.Volume conversionRatio :: Bushel -> Rational # canonicalConvRatio :: Bushel -> Rational | |
type UnitFactorsOf Bushel Source # | |
Defined in Data.Units.Imperial.Volume type UnitFactorsOf Bushel = If (IsCanonical Bushel) '['F Bushel One] (UnitFactorsOf (BaseUnit Bushel)) | |
type DimOfUnit Bushel Source # | |
type BaseUnit Bushel Source # | |
Defined in Data.Units.Imperial.Volume |
commonVolumeMeasures :: [Name] Source #
Includes FluidOunce
, Pint
, Gallon