OK,I tried this one:test:: IO (Maybe a)
test = return NothingIt looks similar and it seems to work..._______________________________________________On Tue, Jan 5, 2021 at 8:22 PM Velichko Lefterov <velichko.lefterov@gmail.com> wrote:Hello,could someone explain me simple how return-type polymorphism worksin the following case:newEmptyMVar :: IO (MVar a) ?
Beginners mailing list
Beginners@haskell.org
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners