
You're not actually using `myLayoutHook`, so the compiler can't
determine the type of its layout. See line 34.
On Sun, Jun 11, 2023 at 6:43 PM Alain Bertrand
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.
xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- brandon s allbery kf8nh allbery.b@gmail.com