[xmonad] XMonad.Config.Prime, a monadic config syntax

Brandon Allbery allbery.b at gmail.com
Mon Oct 1 20:40:57 CEST 2012


On Mon, Oct 1, 2012 at 2:31 PM, Brent Yorgey <byorgey at seas.upenn.edu> wrote:

> Can you say a bit more about exactly why TH is required?  I get that
> fclabels depends on it, but why do you have to turn on the
> TemplateHaskell flag in your xmonad config?  (I haven't actually
> looked at the code.)
>

There's a splice and a quasiquoter used to add smartBorders to the layout.

> +-- > main = xmonad $ do
> > +-- >   modMask =: mod4Mask
> > +-- >   normalBorderColor =: "#222222"
> > +-- >   terminal =: "urxvt"
> > +-- >   manageHook =+ (isFullscreen --> doFullFloat)
> > +-- >   $(modifyLayout [| smartBorders |])
>

This strikes me as somewhat unfortunate, but it's possible that we can't do
better given that layouts are rather ugly type-wise currently.  (I have a,
possibly several, layout modifiers that are stuck waiting for me to figure
out if I can characterize their types properly.)

-- 
brandon s allbery                                      allbery.b at gmail.com
wandering unix systems administrator (available)     (412) 475-9364 vm/sms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/xmonad/attachments/20121001/6785a401/attachment-0001.htm>


More information about the xmonad mailing list