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.Troy
Description
This module defines troy measures of mass. The troy system is most often used when measuring precious metals.
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 Pennyweight = Pennyweight
- data Ounce = Ounce
- data Pound = Pound
- troyMassMeasures :: [Name]
- data Grain = Grain
Documentation
data Pennyweight Source #
Constructors
Pennyweight |
Instances
Show Pennyweight Source # | |
Defined in Data.Units.US.Troy Methods showsPrec :: Int -> Pennyweight -> ShowS # show :: Pennyweight -> String # showList :: [Pennyweight] -> ShowS # | |
Unit Pennyweight Source # | |
Defined in Data.Units.US.Troy Associated Types type BaseUnit Pennyweight # type DimOfUnit Pennyweight # type UnitFactorsOf Pennyweight :: [Factor Type] # | |
type UnitFactorsOf Pennyweight Source # | |
Defined in Data.Units.US.Troy type UnitFactorsOf Pennyweight = If (IsCanonical Pennyweight) '['F Pennyweight One] (UnitFactorsOf (BaseUnit Pennyweight)) | |
type DimOfUnit Pennyweight Source # | |
Defined in Data.Units.US.Troy | |
type BaseUnit Pennyweight Source # | |
Defined in Data.Units.US.Troy |
Constructors
Ounce |
Constructors
Pound |
troyMassMeasures :: [Name] Source #
Includes Grain
, Pennyweight
, Ounce
, and Pound
The avoirdupois grain is the same as the troy grain
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 |