[xmonad] How to apply (withWorkspace myXPConfig) to two functions?

Jeffrey David Johnson jefdaj at gmail.com
Wed Oct 10 16:46:56 CEST 2012


Thanks! That did it.
Solutions in Haskell are always so simple, once you see them.
Jeff

On 10/10/12 07:43, Brandon Allbery wrote:
> On Wed, Oct 10, 2012 at 10:35 AM, Jeffrey David Johnson 
> <jefdaj at gmail.com <mailto:jefdaj at gmail.com>> wrote:
>
>     I'm trying  to write a function that asks for a workspace name,
>     then sends the current window there and views it. carryToSpecific
>     = withWorkspace myXPConfig (windows . W.shift) >> withWorkspace
>     myXPConfig (windows . W.greedyView)
>
>
> Something along the lines of
>
>     carryToSpecific = withWorkspace myXPConfig (\ws -> windows $ 
> W.greedyView ws . W.shift ws)
>
> -- 
> brandon s allbery kf8nh sine nomine associates
> allbery.b at gmail.com <mailto:allbery.b at gmail.com> 
> ballbery at sinenomine.net <mailto:ballbery at sinenomine.net>
> unix/linux, openafs, kerberos, infrastructure http://sinenomine.net
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20121010/d7597bc8/attachment.htm>


More information about the xmonad mailing list