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.SI.Prefixes

Description

Defines prefixes from the SI standard at http://www.bipm.org/en/si/

Synopsis

Documentation

data Deca Source #

10^1

Constructors

Deca 
Instances
Show Deca Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Deca -> ShowS #

show :: Deca -> String #

showList :: [Deca] -> ShowS #

UnitPrefix Deca Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Deca -> f #

deca :: unit -> Deca :@ unit Source #

data Hecto Source #

10^2

Constructors

Hecto 
Instances
Show Hecto Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Hecto -> ShowS #

show :: Hecto -> String #

showList :: [Hecto] -> ShowS #

UnitPrefix Hecto Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Hecto -> f #

hecto :: unit -> Hecto :@ unit Source #

data Kilo Source #

10^3

Constructors

Kilo 
Instances
Show Kilo Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Kilo -> ShowS #

show :: Kilo -> String #

showList :: [Kilo] -> ShowS #

UnitPrefix Kilo Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Kilo -> f #

kilo :: unit -> Kilo :@ unit Source #

data Mega Source #

10^6

Constructors

Mega 
Instances
Show Mega Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Mega -> ShowS #

show :: Mega -> String #

showList :: [Mega] -> ShowS #

UnitPrefix Mega Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Mega -> f #

mega :: unit -> Mega :@ unit Source #

data Giga Source #

10^9

Constructors

Giga 
Instances
Show Giga Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Giga -> ShowS #

show :: Giga -> String #

showList :: [Giga] -> ShowS #

UnitPrefix Giga Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Giga -> f #

giga :: unit -> Giga :@ unit Source #

data Tera Source #

10^12

Constructors

Tera 
Instances
Show Tera Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Tera -> ShowS #

show :: Tera -> String #

showList :: [Tera] -> ShowS #

UnitPrefix Tera Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Tera -> f #

tera :: unit -> Tera :@ unit Source #

data Peta Source #

10^15

Constructors

Peta 
Instances
Show Peta Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Peta -> ShowS #

show :: Peta -> String #

showList :: [Peta] -> ShowS #

UnitPrefix Peta Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Peta -> f #

peta :: unit -> Peta :@ unit Source #

data Exa Source #

10^18

Constructors

Exa 
Instances
Show Exa Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Exa -> ShowS #

show :: Exa -> String #

showList :: [Exa] -> ShowS #

UnitPrefix Exa Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Exa -> f #

exa :: unit -> Exa :@ unit Source #

data Zetta Source #

10^21

Constructors

Zetta 
Instances
Show Zetta Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Zetta -> ShowS #

show :: Zetta -> String #

showList :: [Zetta] -> ShowS #

UnitPrefix Zetta Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Zetta -> f #

zetta :: unit -> Zetta :@ unit Source #

data Yotta Source #

10^24

Constructors

Yotta 
Instances
Show Yotta Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Yotta -> ShowS #

show :: Yotta -> String #

showList :: [Yotta] -> ShowS #

UnitPrefix Yotta Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Yotta -> f #

yotta :: unit -> Yotta :@ unit Source #

data Deci Source #

10^-1

Constructors

Deci 
Instances
Show Deci Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Deci -> ShowS #

show :: Deci -> String #

showList :: [Deci] -> ShowS #

UnitPrefix Deci Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Deci -> f #

deci :: unit -> Deci :@ unit Source #

data Centi Source #

10^-2

Constructors

Centi 
Instances
Show Centi Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Centi -> ShowS #

show :: Centi -> String #

showList :: [Centi] -> ShowS #

UnitPrefix Centi Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Centi -> f #

centi :: unit -> Centi :@ unit Source #

data Milli Source #

10^-3

Constructors

Milli 
Instances
Show Milli Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Milli -> ShowS #

show :: Milli -> String #

showList :: [Milli] -> ShowS #

UnitPrefix Milli Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Milli -> f #

milli :: unit -> Milli :@ unit Source #

data Micro Source #

10^-6

Constructors

Micro 
Instances
Show Micro Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Micro -> ShowS #

show :: Micro -> String #

showList :: [Micro] -> ShowS #

UnitPrefix Micro Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Micro -> f #

micro :: unit -> Micro :@ unit Source #

data Nano Source #

10^-9

Constructors

Nano 
Instances
Show Nano Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Nano -> ShowS #

show :: Nano -> String #

showList :: [Nano] -> ShowS #

UnitPrefix Nano Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Nano -> f #

nano :: unit -> Nano :@ unit Source #

data Pico Source #

10^-12

Constructors

Pico 
Instances
Show Pico Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Pico -> ShowS #

show :: Pico -> String #

showList :: [Pico] -> ShowS #

UnitPrefix Pico Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Pico -> f #

pico :: unit -> Pico :@ unit Source #

data Femto Source #

10^-15

Constructors

Femto 
Instances
Show Femto Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Femto -> ShowS #

show :: Femto -> String #

showList :: [Femto] -> ShowS #

UnitPrefix Femto Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Femto -> f #

femto :: unit -> Femto :@ unit Source #

data Atto Source #

10^-18

Constructors

Atto 
Instances
Show Atto Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Atto -> ShowS #

show :: Atto -> String #

showList :: [Atto] -> ShowS #

UnitPrefix Atto Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Atto -> f #

atto :: unit -> Atto :@ unit Source #

data Zepto Source #

10^-21

Constructors

Zepto 
Instances
Show Zepto Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Zepto -> ShowS #

show :: Zepto -> String #

showList :: [Zepto] -> ShowS #

UnitPrefix Zepto Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Zepto -> f #

zepto :: unit -> Zepto :@ unit Source #

data Yocto Source #

10^-24

Constructors

Yocto 
Instances
Show Yocto Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

showsPrec :: Int -> Yocto -> ShowS #

show :: Yocto -> String #

showList :: [Yocto] -> ShowS #

UnitPrefix Yocto Source # 
Instance details

Defined in Data.Units.SI.Prefixes

Methods

multiplier :: Fractional f => Yocto -> f #

yocto :: unit -> Yocto :@ unit Source #

siPrefixes :: [Name] Source #

A list of the names of all prefix types. Useful with makeQuasiQuoter.