[xmonad] Problem getting simpleTabbed to work.

Brandon Allbery allbery.b at gmail.com
Fri Jan 25 21:20:09 CET 2013


On Fri, Jan 25, 2013 at 3:13 PM, Stefan Pynappels <
stefan.pynappels at sptechnical.co.uk> wrote:

> myLayout = ( Tall 1 (1/2) (3/100) ||| Mirror Tall ||| simpleTabbed )
>

Notice that Tall takes 3 parameters, but you're then using it again without
any parameters under control of Mirror.  The error message is complaining
about the missing parameters; this tends to look a bit odd in Haskell,
because sometimes that's an entirely legitimate thing to do --- just, not
here.

Usually we abstract that out to look something like

    myLayout = tall ||| Mirror tall ||| simpleTabbed
      where
        tall = Tall 1 (1/2) (3/100)

but if you prefer to do it inline then you'll want

    myLayout = Tall 1 (1/2) (3/100) ||| Mirror (Tall 1 (1/2) (3/100)) |||
simpleTabbed

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20130125/ae56c755/attachment.htm>


More information about the xmonad mailing list