<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Stephan Walter wrote:
<blockquote cite="mid:fn9uol$m2g$1@ger.gmane.org" type="cite">
<pre wrap="">Hi,
On 2008-01-24 12:14, Jamie Love wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
How about just using Data.Char.chr ?
</pre>
</blockquote>
<br>
Essentially because I need to control the byte ordering, and it has to
be in the current case the opposite to my computer's native ordering
(the file is a binary file).<br>
<blockquote cite="mid:fn9uol$m2g$1@ger.gmane.org" type="cite">
<pre wrap="">
Prelude> let a = [32..64] :: [Int]
Prelude> map Data.Char.chr a
" !\"#$%&'()*+,-./0123456789:;<=>?@"
--Stephan
_______________________________________________
Haskell-Cafe mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://www.haskell.org/mailman/listinfo/haskell-cafe">http://www.haskell.org/mailman/listinfo/haskell-cafe</a>
------------------------------------------------------------
This message has been scanned for viruses and dangerous content
by MailScanner and is believed to be clean.
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Jamie Love
Senior Consultant
Aviarc Australia
Mobile: +61 400 548 048
</pre>
</body>
<br />--
<br />This message has been scanned for viruses and dangerous content
<br>by
<a href="http://www.mailscanner.info"><b>MailScanner</b></a> and is believed to be clean.
</html>