That was it!<br><br><div class="gmail_quote">On Tue, Jul 31, 2012 at 3:34 PM, Jan-Willem Maessen <span dir="ltr">&lt;<a href="mailto:jmaessen@alum.mit.edu" target="_blank">jmaessen@alum.mit.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">On Tue, Jul 31, 2012 at 5:52 PM, KC <span dir="ltr">&lt;<a href="mailto:kc1956@gmail.com" target="_blank">kc1956@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<pre style="font-family:monospace,&#39;Courier New&#39;;padding:1em;border:1px dashed rgb(47,111,171);background-color:rgb(249,249,249);line-height:1.3em;overflow:auto;font-size:15.972221374511719px"><span style="font-family:arial;font-size:small;line-height:normal;white-space:normal">All I am getting is this:</span></pre>

<div>array ((1,5),(1,5)) [((1,5),1.0)]</div><div><br></div><div>Maybe the behaviour of ghc was changed since the article was written.</div></blockquote><div><br></div></div><div>I think you&#39;ve made a common mistake here.  Array bounds are (lower in all dimensions, upper in all dimensions).  So perhaps you intended to use the bounds ((1,1), (5,5)) in your code?</div>

<div><br></div><div>I make this mistake frequently.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Jan-Willem Maessen</div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>Regards,<br>KC<br>