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 |
This module defines avoirdupois measures of mass. The avoirdupois system is the one most commonly used in the US.
Included are all units mentioned here: http://en.wikipedia.org/wiki/United_States_customary_units Where possible, conversion rates have been independently verified at a US government website. However, Wikipedia's base is much better organized than any government resource immediately available. The US government references used are as follows: http://nist.gov/pml/wmd/metric/upload/SP1038.pdf http://nist.gov/pml/wmd/pubs/upload/appc-14-hb44-final.pdf
Synopsis
- data Pound = Pound
- data Grain = Grain
- data Dram = Dram
- data Ounce = Ounce
- data Hundredweight = Hundredweight
- data LongHundredweight = LongHundredweight
- data Ton = Ton
- data LongTon = LongTon
- commonMassMeasures :: [Name]
- otherMassMeasures :: [Name]
Documentation
Instances
Show Pound Source # | |
Unit Pound Source # | |
Defined in Data.Units.US.Avoirdupois conversionRatio :: Pound -> Rational # canonicalConvRatio :: Pound -> Rational | |
type UnitFactorsOf Pound Source # | |
Defined in Data.Units.US.Avoirdupois | |
type DimOfUnit Pound Source # | |
type BaseUnit Pound Source # | |
Defined in Data.Units.US.Avoirdupois |
Instances
Show Grain Source # | |
Unit Grain Source # | |
Defined in Data.Units.US.Avoirdupois conversionRatio :: Grain -> Rational # canonicalConvRatio :: Grain -> Rational | |
type UnitFactorsOf Grain Source # | |
Defined in Data.Units.US.Avoirdupois | |
type DimOfUnit Grain Source # | |
type BaseUnit Grain Source # | |
Defined in Data.Units.US.Avoirdupois |
Instances
Show Dram Source # | |
Unit Dram Source # | |
Defined in Data.Units.US.Avoirdupois conversionRatio :: Dram -> Rational # canonicalConvRatio :: Dram -> Rational | |
type UnitFactorsOf Dram Source # | |
Defined in Data.Units.US.Avoirdupois | |
type DimOfUnit Dram Source # | |
type BaseUnit Dram Source # | |
Defined in Data.Units.US.Avoirdupois |
Instances
Show Ounce Source # | |
Unit Ounce Source # | |
Defined in Data.Units.US.Avoirdupois conversionRatio :: Ounce -> Rational # canonicalConvRatio :: Ounce -> Rational | |
type UnitFactorsOf Ounce Source # | |
Defined in Data.Units.US.Avoirdupois | |
type DimOfUnit Ounce Source # | |
type BaseUnit Ounce Source # | |
Defined in Data.Units.US.Avoirdupois |
data Hundredweight Source #
Instances
Show Hundredweight Source # | |
Defined in Data.Units.US.Avoirdupois showsPrec :: Int -> Hundredweight -> ShowS # show :: Hundredweight -> String # showList :: [Hundredweight] -> ShowS # | |
Unit Hundredweight Source # | |
Defined in Data.Units.US.Avoirdupois type BaseUnit Hundredweight # type DimOfUnit Hundredweight # type UnitFactorsOf Hundredweight :: [Factor Type] # | |
type UnitFactorsOf Hundredweight Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf Hundredweight = If (IsCanonical Hundredweight) '['F Hundredweight One] (UnitFactorsOf (BaseUnit Hundredweight)) | |
type DimOfUnit Hundredweight Source # | |
Defined in Data.Units.US.Avoirdupois | |
type BaseUnit Hundredweight Source # | |
Defined in Data.Units.US.Avoirdupois |
data LongHundredweight Source #
Instances
Show LongHundredweight Source # | |
Defined in Data.Units.US.Avoirdupois showsPrec :: Int -> LongHundredweight -> ShowS # show :: LongHundredweight -> String # showList :: [LongHundredweight] -> ShowS # | |
Unit LongHundredweight Source # | |
Defined in Data.Units.US.Avoirdupois type BaseUnit LongHundredweight # type DimOfUnit LongHundredweight # type UnitFactorsOf LongHundredweight :: [Factor Type] # | |
type UnitFactorsOf LongHundredweight Source # | |
Defined in Data.Units.US.Avoirdupois | |
type DimOfUnit LongHundredweight Source # | |
Defined in Data.Units.US.Avoirdupois | |
type BaseUnit LongHundredweight Source # | |
Defined in Data.Units.US.Avoirdupois |
Instances
Show Ton Source # | |
Unit Ton Source # | |
Defined in Data.Units.US.Avoirdupois conversionRatio :: Ton -> Rational # canonicalConvRatio :: Ton -> Rational | |
type UnitFactorsOf Ton Source # | |
Defined in Data.Units.US.Avoirdupois | |
type DimOfUnit Ton Source # | |
type BaseUnit Ton Source # | |
Defined in Data.Units.US.Avoirdupois |
Instances
Show LongTon Source # | |
Unit LongTon Source # | |
Defined in Data.Units.US.Avoirdupois conversionRatio :: LongTon -> Rational # | |
type UnitFactorsOf LongTon Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf LongTon = If (IsCanonical LongTon) '['F LongTon One] (UnitFactorsOf (BaseUnit LongTon)) | |
type DimOfUnit LongTon Source # | |
type BaseUnit LongTon Source # | |
Defined in Data.Units.US.Avoirdupois |
otherMassMeasures :: [Name] Source #
Includes Grain
, Dram
, Hundredweight
, LongHundredweight
,
and LongTon