[Haskell-cafe] Linking to third party libraries in windows

Brian Hulley brianh at metamilk.com
Sat May 27 17:12:07 EDT 2006


Brian Hulley wrote:
> If I write:
> 
>    do
>         let n = newListArray a l
>         p <- n
>         q <- n
> 
> two separate arrays will be created, because n is the action of
> creating a new array, and this action is executed twice in the body
> of the do. 
> 
> However, if I instead wrote:
> 
>     do
>           x <- newListArray a l
>           let r = return x
>           p <- r
>           q <- r

I should have used the word "executed" instead of "write" and "wrote".

Regards, Brian.



More information about the Haskell-Cafe mailing list