Copyright | (C) 2016-2017 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 :: [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
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