Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Everything related to units. See Math.Haskellator.Internal.TH.UnitGeneration for what is available here.
Synopsis
- data Unit
- = Multiplier
- | Meter
- | Kilometer
- | Decimeter
- | Centimeter
- | Millimeter
- | Micrometer
- | Nanometer
- | Second
- | Minute
- | Hour
- | Day
- | Millisecond
- | Microsecond
- | Nanosecond
- | Kilogram
- | Tonne
- | Gram
- | Milligram
- | Microgram
- | Nanogram
- nanogram :: Int -> [UnitExp]
- microgram :: Int -> [UnitExp]
- milligram :: Int -> [UnitExp]
- gram :: Int -> [UnitExp]
- tonne :: Int -> [UnitExp]
- kilogram :: Int -> [UnitExp]
- nanosecond :: Int -> [UnitExp]
- microsecond :: Int -> [UnitExp]
- millisecond :: Int -> [UnitExp]
- day :: Int -> [UnitExp]
- hour :: Int -> [UnitExp]
- minute :: Int -> [UnitExp]
- second :: Int -> [UnitExp]
- nanometer :: Int -> [UnitExp]
- micrometer :: Int -> [UnitExp]
- millimeter :: Int -> [UnitExp]
- centimeter :: Int -> [UnitExp]
- decimeter :: Int -> [UnitExp]
- kilometer :: Int -> [UnitExp]
- meter :: Int -> [UnitExp]
- multiplier :: Int -> [UnitExp]
- isNanogram :: Unit -> Bool
- isMicrogram :: Unit -> Bool
- isMilligram :: Unit -> Bool
- isGram :: Unit -> Bool
- isTonne :: Unit -> Bool
- isKilogram :: Unit -> Bool
- isNanosecond :: Unit -> Bool
- isMicrosecond :: Unit -> Bool
- isMillisecond :: Unit -> Bool
- isDay :: Unit -> Bool
- isHour :: Unit -> Bool
- isMinute :: Unit -> Bool
- isSecond :: Unit -> Bool
- isNanometer :: Unit -> Bool
- isMicrometer :: Unit -> Bool
- isMillimeter :: Unit -> Bool
- isCentimeter :: Unit -> Bool
- isDecimeter :: Unit -> Bool
- isKilometer :: Unit -> Bool
- isMeter :: Unit -> Bool
- isMultiplier :: Unit -> Bool
- convertTo :: Value UnitExp -> UnitExp -> Maybe (Value UnitExp)
- convertToBase :: Value UnitExp -> Value UnitExp
- unitFromString :: String -> Either String Unit
- data UnitExp = UnitExp {}
- type Dimension = [UnitExp]
- divide :: Dimension -> (Dimension, Dimension) -> (Dimension, Dimension)
Documentation
Multiplier | |
Meter | |
Kilometer | |
Decimeter | |
Centimeter | |
Millimeter | |
Micrometer | |
Nanometer | |
Second | |
Minute | |
Hour | |
Day | |
Millisecond | |
Microsecond | |
Nanosecond | |
Kilogram | |
Tonne | |
Gram | |
Milligram | |
Microgram | |
Nanogram |
nanosecond :: Int -> [UnitExp] Source #
microsecond :: Int -> [UnitExp] Source #
millisecond :: Int -> [UnitExp] Source #
micrometer :: Int -> [UnitExp] Source #
millimeter :: Int -> [UnitExp] Source #
centimeter :: Int -> [UnitExp] Source #
multiplier :: Int -> [UnitExp] Source #
isNanogram :: Unit -> Bool Source #
isMicrogram :: Unit -> Bool Source #
isMilligram :: Unit -> Bool Source #
isKilogram :: Unit -> Bool Source #
isNanosecond :: Unit -> Bool Source #
isMicrosecond :: Unit -> Bool Source #
isMillisecond :: Unit -> Bool Source #
isNanometer :: Unit -> Bool Source #
isMicrometer :: Unit -> Bool Source #
isMillimeter :: Unit -> Bool Source #
isCentimeter :: Unit -> Bool Source #
isDecimeter :: Unit -> Bool Source #
isKilometer :: Unit -> Bool Source #
isMultiplier :: Unit -> Bool Source #