
The latest Data.Binary documentation says instance of Binary should have get . put == id But this doesn't typecheck! I'm guessing it's probably supposed to say decode . encode == id -Chad

http://www.haskell.org/ghc/docs/latest/html/libraries/base/Foreign-Ptr.html#... The description "Computes the offset required to get from the first to the second argument." contradicts to the formula p2 == p1 `plusPtr` (p2 `minusPtr` p1) It should be "Computes the offset required to get from the second to the first argument."

Thanks. I'll fix that. S | -----Original Message----- | From: libraries-bounces@haskell.org [mailto:libraries-bounces@haskell.org] On Behalf Of Henning Thielemann | Sent: 08 January 2008 11:37 | To: libraries@haskell.org | Subject: typo in Foreign.Ptr.minusPtr documentation | | | http://www.haskell.org/ghc/docs/latest/html/libraries/base/Foreign-Ptr.html#... | | The description "Computes the offset required to get from the first to | the second argument." contradicts to the formula | p2 == p1 `plusPtr` (p2 `minusPtr` p1) | | It should be "Computes the offset required to get from the second to | the first argument." | _______________________________________________ | Libraries mailing list | Libraries@haskell.org | http://www.haskell.org/mailman/listinfo/libraries
participants (4)
-
Chad Scherrer
-
Don Stewart
-
Henning Thielemann
-
Simon Peyton-Jones