eventlog-live-0.2.0.1: Live processing of eventlog data.
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

GHC.Eventlog.Live.Data.Attribute

Description

 
Synopsis

Documentation

type Attr = (AttrKey, AttrValue) Source #

An attribute is a key-value pair where the key is any string and the value is some numeric type, string, or null. Attributes should be constructed using the (~=) operator, which automatically converts Haskell types to AttrValue.

type AttrKey = Text Source #

The type of attribute keys.

class IsAttrValue v where Source #

Utility class to help construct values of the AttrValue type.

Methods

toAttrValue :: v -> AttrValue Source #

Instances

Instances details
IsAttrValue Int16 Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue Int32 Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue Int64 Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue Int8 Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue Word16 Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue Word32 Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue Word64 Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue Word8 Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue AttrValue Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue CapabilityUser Source # 
Instance details

Defined in GHC.Eventlog.Live.Machine

IsAttrValue Text Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue String Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue Double Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue Int Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue Word Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

IsAttrValue v => IsAttrValue (Maybe v) Source # 
Instance details

Defined in GHC.Eventlog.Live.Data.Attribute

(~=) :: IsAttrValue v => AttrKey -> v -> Attr Source #

Construct an Attr as a pair of an AttrKey and an AttrValue, constructed via the IsAttrValue class.