Safe Haskell | None |
---|---|
Language | Haskell2010 |
- newtype Decoder a = Decoder {
- decodeMaybe :: Value -> Maybe a
- defaultDecoder :: FromJSON a => Decoder a
- is :: (Eq a, FromJSON a) => a -> Decoder ()
- newtype Path = Path {}
- here :: Path
- at :: Path -> Decoder a -> Decoder a
- only :: Path
- text :: Decoder Text
- textIs :: Text -> Decoder ()
- integer :: Decoder Integer
- integerIs :: Integer -> Decoder ()
- bool :: Decoder Bool
- boolIs :: Bool -> Decoder ()
- true :: Decoder ()
- false :: Decoder ()
- listOf :: Decoder a -> Decoder [a]
- vectorOf :: Decoder a -> Decoder (Vector a)
- ordMapOf :: Decoder a -> Decoder (Map Text a)
- hashMapOf :: Decoder a -> Decoder (HashMap Text a)
- null :: Decoder ()
Decoder
Decoder | |
|
defaultDecoder :: FromJSON a => Decoder a Source #