units-defs-2.2: Definitions for use with the units package

Copyright(C) 2013 Richard Eisenberg
LicenseBSD-style (see LICENSE)
MaintainerRichard Eisenberg (rae@cs.brynmawr.edu)
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

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

Documentation

data Ounce Source #

Constructors

Ounce 
Instances
Show Ounce Source # 
Instance details

Defined in Data.Units.US.Troy

Methods

showsPrec :: Int -> Ounce -> ShowS #

show :: Ounce -> String #

showList :: [Ounce] -> ShowS #

Unit Ounce Source # 
Instance details

Defined in Data.Units.US.Troy

Associated Types

type BaseUnit Ounce :: Type #

type DimOfUnit Ounce :: Type #

type UnitFactorsOf Ounce :: [Factor Type] #

type UnitFactorsOf Ounce Source # 
Instance details

Defined in Data.Units.US.Troy

type DimOfUnit Ounce Source # 
Instance details

Defined in Data.Units.US.Troy

type BaseUnit Ounce Source # 
Instance details

Defined in Data.Units.US.Troy

data Pound Source #

Constructors

Pound 
Instances
Show Pound Source # 
Instance details

Defined in Data.Units.US.Troy

Methods

showsPrec :: Int -> Pound -> ShowS #

show :: Pound -> String #

showList :: [Pound] -> ShowS #

Unit Pound Source # 
Instance details

Defined in Data.Units.US.Troy

Associated Types

type BaseUnit Pound :: Type #

type DimOfUnit Pound :: Type #

type UnitFactorsOf Pound :: [Factor Type] #

type UnitFactorsOf Pound Source # 
Instance details

Defined in Data.Units.US.Troy

type DimOfUnit Pound Source # 
Instance details

Defined in Data.Units.US.Troy

type BaseUnit Pound Source # 
Instance details

Defined in Data.Units.US.Troy

The avoirdupois grain is the same as the troy grain

data Grain Source #

Constructors

Grain 
Instances
Show Grain Source # 
Instance details

Defined in Data.Units.US.Avoirdupois

Methods

showsPrec :: Int -> Grain -> ShowS #

show :: Grain -> String #

showList :: [Grain] -> ShowS #

Unit Grain Source # 
Instance details

Defined in Data.Units.US.Avoirdupois

Associated Types

type BaseUnit Grain :: Type #

type DimOfUnit Grain :: Type #

type UnitFactorsOf Grain :: [Factor Type] #

type UnitFactorsOf Grain Source # 
Instance details

Defined in Data.Units.US.Avoirdupois

type DimOfUnit Grain Source # 
Instance details

Defined in Data.Units.US.Avoirdupois

type BaseUnit Grain Source # 
Instance details

Defined in Data.Units.US.Avoirdupois