Skip to content

Commit

Permalink
Fix thinko
Browse files Browse the repository at this point in the history
  • Loading branch information
bos committed Aug 7, 2011
1 parent c5a463f commit 5a37d4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/Aeson/Encode.hs
Expand Up @@ -71,7 +71,7 @@ string s = fromChar '"' `mappend` quote s `mappend` fromChar '"'
fromNumber :: Number -> Builder
fromNumber (I i) = integral i
fromNumber (D d)
| isNaN d || isInfinite d = "null"
| isNaN d || isInfinite d = fromByteString "null"
| otherwise = double d

-- | Efficiently serialize a JSON value as a lazy 'L.ByteString'.
Expand Down

0 comments on commit 5a37d4f

Please sign in to comment.