Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  [Haskell-cafe] The following is supposed to be
      initializing a 2D array but it doesn't seem to work. (KC)


----------------------------------------------------------------------

Message: 1
Date: Tue, 31 Jul 2012 15:53:02 -0700
From: KC <[email protected]>
Subject: Re: [Haskell-beginners] [Haskell-cafe] The following is
        supposed to be initializing a 2D array but it doesn't seem to work.
To: Jan-Willem Maessen <[email protected]>, haskell-cafe
        <[email protected]>, [email protected]
Message-ID:
        <camlkxymifgm0asbrxp6kjspw7nj3hzxnjvx_81lafqgyt1v...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

That was it!

On Tue, Jul 31, 2012 at 3:34 PM, Jan-Willem Maessen
<[email protected]>wrote:

>
>
> On Tue, Jul 31, 2012 at 5:52 PM, KC <[email protected]> wrote:
>
>> All I am getting is this:
>>
>> array ((1,5),(1,5)) [((1,5),1.0)]
>>
>> Maybe the behaviour of ghc was changed since the article was written.
>>
>
> I think you'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?
>
> I make this mistake frequently.
>
> -Jan-Willem Maessen
>



-- 
--
Regards,
KC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20120731/ecc9d0c4/attachment-0001.htm>

------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 50, Issue 1
****************************************

Reply via email to