dimensional-1.5: Statically checked physical dimensions
Safe HaskellSafe-Inferred
LanguageHaskell2010

Numeric.Units.Dimensional.UnitNames.InterchangeNames

Synopsis

Documentation

data InterchangeNameAuthority Source #

Represents the authority which issued an interchange name for a unit.

Constructors

UCUM

The interchange name originated with the Unified Code for Units of Measure.

DimensionalLibrary

The interchange name originated with the dimensional library.

Custom

The interchange name originated with a user of the dimensional library.

Instances

Instances details
Eq InterchangeNameAuthority Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Data InterchangeNameAuthority Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InterchangeNameAuthority -> c InterchangeNameAuthority #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InterchangeNameAuthority #

toConstr :: InterchangeNameAuthority -> Constr #

dataTypeOf :: InterchangeNameAuthority -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c InterchangeNameAuthority) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InterchangeNameAuthority) #

gmapT :: (forall b. Data b => b -> b) -> InterchangeNameAuthority -> InterchangeNameAuthority #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InterchangeNameAuthority -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InterchangeNameAuthority -> r #

gmapQ :: (forall d. Data d => d -> u) -> InterchangeNameAuthority -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> InterchangeNameAuthority -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> InterchangeNameAuthority -> m InterchangeNameAuthority #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InterchangeNameAuthority -> m InterchangeNameAuthority #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InterchangeNameAuthority -> m InterchangeNameAuthority #

Ord InterchangeNameAuthority Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Show InterchangeNameAuthority Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Generic InterchangeNameAuthority Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Associated Types

type Rep InterchangeNameAuthority :: Type -> Type #

NFData InterchangeNameAuthority Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

type Rep InterchangeNameAuthority Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

type Rep InterchangeNameAuthority = D1 ('MetaData "InterchangeNameAuthority" "Numeric.Units.Dimensional.UnitNames.InterchangeNames" "dimensional-1.5-HMi5nnDJYaz1w5t6f148nq" 'False) (C1 ('MetaCons "UCUM" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "DimensionalLibrary" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Custom" 'PrefixI 'False) (U1 :: Type -> Type)))

data InterchangeName Source #

Instances

Instances details
Eq InterchangeName Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Data InterchangeName Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InterchangeName -> c InterchangeName #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InterchangeName #

toConstr :: InterchangeName -> Constr #

dataTypeOf :: InterchangeName -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c InterchangeName) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InterchangeName) #

gmapT :: (forall b. Data b => b -> b) -> InterchangeName -> InterchangeName #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InterchangeName -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InterchangeName -> r #

gmapQ :: (forall d. Data d => d -> u) -> InterchangeName -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> InterchangeName -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> InterchangeName -> m InterchangeName #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InterchangeName -> m InterchangeName #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InterchangeName -> m InterchangeName #

Ord InterchangeName Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Show InterchangeName Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Generic InterchangeName Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Associated Types

type Rep InterchangeName :: Type -> Type #

NFData InterchangeName Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

Methods

rnf :: InterchangeName -> () #

HasInterchangeName InterchangeName Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

type Rep InterchangeName Source # 
Instance details

Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames

type Rep InterchangeName = D1 ('MetaData "InterchangeName" "Numeric.Units.Dimensional.UnitNames.InterchangeNames" "dimensional-1.5-HMi5nnDJYaz1w5t6f148nq" 'False) (C1 ('MetaCons "InterchangeName" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: (S1 ('MetaSel ('Just "authority") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 InterchangeNameAuthority) :*: S1 ('MetaSel ('Just "isAtomic") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool))))

class HasInterchangeName a where Source #

Determines the authority which issued the interchange name of a unit or unit name. For composite units, this is the least-authoritative interchange name of any constituent name.

Note that the least-authoritative authority is the one sorted as greatest by the Ord instance of InterchangeNameAuthority.