HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduledimensional-1.6.2Haskell2010

Numeric.Units.Dimensional.UnitNames

This module provides types and functions for manipulating unit names.

Please note that the details of the name representation may be less stable than the other APIs provided by this package, as new features using them are still being developed.

Contents
  1. Data Types
  2. Construction of Unit Names
  3. Standard Names
  4. Inspecting Prefixes
  5. Convenience Type Synonyms for Unit Name Transformations
  6. Forgetting Unwanted Phantom Types
Synopsis
  • Packagedimensional-1.6.2
  • Exports26
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceUnitNames.hs

Data Types

datadata UnitName (m :: Metricality) where

The name of a unit.

Instances4Eq, Show, NFData, HasInterchangeName
  • Eq (UnitName m)Defined in dimensional-1.6.2 · Numeric.Units.Dimensional.UnitNames.Internal
  • Show (UnitName m)Defined in dimensional-1.6.2 · Numeric.Units.Dimensional.UnitNames.Internal

    UnitNames are shown with non-breaking spaces.

  • NFData (UnitName m)Defined in dimensional-1.6.2 · Numeric.Units.Dimensional.UnitNames.Internal
  • HasInterchangeName (UnitName m)Defined in dimensional-1.6.2 · Numeric.Units.Dimensional.UnitNames.Internal
datadata NameAtom (m :: NameAtomType)

Represents the name of an atomic unit or prefix.

Instances7Eq, Data, Ord, Generic, NFData, HasInterchangeName, …
datadata Prefix

A metric prefix.

Instances7Eq, Data, Ord, Generic, NFData, HasInterchangeName, …
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

Construction of Unit Names

Standard Names

Inspecting Prefixes

Convenience Type Synonyms for Unit Name Transformations

Forgetting Unwanted Phantom Types