GS1Combinators-0.1.0.0: Haskell combinator library of GS1 EPCIS standard

Safe HaskellNone
LanguageHaskell2010

Data.GS1.DWhat

Synopsis

Documentation

data LabelEPC Source #

Instances

Eq LabelEPC Source # 
Read LabelEPC Source # 
Show LabelEPC Source # 
Generic LabelEPC Source # 

Associated Types

type Rep LabelEPC :: * -> * #

Methods

from :: LabelEPC -> Rep LabelEPC x #

to :: Rep LabelEPC x -> LabelEPC #

ToJSON LabelEPC Source # 
FromJSON LabelEPC Source # 
ToSchema LabelEPC Source # 
type Rep LabelEPC Source # 
type Rep LabelEPC = D1 * (MetaData "LabelEPC" "Data.GS1.DWhat" "GS1Combinators-0.1.0.0-FVfrImOIwvU9RRRQI0uKtQ" False) ((:+:) * (C1 * (MetaCons "CL" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_clClassLabelEpc") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * ClassLabelEPC)) (S1 * (MetaSel (Just Symbol "_clQuantity") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Quantity))))) (C1 * (MetaCons "IL" PrefixI True) (S1 * (MetaSel (Just Symbol "_ilInstanceLabelEpc") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * InstanceLabelEPC))))

newtype ParentLabel Source #

Instances

Eq ParentLabel Source # 
Read ParentLabel Source # 
Show ParentLabel Source # 
Generic ParentLabel Source # 

Associated Types

type Rep ParentLabel :: * -> * #

ToJSON ParentLabel Source # 
FromJSON ParentLabel Source # 
ToSchema ParentLabel Source # 
URI ParentLabel Source # 
type Rep ParentLabel Source # 
type Rep ParentLabel = D1 * (MetaData "ParentLabel" "Data.GS1.DWhat" "GS1Combinators-0.1.0.0-FVfrImOIwvU9RRRQI0uKtQ" True) (C1 * (MetaCons "ParentLabel" PrefixI True) (S1 * (MetaSel (Just Symbol "unParentLabel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * InstanceLabelEPC)))

data AggregationDWhat Source #

Instances

Eq AggregationDWhat Source # 
Show AggregationDWhat Source # 
Generic AggregationDWhat Source # 
ToJSON AggregationDWhat Source # 
FromJSON AggregationDWhat Source # 
ToSchema AggregationDWhat Source # 
type Rep AggregationDWhat Source # 
type Rep AggregationDWhat = D1 * (MetaData "AggregationDWhat" "Data.GS1.DWhat" "GS1Combinators-0.1.0.0-FVfrImOIwvU9RRRQI0uKtQ" False) (C1 * (MetaCons "AggregationDWhat" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_aggAction") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Action)) ((:*:) * (S1 * (MetaSel (Just Symbol "_aggParentLabel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe ParentLabel))) (S1 * (MetaSel (Just Symbol "_aggChildEpcList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [LabelEPC])))))

data TransactionDWhat Source #

Instances

Eq TransactionDWhat Source # 
Show TransactionDWhat Source # 
Generic TransactionDWhat Source # 
ToJSON TransactionDWhat Source # 
FromJSON TransactionDWhat Source # 
ToSchema TransactionDWhat Source # 
type Rep TransactionDWhat Source # 
type Rep TransactionDWhat = D1 * (MetaData "TransactionDWhat" "Data.GS1.DWhat" "GS1Combinators-0.1.0.0-FVfrImOIwvU9RRRQI0uKtQ" False) (C1 * (MetaCons "TransactionDWhat" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_transactionAction") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Action)) (S1 * (MetaSel (Just Symbol "_transactionParentLabel") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe ParentLabel)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_transactionBizTransactionList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [BizTransaction])) (S1 * (MetaSel (Just Symbol "_transactionEpcList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [LabelEPC])))))

data TransformationDWhat Source #

Instances

Eq TransformationDWhat Source # 
Show TransformationDWhat Source # 
Generic TransformationDWhat Source # 
ToJSON TransformationDWhat Source # 
FromJSON TransformationDWhat Source # 
ToSchema TransformationDWhat Source # 
type Rep TransformationDWhat Source # 
type Rep TransformationDWhat = D1 * (MetaData "TransformationDWhat" "Data.GS1.DWhat" "GS1Combinators-0.1.0.0-FVfrImOIwvU9RRRQI0uKtQ" False) (C1 * (MetaCons "TransformationDWhat" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_transformationId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe TransformationId))) ((:*:) * (S1 * (MetaSel (Just Symbol "_transformationInputEpcList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [InputEPC])) (S1 * (MetaSel (Just Symbol "_transformationOutputEpcList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [OutputEPC])))))

data DWhat Source #

The What dimension specifies what physical or digital objects participated in the event

Instances

Eq DWhat Source # 

Methods

(==) :: DWhat -> DWhat -> Bool #

(/=) :: DWhat -> DWhat -> Bool #

Show DWhat Source # 

Methods

showsPrec :: Int -> DWhat -> ShowS #

show :: DWhat -> String #

showList :: [DWhat] -> ShowS #

Generic DWhat Source # 

Associated Types

type Rep DWhat :: * -> * #

Methods

from :: DWhat -> Rep DWhat x #

to :: Rep DWhat x -> DWhat #

ToJSON DWhat Source # 
FromJSON DWhat Source # 
ToSchema DWhat Source # 
type Rep DWhat Source # 

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