Commits

aculich committed 881386f

fixed compile error complaining about literal "null"

Comments (0)

Files changed (1)

Data/Aeson/Encode.hs

 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'.