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

Moduledimensional-1.5Haskell2010

Numeric.Units.Dimensional.Variants

Provides a type level representation of Variants of dimensional values, which may be quantities or units.

  • 3 types
  • MonoLocalBinds
  • TypeFamilies
  • ConstraintKinds
  • DataKinds
  • DeriveDataTypeable
  • DeriveGeneric
  • KindSignatures
  • TypeOperators
  • ExplicitNamespaces
  • Packagedimensional-1.5
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceVariants.hs
datadata Variant
#

The kind of variants of dimensional values.

Constructors

Instances2Generic, Rep
datadata Metricality
#

Encodes whether a unit is a metric unit, that is, whether it can be combined with a metric prefix to form a related unit.

Constructors

  • Metric

    Capable of receiving a metric prefix.

  • NonMetric

    Incapable of receiving a metric prefix.

Instances6Eq, Data, Ord, Generic, NFData, Rep
typetype CompatibleVariants (v1 :: Variant) (v2 :: Variant) = 'True ~ AreCompatible v1 v2
#

Two Variants are compatible when dimensional values of the first may be converted into the second merely by changing the representation of their values.