
16 May
2011
16 May
'11
3:07 p.m.
On 16 May 2011 20:59, Magnus Therning
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.