on master help sign in
edited Data.Aeson.Encoding,

ghc complains "null" is not a Builder; but fromByteString "null" is a Builder

commitef995532099ebfa3c03fb713378d2460a293554b authorMichael Thompson <what_is_it_to_do_anything@yahoo.com> dateMon 8 Aug 2011, 19:49 (15 years ago) parent1dd38e4
1 file changed+1−1
Data/Aeson/Encode.hs+1−1
Data/Aeson/Encode.hs+1−1
@@ -71,7 +71,7 @@ string s = fromChar '"' `mappend` quote s `mappend` fromChar '"'
7171fromNumber :: Number -> Builder
7272fromNumber (I i) = integral i
7373fromNumber (D d)
74− | isNaN d || isInfinite d = "null"
74+ | isNaN d || isInfinite d = fromByteString "null"
7575 | otherwise = double d
7676
7777-- | Efficiently serialize a JSON value as a lazy 'L.ByteString'.