<div dir="ltr"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg">Hello,<br class="gmail_msg"><br class="gmail_msg"></div>I apologize in case this is not the right place to bring this question/proposal up. Some time ago I stumbled upon the Selection Monad [1] (also referred to as Search from the search package on hackage). Its relation to the Continuation Monad and the usefulness demonstrated in [1] made me wonder whether it would be nice to include Selection Monad in the core libraries along the Continuation Monad (in mtl and transformers) with all the business of selections attaining continuations. I can imagine the pattern to be too little recognised to justify such an addition, yet the theoretical connection to the Continuation Monad seems to be an interesting one and worth being addressed.<br><br></div><div class="gmail_msg">Best,<br><br></div><div class="gmail_msg">Jakub Daniel<br class="gmail_msg"></div><div class="gmail_msg"><br class="gmail_msg"></div>[1] Jules Hedges. <b class="gmail_msg">Monad transformers for backtracking
  search</b>. In <i class="gmail_msg">Proceedings of MSFP 2014. </i><a href="https://arxiv.org/abs/1406.2058" class="gmail_msg" target="_blank">https://arxiv.org/abs/1406.2058</a><br class="gmail_msg"></div></div>