HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulenumeric-prelude-0.4.4Haskell98

Number.OccasionallyScalarExpression

Physical expressions track the operations made on physical values so we are able to give detailed information on how to resolve unit violations.

  • 2 types
  • 7 values
  • Packagenumeric-prelude-0.4.4
  • Exports9
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceOccasionallyScalarExpression.hs
datadata T a v
#

A value of type T stores information on how to resolve unit violations. The main application of the module are certainly Number.Physical type instances but in principle it can also be applied to other occasionally scalar types.

Constructors

Instances11Eq, Ord, Show, C, …
  • (C a v, Show v) => C a (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
  • Eq v => Eq (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
  • Ord v => Ord (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
  • Show v => Show (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
  • C v => C (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
  • C v => C (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
  • C v => C (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
  • (C a, C v, Show v, C a v) => C (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
  • C v => C (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
  • C v => C (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
  • (C a, C v, Show v, C a v) => C (T a v)Defined in numeric-prelude-0.4.4 · Number.OccasionallyScalarExpression
valuelift :: (v -> v) -> T a v -> T a v
#