[xmonad] don't manage windows layout
Alain Bertrand
alainbe at free.fr
Sun Jun 11 22:43:15 UTC 2023
Thanks.
I got the following error and though the message is really detailed, my
total ignorance of Haskel doesn't allow me to fix it.
Best regards
Alain
-------------------
Error detected while loading xmonad configuration file:
/home/alain/.xmonad/xmonad.hs
xmonad.hs:26:17: error:
* Ambiguous type variable `a0` arising from a use of `avoidStruts`
prevents the constraint `(Show a0)` from being solved.
Relevant bindings include
myLayoutHook :: XMonad.Layout.LayoutModifier.ModifiedLayout
AvoidStruts
(Choose
Full
(Choose
SpiralWithDir
(Choose
Tall
(XMonad.Layout.LayoutModifier.ModifiedLayout
XMonad.Layout.WindowArranger.WindowArranger SimplestFloat))))
a0
(bound at xmonad.hs:26:2)
Probable fix: use a type annotation to specify what `a0` should be.
These potential instances exist:
instance Show Event -- Defined in `Graphics.X11.Xlib.Extras`
instance Show FontSet -- Defined in `Graphics.X11.Xlib.Extras`
instance [safe] Show Arc -- Defined in `Graphics.X11.Xlib.Types`
...plus 54 others
...plus 73 instances involving out-of-scope types
(use -fprint-potential-instances to see them all)
* In the expression:
avoidStruts
(Full ||| spiral (6 / 7) ||| Tall 1 0.03 0.5 ||| simplestFloat)
In an equation for `myLayoutHook`:
myLayoutHook
= avoidStruts
(Full ||| spiral (6 / 7) ||| Tall 1 0.03 0.5 |||
simplestFloat)
|
26 | myLayoutHook = avoidStruts ( Full ||| spiral (6/7) ||| Tall 1
0.03 0.5 ||| simplestFloat)
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-------------------
On 12/06/2023 00:25, Brandon Allbery wrote:
> You might want XMonad.Layout.SimplestFloat.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmonad.hs
Type: text/x-haskell
Size: 1686 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/xmonad/attachments/20230612/9f7cdd06/attachment.hs>
More information about the xmonad
mailing list