[Haskell-beginners] newEmptyMVar return type

Velichko Lefterov velichko.lefterov at gmail.com
Wed Jan 6 06:37:03 UTC 2021


OK,
I tried this one:

test:: IO (Maybe a)
test = return Nothing

It looks similar and it seems to work...

On Tue, Jan 5, 2021 at 8:22 PM Velichko Lefterov <
velichko.lefterov at gmail.com> wrote:

> Hello,
> could someone explain me simple how return-type polymorphism works
> in the following case:
> newEmptyMVar :: IO (MVar a) ?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20210106/cfc7ecaa/attachment.html>


More information about the Beginners mailing list