
8 Mar
2010
8 Mar
'10
6:13 p.m.
Is NumLazyByteString a newtype around Bytestring.Lazy that interprets the bit stream represented by the ByteString as integer?
Not exactly. There is not newtype wrapper. NumLazyByteString is: instance Num L.ByteString where ... instance Enum L.ByteString where ... instance Integral L.ByteString where ... instance Bits L.ByteString where ...
If so, could this also be done using a newtype around [Integer], where appropriately large Integers are used? If yes, you may find http://code.haskell.org/numeric-prelude/src/Number/Positional.hs useful.
Thanks for the pointer.