Commits

Bryan O'Sullivan committed 5c7fe84

Fix build error

  • Participants
  • Parent commits 38dde45

Comments (0)

Files changed (1)

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