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.Misc

Description

This module defines American customary units that don't fit into other categories.

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 Foot Source #

Constructors

Foot 
Instances
Show Foot Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Foot -> ShowS #

show :: Foot -> String #

showList :: [Foot] -> ShowS #

Unit Foot Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Foot :: Type #

type DimOfUnit Foot :: Type #

type UnitFactorsOf Foot :: [Factor Type] #

type UnitFactorsOf Foot Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Foot Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Foot Source # 
Instance details

Defined in Data.Units.US.Misc

data Inch Source #

Constructors

Inch 
Instances
Show Inch Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Inch -> ShowS #

show :: Inch -> String #

showList :: [Inch] -> ShowS #

Unit Inch Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Inch :: Type #

type DimOfUnit Inch :: Type #

type UnitFactorsOf Inch :: [Factor Type] #

type UnitFactorsOf Inch Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Inch Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Inch Source # 
Instance details

Defined in Data.Units.US.Misc

data Yard Source #

Constructors

Yard 
Instances
Show Yard Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Yard -> ShowS #

show :: Yard -> String #

showList :: [Yard] -> ShowS #

Unit Yard Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Yard :: Type #

type DimOfUnit Yard :: Type #

type UnitFactorsOf Yard :: [Factor Type] #

type UnitFactorsOf Yard Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Yard Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Yard Source # 
Instance details

Defined in Data.Units.US.Misc

data Mile Source #

Constructors

Mile 
Instances
Show Mile Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Mile -> ShowS #

show :: Mile -> String #

showList :: [Mile] -> ShowS #

Unit Mile Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Mile :: Type #

type DimOfUnit Mile :: Type #

type UnitFactorsOf Mile :: [Factor Type] #

type UnitFactorsOf Mile Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Mile Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Mile Source # 
Instance details

Defined in Data.Units.US.Misc

data Hand Source #

Constructors

Hand 
Instances
Show Hand Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Hand -> ShowS #

show :: Hand -> String #

showList :: [Hand] -> ShowS #

Unit Hand Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Hand :: Type #

type DimOfUnit Hand :: Type #

type UnitFactorsOf Hand :: [Factor Type] #

type UnitFactorsOf Hand Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Hand Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Hand Source # 
Instance details

Defined in Data.Units.US.Misc

data Mil Source #

Constructors

Mil 
Instances
Show Mil Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Mil -> ShowS #

show :: Mil -> String #

showList :: [Mil] -> ShowS #

Unit Mil Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Mil :: Type #

type DimOfUnit Mil :: Type #

type UnitFactorsOf Mil :: [Factor Type] #

type UnitFactorsOf Mil Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Mil Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Mil Source # 
Instance details

Defined in Data.Units.US.Misc

data Point Source #

Constructors

Point 
Instances
Show Point Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Point -> ShowS #

show :: Point -> String #

showList :: [Point] -> ShowS #

Unit Point Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Point :: Type #

type DimOfUnit Point :: Type #

type UnitFactorsOf Point :: [Factor Type] #

type UnitFactorsOf Point Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Point Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Point Source # 
Instance details

Defined in Data.Units.US.Misc

data Pica Source #

Constructors

Pica 
Instances
Show Pica Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Pica -> ShowS #

show :: Pica -> String #

showList :: [Pica] -> ShowS #

Unit Pica Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Pica :: Type #

type DimOfUnit Pica :: Type #

type UnitFactorsOf Pica :: [Factor Type] #

type UnitFactorsOf Pica Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Pica Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Pica Source # 
Instance details

Defined in Data.Units.US.Misc

data Fathom Source #

Constructors

Fathom 
Instances
Show Fathom Source # 
Instance details

Defined in Data.Units.US.Misc

Unit Fathom Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Fathom :: Type #

type DimOfUnit Fathom :: Type #

type UnitFactorsOf Fathom :: [Factor Type] #

type UnitFactorsOf Fathom Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Fathom Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Fathom Source # 
Instance details

Defined in Data.Units.US.Misc

data Cable Source #

Constructors

Cable 
Instances
Show Cable Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Cable -> ShowS #

show :: Cable -> String #

showList :: [Cable] -> ShowS #

Unit Cable Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Cable :: Type #

type DimOfUnit Cable :: Type #

type UnitFactorsOf Cable :: [Factor Type] #

type UnitFactorsOf Cable Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Cable Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Cable Source # 
Instance details

Defined in Data.Units.US.Misc

data Knot Source #

Constructors

Knot 
Instances
Show Knot Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Knot -> ShowS #

show :: Knot -> String #

showList :: [Knot] -> ShowS #

Unit Knot Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Knot :: Type #

type DimOfUnit Knot :: Type #

type UnitFactorsOf Knot :: [Factor Type] #

type UnitFactorsOf Knot Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Knot Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Knot Source # 
Instance details

Defined in Data.Units.US.Misc

data Bar Source #

Constructors

Bar 
Instances
Show Bar Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Bar -> ShowS #

show :: Bar -> String #

showList :: [Bar] -> ShowS #

Unit Bar Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Bar :: Type #

type DimOfUnit Bar :: Type #

type UnitFactorsOf Bar :: [Factor Type] #

type UnitFactorsOf Bar Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Bar Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Bar Source # 
Instance details

Defined in Data.Units.US.Misc

data Torr Source #

Constructors

Torr 
Instances
Show Torr Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Torr -> ShowS #

show :: Torr -> String #

showList :: [Torr] -> ShowS #

Unit Torr Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Torr :: Type #

type DimOfUnit Torr :: Type #

type UnitFactorsOf Torr :: [Factor Type] #

type UnitFactorsOf Torr Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Torr Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Torr Source # 
Instance details

Defined in Data.Units.US.Misc

data Calorie Source #

Constructors

Calorie 
Instances
Show Calorie Source # 
Instance details

Defined in Data.Units.US.Misc

Unit Calorie Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Calorie :: Type #

type DimOfUnit Calorie :: Type #

type UnitFactorsOf Calorie :: [Factor Type] #

type UnitFactorsOf Calorie Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Calorie Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Calorie Source # 
Instance details

Defined in Data.Units.US.Misc

data Therm Source #

Constructors

Therm 
Instances
Show Therm Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Therm -> ShowS #

show :: Therm -> String #

showList :: [Therm] -> ShowS #

Unit Therm Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Therm :: Type #

type DimOfUnit Therm :: Type #

type UnitFactorsOf Therm :: [Factor Type] #

type UnitFactorsOf Therm Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Therm Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Therm Source # 
Instance details

Defined in Data.Units.US.Misc

data Btu Source #

Constructors

Btu 
Instances
Show Btu Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Btu -> ShowS #

show :: Btu -> String #

showList :: [Btu] -> ShowS #

Unit Btu Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Btu :: Type #

type DimOfUnit Btu :: Type #

type UnitFactorsOf Btu :: [Factor Type] #

type UnitFactorsOf Btu Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Btu Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Btu Source # 
Instance details

Defined in Data.Units.US.Misc

data Rankine Source #

Constructors

Rankine 
Instances
Show Rankine Source # 
Instance details

Defined in Data.Units.US.Misc

Unit Rankine Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Rankine :: Type #

type DimOfUnit Rankine :: Type #

type UnitFactorsOf Rankine :: [Factor Type] #

type UnitFactorsOf Rankine Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Rankine Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Rankine Source # 
Instance details

Defined in Data.Units.US.Misc

data Slug Source #

Constructors

Slug 
Instances
Show Slug Source # 
Instance details

Defined in Data.Units.US.Misc

Methods

showsPrec :: Int -> Slug -> ShowS #

show :: Slug -> String #

showList :: [Slug] -> ShowS #

Unit Slug Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Slug :: Type #

type DimOfUnit Slug :: Type #

type UnitFactorsOf Slug :: [Factor Type] #

type UnitFactorsOf Slug Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Slug Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Slug Source # 
Instance details

Defined in Data.Units.US.Misc

data Oersted Source #

Constructors

Oersted 
Instances
Show Oersted Source # 
Instance details

Defined in Data.Units.US.Misc

Unit Oersted Source # 
Instance details

Defined in Data.Units.US.Misc

Associated Types

type BaseUnit Oersted :: Type #

type DimOfUnit Oersted :: Type #

type UnitFactorsOf Oersted :: [Factor Type] #

type UnitFactorsOf Oersted Source # 
Instance details

Defined in Data.Units.US.Misc

type DimOfUnit Oersted Source # 
Instance details

Defined in Data.Units.US.Misc

type BaseUnit Oersted Source # 
Instance details

Defined in Data.Units.US.Misc

lengths :: [Name] Source #

Standard lengths: Foot, Inch, Yard, and Mile

data Maxwell Source #

Constructors

Maxwell 
Instances
Show Maxwell Source # 
Instance details

Defined in Data.Units.CGS

Unit Maxwell Source # 
Instance details

Defined in Data.Units.CGS

Associated Types

type BaseUnit Maxwell :: Type #

type DimOfUnit Maxwell :: Type #

type UnitFactorsOf Maxwell :: [Factor Type] #

type UnitFactorsOf Maxwell Source # 
Instance details

Defined in Data.Units.CGS

type DimOfUnit Maxwell Source # 
Instance details

Defined in Data.Units.CGS

type BaseUnit Maxwell Source # 
Instance details

Defined in Data.Units.CGS