| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Numeric.Units.Dimensional.UnitNames.InterchangeNames
Synopsis
- data InterchangeNameAuthority
- data InterchangeName = InterchangeName {}
- class HasInterchangeName a where
- interchangeName :: a -> InterchangeName
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
data InterchangeName Source #
Constructors
| InterchangeName | |
Instances
| NFData InterchangeName Source # | |||||
Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames Methods rnf :: InterchangeName -> () Source # | |||||
| HasInterchangeName InterchangeName Source # | |||||
Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames Methods interchangeName :: InterchangeName -> InterchangeName Source # | |||||
| Data InterchangeName Source # | |||||
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 Source # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InterchangeName Source # toConstr :: InterchangeName -> Constr Source # dataTypeOf :: InterchangeName -> DataType Source # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c InterchangeName) Source # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InterchangeName) Source # gmapT :: (forall b. Data b => b -> b) -> InterchangeName -> InterchangeName Source # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InterchangeName -> r Source # gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InterchangeName -> r Source # gmapQ :: (forall d. Data d => d -> u) -> InterchangeName -> [u] Source # gmapQi :: Int -> (forall d. Data d => d -> u) -> InterchangeName -> u Source # gmapM :: Monad m => (forall d. Data d => d -> m d) -> InterchangeName -> m InterchangeName Source # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InterchangeName -> m InterchangeName Source # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InterchangeName -> m InterchangeName Source # | |||||
| Generic InterchangeName Source # | |||||
Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames Associated Types
Methods from :: InterchangeName -> Rep InterchangeName x Source # to :: Rep InterchangeName x -> InterchangeName Source # | |||||
| Show InterchangeName Source # | |||||
| Eq InterchangeName Source # | |||||
Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames Methods (==) :: InterchangeName -> InterchangeName -> Bool Source # (/=) :: InterchangeName -> InterchangeName -> Bool Source # | |||||
| Ord InterchangeName Source # | |||||
Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames Methods compare :: InterchangeName -> InterchangeName -> Ordering Source # (<) :: InterchangeName -> InterchangeName -> Bool Source # (<=) :: InterchangeName -> InterchangeName -> Bool Source # (>) :: InterchangeName -> InterchangeName -> Bool Source # (>=) :: InterchangeName -> InterchangeName -> Bool Source # max :: InterchangeName -> InterchangeName -> InterchangeName Source # min :: InterchangeName -> InterchangeName -> InterchangeName Source # | |||||
| type Rep InterchangeName Source # | |||||
Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames type Rep InterchangeName = D1 ('MetaData "InterchangeName" "Numeric.Units.Dimensional.UnitNames.InterchangeNames" "dimensional-1.6.1-Dgz8nIXMP4P33G2QTOxAKW" '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.
Methods
interchangeName :: a -> InterchangeName Source #
Instances
| HasInterchangeName AnyUnit Source # | |
Defined in Numeric.Units.Dimensional.Dynamic Methods | |
| HasInterchangeName InterchangeName Source # | |
Defined in Numeric.Units.Dimensional.UnitNames.InterchangeNames Methods interchangeName :: InterchangeName -> InterchangeName Source # | |
| HasInterchangeName Prefix Source # | |
Defined in Numeric.Units.Dimensional.UnitNames.Internal Methods | |
| HasInterchangeName (NameAtom m) Source # | |
Defined in Numeric.Units.Dimensional.UnitNames.Internal Methods interchangeName :: NameAtom m -> InterchangeName Source # | |
| HasInterchangeName (UnitName m) Source # | |
Defined in Numeric.Units.Dimensional.UnitNames.Internal Methods interchangeName :: UnitName m -> InterchangeName Source # | |
| HasInterchangeName (Unit m d a) Source # | |
Defined in Numeric.Units.Dimensional.Internal Methods interchangeName :: Unit m d a -> InterchangeName Source # | |