[Haskell-beginners] Is it possible to "run" JSON Parser?
aquagnu at gmail.com
Tue Aug 29 15:58:22 UTC 2017
Hello List again! :)
If I have a `FromJSON` instance, with `parseJSON` which translates
`Value` to MyType, how can I run this parser like I "run"
state/writer/reader monads? I mean not decoding of a bytestring
decode::ByteString -> Maybe MyType
run::Value -> Maybe MyType
The reason is that I have already collected Value's , and I have
parsers, so what is the problem, it would seem, to run parser on the
Value - to convert `Value` into `Maybe MyType`... Is it possible?
Best regards, Paul
More information about the Beginners