How is this a problem?<div><br></div><div>If you're representing text, use 'text'.</div><div>If you're representing a string of bytes, use 'bytestring'.</div><div>If you want an "array" of values, think c++ and use 'vector'.</div>
<div>If you want to mutate arrays, first, make sure you do. You probably don't. If you're sure, use MVector.</div><div><br></div><div>Don't use String, except to interface with legacy code. You probably want 'text'.</div>
<div>Don't use Array. Anything it can be used for, can be done with 'vector'.</div><div><br></div><div> - Clark</div><div><br></div><div>This covers all the use-cases that I can think of.<br><br>On Monday, June 3, 2013, wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, 03 Jun 2013 19:16:08 +0000<br>
silvio <<a href="javascript:;" onclick="_e(event, 'cvml', 'silvio.frischi@gmail.com')">silvio.frischi@gmail.com</a>> wrote:<br>
<br>
> Hi everyone,<br>
><br>
> Every time I want to use an array in Haskell, I find myself having to<br>
> look up in the doc how they are used, which exactly are the modules I<br>
> have to import ... and I am a bit tired of staring at type signatures<br>
> for 10 minutes to figure out how these arrays work every time I use them<br>
> (It's even worse when you have to write the signatures). I wonder how<br>
> other people perceive this issue and what possible solutions could be.<br>
<br>
My opinion, it's every bit as bad you say it is...<br>
Not a clue as to what can be done about it.<br>
<br>
Probably yet another vector module.<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'Haskell-Cafe@haskell.org')">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>