
23 Feb
2009
23 Feb
'09
2:21 p.m.
I had exactly the same confusion - not explaining ($) in RWH was major dropped ball IMO.
bogusTransfer qty fromBal toBal = do fromQty <- atomically $ readTVar fromBal [snip]
... is equivalent to: bogusTransfer qty fromBal toBal = do fromQty <- atomically ( readTVar fromBal [snip] ) ... so using ($) prevents accumulating a great big set of parentheses to close at the end of a long block. -- "There is no way to peace; peace is the way"