HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduledimensional-1.6.2Haskell2010

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.6.2
  • 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.