<br><div class="gmail_quote">On Wed, Feb 20, 2008 at 10:30 AM, Roman Cheplyaka &lt;<a href="mailto:roma@ro-che.info">roma@ro-che.info</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
* Spencer Janssen &lt;<a href="mailto:sjanssen@cse.unl.edu">sjanssen@cse.unl.edu</a>&gt; [2008-02-12 03:58:21-0600]<br>
<div class="Ih2E3d">&gt; On Mon, Feb 11, 2008 at 12:25:59AM +0200, Roman Cheplyaka wrote:<br>
&gt; &gt; Mon Feb 11 00:24:06 EET 2008 &nbsp;Roman Cheplyaka &lt;<a href="mailto:roma@ro-che.info">roma@ro-che.info</a>&gt;<br>
&gt; &gt; &nbsp; * Refactor XMonad.Hooks.DynamicLog<br>
&gt; &gt; &nbsp; This allows using DynamicLog not only for statusbar.<br>
&gt;<br>
&gt; &gt; &nbsp; &nbsp;, ((mod1Mask, xK_a &nbsp; &nbsp; ), sendMessage NextLayout &gt;&gt; (dynamicLogString myPP &gt;&gt;= \d-&gt;spawn $&quot;xmessage &quot;++d))<br>
&gt;<br>
&gt; Why not use this instead:<br>
&gt; &gt; dynamicLogWithPP $ myPP { ppOutput = spawn . (&quot;xmessage &quot;++) }<br>
&gt;<br>
&gt; Just trying to play devil&#39;s advocate against API increases here :)<br>
<br>
</div>Yeah, I was blind. Now it seems really pointless.<br>
Feel free to unapply it. Would you also edit [1]?<br>
</blockquote><div><br>Personally, I still feel like having dynamicLogString is a nice abstraction -- it decouples the status text generation from the output, and lets you get your hands directly on the status text if you would like.&nbsp; So, it turns out that this particular example can be done more simply using a specialized ppOutput, but that doesn&#39;t mean dynamicLogString might not still be useful.<br>
&nbsp;<br>-Brent<br></div></div>