Skip to content

Commit 7108e50

Browse files
committed
Added comments for Float and Double instances
1 parent 6af054b commit 7108e50

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Data/Binary/Class.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,13 +683,15 @@ instance (Binary e) => Binary (Seq.Seq e) where
683683
------------------------------------------------------------------------
684684
-- Floating point
685685

686+
-- | Uses non-IEEE754 encoding. Does not round-trip NaN.
686687
instance Binary Double where
687688
put d = put (decodeFloat d)
688689
get = do
689690
x <- get
690691
y <- get
691692
return $! encodeFloat x y
692693

694+
-- | Uses non-IEEE754 encoding. Does not round-trip NaN.
693695
instance Binary Float where
694696
put f = put (decodeFloat f)
695697
get = do

0 commit comments

Comments
 (0)