Copyright | (C) 2016-2018 David M. Johnson |
---|---|
License | BSD3-style (see the file LICENSE) |
Maintainer | David M. Johnson <djohnson.m@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
- data Decoder a = Decoder {
- decoder :: Value -> Parser a
- decodeAt :: DecodeTarget
- data DecodeTarget
- = DecodeTarget [MisoString]
- | DecodeTargets [[MisoString]]
- at :: [MisoString] -> (Value -> Parser a) -> Decoder a
- emptyDecoder :: Decoder ()
- keycodeDecoder :: Decoder KeyCode
- checkedDecoder :: Decoder Checked
- valueDecoder :: Decoder MisoString
Decoder
Decoder data type for parsing events
data DecodeTarget Source #
Data type for storing the target when parsing events
DecodeTarget [MisoString] | Decode a single object |
DecodeTargets [[MisoString]] | Decode multiple objecjects |
Decoders
emptyDecoder :: Decoder () Source #
Empty decoder for use with events like "click" that do not return any meaningful values
keycodeDecoder :: Decoder KeyCode Source #
Retrieves either "keyCode", "which" or "charCode" field in Decoder
checkedDecoder :: Decoder Checked Source #
Retrieves "checked" field in Decoder
valueDecoder :: Decoder MisoString Source #
Retrieves "value" field in Decoder