GS1Combinators-0.1.0.0: Haskell combinator library of GS1 EPCIS standard

Safe HaskellNone
LanguageHaskell2010

Data.GS1.Event

Synopsis

Documentation

data EventType Source #

Constructors

ObjectEventT

When something is created

AggregationEventT

When something gets packaged into a container, or gets unpacked.

TransactionEventT

Some transaction has been made between 2 or more parties

TransformationEventT

Some product has been converted into another e.g A bucket of Tomatoes became some bottles of Tomato Sauce

Instances

Enum EventType Source # 
Eq EventType Source # 
Read EventType Source # 
Show EventType Source # 
Generic EventType Source # 

Associated Types

type Rep EventType :: * -> * #

ToJSON EventType Source # 
FromJSON EventType Source # 
ToSchema EventType Source # 
type Rep EventType Source # 
type Rep EventType = D1 * (MetaData "EventType" "Data.GS1.Event" "GS1Combinators-0.1.0.0-FVfrImOIwvU9RRRQI0uKtQ" False) ((:+:) * ((:+:) * (C1 * (MetaCons "ObjectEventT" PrefixI False) (U1 *)) (C1 * (MetaCons "AggregationEventT" PrefixI False) (U1 *))) ((:+:) * (C1 * (MetaCons "TransactionEventT" PrefixI False) (U1 *)) (C1 * (MetaCons "TransformationEventT" PrefixI False) (U1 *))))

data Event Source #

Constructors

Event 

Instances

Eq Event Source # 

Methods

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

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

Show Event Source # 

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

Generic Event Source # 

Associated Types

type Rep Event :: * -> * #

Methods

from :: Event -> Rep Event x #

to :: Rep Event x -> Event #

ToJSON Event Source # 
FromJSON Event Source # 
ToSchema Event Source # 
type Rep Event Source # 

getEventType :: DWhat -> EventType Source #

Calls the appropriate stringify for a DWhat