numeric-prelude-0.3.0.1: An experimental alternative hierarchy of numeric type classes

Portabilitymulti-parameter type classes (VectorSpace.hs)
Stabilityprovisional
Maintainernumericprelude@henning-thielemann.de
Safe HaskellSafe-Infered

Number.Physical.Read

Description

Convert a human readable string to a physical value.

Synopsis

Documentation

readsNat :: (Enum i, Ord i, Read v, C a v) => T i a -> Int -> ReadS (T i v)Source

readUnitPart :: (Ord i, C a) => Map String (T i a) -> String -> (T i a, String)Source

parseProduct :: Parser [(String, Integer)]Source

This function could also return the value, but a list of pairs (String, Integer) is easier for testing.

createDict :: T i a -> Map String (T i a)Source