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 |
Data.Units.US.Avoirdupois
Description
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
Constructors
Pound |
Instances
Show Pound Source # | |
Unit Pound Source # | |
Defined in Data.Units.US.Avoirdupois Associated Types type UnitFactorsOf Pound :: [Factor Type] # | |
type UnitFactorsOf Pound Source # | |
Defined in Data.Units.US.Avoirdupois | |
type DimOfUnit Pound Source # | |
type BaseUnit Pound Source # | |
Defined in Data.Units.US.Avoirdupois |
Constructors
Grain |
Instances
Show Grain Source # | |
Unit Grain Source # | |
Defined in Data.Units.US.Avoirdupois Associated Types type UnitFactorsOf Grain :: [Factor Type] # | |
type UnitFactorsOf Grain Source # | |
Defined in Data.Units.US.Avoirdupois | |
type DimOfUnit Grain Source # | |
type BaseUnit Grain Source # | |
Defined in Data.Units.US.Avoirdupois |
Constructors
Dram |
Constructors
Ounce |
Instances
Show Ounce Source # | |
Unit Ounce Source # | |
Defined in Data.Units.US.Avoirdupois Associated Types type UnitFactorsOf Ounce :: [Factor Type] # | |
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 #
Constructors
Hundredweight |
Instances
Show Hundredweight Source # | |
Defined in Data.Units.US.Avoirdupois Methods showsPrec :: Int -> Hundredweight -> ShowS # show :: Hundredweight -> String # showList :: [Hundredweight] -> ShowS # | |
Unit Hundredweight Source # | |
Defined in Data.Units.US.Avoirdupois Associated Types type BaseUnit Hundredweight # type DimOfUnit Hundredweight # type UnitFactorsOf Hundredweight :: [Factor Type] # Methods | |
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 #
Constructors
LongHundredweight |
Instances
Show LongHundredweight Source # | |
Defined in Data.Units.US.Avoirdupois Methods showsPrec :: Int -> LongHundredweight -> ShowS # show :: LongHundredweight -> String # showList :: [LongHundredweight] -> ShowS # | |
Unit LongHundredweight Source # | |
Defined in Data.Units.US.Avoirdupois Associated Types type BaseUnit LongHundredweight # type DimOfUnit LongHundredweight # type UnitFactorsOf LongHundredweight :: [Factor Type] # Methods | |
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 |
Constructors
Ton |
Constructors
LongTon |
Instances
Show LongTon Source # | |
Unit LongTon Source # | |
Defined in Data.Units.US.Avoirdupois Associated Types type UnitFactorsOf LongTon :: [Factor Type] # | |
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