Rewrite ambiguous description of the requirement that the top level be object or array.
commit243477960a491fd2c7b39e1280b615d89eb4f9c8
authorClifford Beshers <clifford.beshers@gmail.com>
dateThu 11 Apr 2013, 14:38 (14 years ago)
parentbe09b9f
Data/Aeson.hs+2−2
@@ -269,8 +269,8 @@ eitherDecode' = eitherDecodeWith json' fromJSON
269269-- $pitfalls
270270-- #pitfalls#
271271--
272−-- Note that the JSON standard only allows arrays or objects of things
273−-- at the top-level. Since this library follows the standard, calling
272+-- Note that the JSON standard that the top-level be either an array
273+-- or an object. Since this library follows the standard, calling
274274-- 'decode' on an unsupported result type will typecheck, but will
275275-- always \"fail\":
276276--