> 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.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to