We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 84ad099 + 7108e50 commit 57fbea5Copy full SHA for 57fbea5
1 file changed
src/Data/Binary/Class.hs
@@ -683,13 +683,15 @@ instance (Binary e) => Binary (Seq.Seq e) where
683
------------------------------------------------------------------------
684
-- Floating point
685
686
+-- | Uses non-IEEE754 encoding. Does not round-trip NaN.
687
instance Binary Double where
688
put d = put (decodeFloat d)
689
get = do
690
x <- get
691
y <- get
692
return $! encodeFloat x y
693
694
695
instance Binary Float where
696
put f = put (decodeFloat f)
697
0 commit comments