Thanks Jed,
That works (or at least it's taking ages to error :-) )
Jed Brown wrote:
On 24 Jan 2008, [EMAIL PROTECTED] wrote:
Hi there
I have a list of ints, with values between 0 and 255 and I need to print them
out in little endian form to a file.
I've been using Data.Binary for singl
On 24 Jan 2008, [EMAIL PROTECTED] wrote:
> Hi there
>
> I have a list of ints, with values between 0 and 255 and I need to print them
> out in little endian form to a file.
>
> I've been using Data.Binary for single values, e.g.
>
> runPut $ do
> put 'B'
> put (0 :: Int32)
This will be big endian
(untested)
> mapM_ runPut data
?
On Jan 24, 2008 12:14 PM, Jamie Love <[EMAIL PROTECTED]> wrote:
> Hi there
>
> I have a list of ints, with values between 0 and 255 and I need to print
> them out in little endian form to a file.
>
> I've been using Data.Binary for single values, e.g.
>
> runPut
Hi there
I have a list of ints, with values between 0 and 255 and I need to print
them out in little endian form to a file.
I've been using Data.Binary for single values, e.g.
runPut $ do
put 'B'
put (0 :: Int32)
I'm wondering how I can go about writing a list of Ints out. My thought