On Sun, May 29, 2011 at 1:29 AM, Chaddaï Fouché <chaddai.fouche@gmail.com> wrote:
On Sun, May 29, 2011 at 3:33 AM, Antoine Latter <aslatter@gmail.com> wrote:
> 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ï

That's right Chaddaï, I was just able to do the following and it worked:

calcCUVs account >>=  (\cuvs -> saveCUVs account cuvs)

Thanks.
N.