Copyright | (C) 2013 Richard Eisenberg |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Richard Eisenberg (eir@cis.upenn.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.orgwiki/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.govpmlwmdmetricuploadSP1038.pdf http:/nist.govpmlwmdpubsuploadappc-14-hb44-final.pdf
- 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
data Hundredweight Source
Show Hundredweight | |
Unit Hundredweight | |
type UnitFactorsOf Hundredweight = If [Factor *] (IsCanonical Hundredweight) ((:) (Factor *) (F * Hundredweight One) ([] (Factor *))) (UnitFactorsOf (BaseUnit Hundredweight)) | |
type DimOfUnit Hundredweight = DimOfUnit (BaseUnit Hundredweight) | |
type BaseUnit Hundredweight = Pound |
data LongHundredweight Source
Show LongHundredweight | |
Unit LongHundredweight | |
type UnitFactorsOf LongHundredweight = If [Factor *] (IsCanonical LongHundredweight) ((:) (Factor *) (F * LongHundredweight One) ([] (Factor *))) (UnitFactorsOf (BaseUnit LongHundredweight)) | |
type DimOfUnit LongHundredweight = DimOfUnit (BaseUnit LongHundredweight) | |
type BaseUnit LongHundredweight = Pound |
otherMassMeasures :: [Name] Source
Includes Grain
, Dram
, Hundredweight
, LongHundredweight
,
and LongTon