Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Provides the default (concrete) interpretation for the decoding effect. This
implementation assumes that the Decodable
type class can be implemented for
the underlying type parameter, that is, it must be possible to convert the
type to a fixed-width concrete integer.
Synopsis
- type DecoderState = IORef Word32
- class Decodable a where
- defaultDecoding :: forall v m. (Decodable v, MonadIO m) => DecoderState -> Decoding v ~> m
Documentation
type DecoderState = IORef Word32 Source #
class Decodable a where Source #
Type class used to perform conversion from/to a fixed-with concrete integer.
defaultDecoding :: forall v m. (Decodable v, MonadIO m) => DecoderState -> Decoding v ~> m Source #
Concrete implementation of the decoding effect.