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 # | |
type UnitFactorsOf Pound Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf Pound = If (IsCanonical Pound) (F Pound One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Pound)) | |
type DimOfUnit Pound Source # | |
type BaseUnit Pound Source # | |
Defined in Data.Units.US.Avoirdupois |
Instances
Show Grain Source # | |
Unit Grain Source # | |
type UnitFactorsOf Grain Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf Grain = If (IsCanonical Grain) (F Grain One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Grain)) | |
type DimOfUnit Grain Source # | |
type BaseUnit Grain Source # | |
Defined in Data.Units.US.Avoirdupois |
Instances
Show Dram Source # | |
Unit Dram Source # | |
type UnitFactorsOf Dram Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf Dram = If (IsCanonical Dram) (F Dram One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Dram)) | |
type DimOfUnit Dram Source # | |
type BaseUnit Dram Source # | |
Defined in Data.Units.US.Avoirdupois |
Instances
Show Ounce Source # | |
Unit Ounce Source # | |
type UnitFactorsOf Ounce Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf Ounce = If (IsCanonical Ounce) (F Ounce One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Ounce)) | |
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 # type DimOfUnit Hundredweight :: Type # type UnitFactorsOf Hundredweight :: [Factor Type] # | |
type UnitFactorsOf Hundredweight Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf Hundredweight = If (IsCanonical Hundredweight) (F Hundredweight One ': ([] :: [Factor Type])) (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 # type DimOfUnit LongHundredweight :: Type # type UnitFactorsOf LongHundredweight :: [Factor Type] # | |
type UnitFactorsOf LongHundredweight Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf LongHundredweight = If (IsCanonical LongHundredweight) (F LongHundredweight One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit LongHundredweight)) | |
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 # | |
type UnitFactorsOf Ton Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf Ton = If (IsCanonical Ton) (F Ton One ': ([] :: [Factor Type])) (UnitFactorsOf (BaseUnit Ton)) | |
type DimOfUnit Ton Source # | |
type BaseUnit Ton Source # | |
Defined in Data.Units.US.Avoirdupois |
Instances
Show LongTon Source # | |
Unit LongTon Source # | |
type UnitFactorsOf LongTon Source # | |
Defined in Data.Units.US.Avoirdupois type UnitFactorsOf LongTon = If (IsCanonical LongTon) (F LongTon One ': ([] :: [Factor Type])) (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