[Haskell-beginners] Reading JSON using Text.JSON
Christopher Done
chrisdone at googlemail.com
Mon May 16 21:07:25 CEST 2011
On 16 May 2011 20:59, Magnus Therning <magnus at therning.org> wrote:
>> readJSON object = do obj <- readJSON object
>> GlossDef <$> valFromObj "para" obj
>> <*> valFromObj "GlossSeeAlso" obj
>
> FWIW, read the first comment ;-)
>
> I still consider the monadic style easier to read than the
> applicative so that's what I usually start with.
I was more referring to the fact that you're re-implementing
valFromObj and needlessly pattern matching.
More information about the Beginners
mailing list