units-defs-2.2.1: 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.Parser

Description

Defines a quasi-quoting parser for unit expressions. Writing, say, [si| m/s^2 |] produces (Meter :/ (Second :^ sTwo)). A larger example is

ke :: Energy
ke = 5 % [si| N km |]  -- 5 Newton-kilometers

See Parser for more information about the syntax of these unit expressions.

Documentation