<!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">
On 10/15/08 16:05, Larry Evans wrote:
<blockquote cite="mid:48F65B1A.6070203@suddenlink.net" type="cite"><font
 face="monospace">I'd like to have an Array indices values<br>
(see <a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://haskell.org/onlinereport/array.html">http://haskell.org/onlinereport/array.html</a>)<br>
defined on [minBound::indices ... maxBound::indices].<br>
The attached does this; however, it also allows<br>
duplicate definitions (e.g. in the attached, the<br>
value for Term index is defined twice).<br>
  <br>
Is there a better way to do this?&nbsp; Maybe a<br>
way that doesn't use all the contexts? <br>
Also, is there a way to do it so that the value <br>
associated with an index is not redefined?<br>
  </font></blockquote>
<font face="monospace">The aforementioned array.html has:<br>
<br>
</font><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&gt;&nbsp;error&nbsp;"Array.!:&nbsp;\<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\multiply&nbsp;defined&nbsp;array&nbsp;element")<br>
<br>
suggesting it should detect redefinitions; however,<br>
the library on my system apparently doesn't do that.<br>
It will detect missing defintions with the same error<br>
found in array.html:<br>
<br>
</tt><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; []&nbsp;&nbsp;&nbsp;&nbsp;-&gt;&nbsp;error&nbsp;"Array.!:&nbsp;\<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\undefined&nbsp;array&nbsp;element"<br>
<br>
Is this a bug in my ghc library?&nbsp; I'n on ubuntu and<br>
synaptic shows the ghc6 version as:<br>
<br>
&nbsp; 6.8.2-2ubuntu1<br>
<br>
<br>
<br>
&nbsp; <br>
</tt><br>
<font face="monospace">&nbsp; <br>
</font>
</body>
</html>