<div dir="ltr">OK,<div>I tried this one:</div><div><br></div><div>test:: IO (Maybe a)<br>test = return Nothing<br></div><div><br></div><div>It looks similar and it seems to work...</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 5, 2021 at 8:22 PM Velichko Lefterov <<a href="mailto:velichko.lefterov@gmail.com">velichko.lefterov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<div>could someone explain me simple how return-type polymorphism works</div><div>in the following case:</div><div>newEmptyMVar :: IO (MVar a) ?</div></div>
</blockquote></div>