[Haskell-cafe] encountering another STM problem .. "teething
problems" ; ^)
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Sun Dec 30 01:14:07 EST 2007
On Dec 30, 2007, at 1:09 , Galchin Vasili wrote:
> main = do {atomic (r <- (createR 1); putR r 1)}
>
> Strangely I am not getting a type error rather a syntax on the "<-"
> in main. ??
To use "<-" you need to open another "do" block:
> main = do {atomic (do {r <- (createR 1); putR r 1})}
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the Haskell-Cafe
mailing list