<div dir="ltr">Data types like `IO (IO a)` are useful and their usage is described in the following blog post:<div><br></div><div>* <a href="http://www.haskellforall.com/2018/02/the-wizard-monoid.html">http://www.haskellforall.com/2018/02/the-wizard-monoid.html</a></div><div><br></div><div>One function from the example uses `join` directly:</div><div><br></div><div>runWizard :: IO (IO a) -> IO a</div><div>runWizard = join</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 14, 2019 at 7:55 AM Dannyu NDos <<a href="mailto:ndospark320@gmail.com">ndospark320@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="auto">join is surely useful for Maybe and [].<div dir="auto"><br></div><div dir="auto">But IO (IO a)? ReadPrec (ReadPrec a)? ST s (ST s a)? When the heck could I encounter such types?</div></div>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>