23 Apr 2012 22:54
Re: The last statement in a 'do' construct must be an expression: a <- readArray arr (1, 1)
Ryan Yates <fryguybob <at> gmail.com>
2012-04-23 20:54:53 GMT
2012-04-23 20:54:53 GMT
Perhaps you are mixing tabs and spaces?
On Mon, Apr 23, 2012 at 4:52 PM, KC <kc1956 <at> gmail.com> wrote:
I'm getting the above error message and I cannot figure out why?buildPair =doarr <- newArray ((1,1),(1,10)) 37 :: ST s (STArray s (Int,Int) Int)a <- readArray arr (1,1)writeArray arr (1,1) 64b <- readArray arr (1,1)return (a,b)
main = print $ runST buildPair--
--
Regards,
KC
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed