
29 May
2011
29 May
'11
8:29 a.m.
On Sun, May 29, 2011 at 3:33 AM, Antoine Latter
I think you might have your parenthesis in the wrong spot.
Instead of
x >>= (\a -> y a) >> z
you probably want:
x >>= (\a -> y a >> z)
Does that make sense?
No, that shouldn't change anything (except maybe performance, but not here), monads have a property close to associativity which means that changing the parenthesis shouldn't change the meaning of your code, you don't have to worry about that. -- Jedaï