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.Dimensions.TermLevel

This module defines physical dimensions expressed in terms of the SI base dimensions, including arithmetic.

  • Cpp
  • BangPatterns
  • DeriveDataTypeable
  • DeriveGeneric
  • DefaultSignatures
Contents
  1. Type
  2. Access to Dimension of Dimensional Values
  3. Dimension Arithmetic
  4. Synonyms for Base Dimensions
  5. Deconstruction
  6. Examining Dynamic Dimensions
Synopsis
  • Packagedimensional-1.6.2
  • Exports23
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceTermLevel.hs

Type

datadata Dimension'

A physical dimension, encoded as 7 integers, representing a factorization of the dimension into the 7 SI base dimensions. By convention they are stored in the same order as in the Dimension data kind.

Constructors

Instances11Eq, Data, Ord, Show, Generic, Semigroup, …

Access to Dimension of Dimensional Values

classclass HasDynamicDimension a => HasDimension a where

Dimensional values inhabit this class, which allows access to a term-level representation of their dimension.

Methods

Instances5HasDimension
classclass HasDynamicDimension a where

Dimensional values, or those that are only possibly dimensional, inhabit this class, which allows access to a term-level representation of their dimension.

Methods

Instances7HasDynamicDimension, …

The dimension of a dynamic value, which may not have any dimension at all.

Constructors

Instances8Eq, Data, Ord, Show, Generic, NFData, …

Dimension Arithmetic

Synonyms for Base Dimensions

Deconstruction

valueasList :: Dimension' -> [Int]

Converts a dimension to a list of 7 integers, representing the exponent associated with each of the 7 SI base dimensions in the standard order.

Examining Dynamic Dimensions