| Stability | experimental |
|---|---|
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
GHC.Eventlog.Live.Machine.Decoder
Contents
Description
Synopsis
- newtype DecodeError = DecodeError String
- decodeEvent :: forall (m :: Type -> Type). MonadIO m => ProcessT m ByteString Event
- decodeEventBatch :: forall (m :: Type -> Type). MonadIO m => ProcessT m (Tick ByteString) (Tick Event)
Event decoding
newtype DecodeError Source #
Constructors
| DecodeError String |
Instances
| Exception DecodeError Source # | |
Defined in GHC.Eventlog.Live.Machine.Decoder Methods toException :: DecodeError -> SomeException # fromException :: SomeException -> Maybe DecodeError # displayException :: DecodeError -> String # | |
| Show DecodeError Source # | |
Defined in GHC.Eventlog.Live.Machine.Decoder Methods showsPrec :: Int -> DecodeError -> ShowS # show :: DecodeError -> String # showList :: [DecodeError] -> ShowS # | |
decodeEvent :: forall (m :: Type -> Type). MonadIO m => ProcessT m ByteString Event Source #
Parse Events from a stream of ByteString chunks with ticks.
Throws a DecodeError on error.
decodeEventBatch :: forall (m :: Type -> Type). MonadIO m => ProcessT m (Tick ByteString) (Tick Event) Source #
Parse Events from a stream of ByteString chunks with ticks.
Throws DecodeError on error.