Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.GS1.DWhat
- data LabelEPC
- newtype ParentLabel = ParentLabel {}
- newtype InputEPC = InputEPC {}
- newtype OutputEPC = OutputEPC {}
- data ObjectDWhat = ObjectDWhat {
- _objAction :: Action
- _objEpcList :: [LabelEPC]
- data AggregationDWhat = AggregationDWhat {}
- data TransactionDWhat = TransactionDWhat {}
- data TransformationDWhat = TransformationDWhat {}
- data DWhat
- readLabelEPC :: Maybe Quantity -> Text -> Either ParseFailure LabelEPC
- urn2LabelEPC :: Text -> Either ParseFailure LabelEPC
Documentation
newtype ParentLabel Source #
Constructors
ParentLabel | |
Fields |
Constructors
InputEPC | |
Fields |
Constructors
OutputEPC | |
Fields |
data ObjectDWhat Source #
Constructors
ObjectDWhat | |
Fields
|
Instances
data AggregationDWhat Source #
Constructors
AggregationDWhat | |
Fields |
data TransactionDWhat Source #
Constructors
TransactionDWhat | |
data TransformationDWhat Source #
Constructors
TransformationDWhat | |
The What dimension specifies what physical or digital objects participated in the event
readLabelEPC :: Maybe Quantity -> Text -> Either ParseFailure LabelEPC Source #
Parses an EPC URN into a LabelEPC. As no quantity information is provided in a URN, Maybe Quantity is provided so ClassLabel EPCs can be instantiated with it.
urn2LabelEPC :: Text -> Either ParseFailure LabelEPC Source #
Given an EPC URN, return a LabelEPC. As no quantity information is provided in the URN, the quantity field in ClassLabelEPC is set to Nothing. Use this when you do not need Quantity information