on master help sign in
Fix thinko
commit5a37d4f9e59b91897ed844f63e97d9c140feb14d authorBryan O'Sullivan <bos@serpentine.com> dateSat 6 Aug 2011, 22:38 (15 years ago) parentc5a463f
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'.