| Stability | experimental |
|---|---|
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
GHC.Eventlog.Live.Data.Attribute
Description
Synopsis
- type Attr = (AttrKey, AttrValue)
- type AttrKey = Text
- data AttrValue
- class IsAttrValue v where
- toAttrValue :: v -> AttrValue
- (~=) :: IsAttrValue v => AttrKey -> v -> Attr
Documentation
The type of attribute values.
Constructors
Instances
| Show AttrValue Source # | |
| IsAttrValue AttrValue Source # | |
Defined in GHC.Eventlog.Live.Data.Attribute Methods toAttrValue :: AttrValue -> AttrValue Source # | |
class IsAttrValue v where Source #
Utility class to help construct values of the AttrValue type.
Methods
toAttrValue :: v -> AttrValue Source #
Instances
(~=) :: IsAttrValue v => AttrKey -> v -> Attr Source #
Construct an Attr as a pair of an AttrKey and an AttrValue,
constructed via the IsAttrValue class.