<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks, it is still a bit fuzzy to me ...</blockquote><div><br></div><div>I understand what you did  but what confuses me is that when i look at function with signature like </div><div><br></div><div>f :: Monad m => c -> m d</div><div><br></div><div>I always think that return type is somehow restricted in comparison to input because it demands that output type is wraped inside something (monad in this case).</div><div><br></div><div>For such signature to fit id signature (a -> a) ,  c type shoud be also wraped inside monad but it is not case here... </div><div><br></div><div>Anyhow, I still have to figure it out</div><div><br></div><div>thanks </div></div></div>