[xmonad] don't manage windows layout

Brandon Allbery allbery.b at gmail.com
Sun Jun 11 22:46:36 UTC 2023


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 <alainbe at free.fr> wrote:
>
> 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 at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad



-- 
brandon s allbery kf8nh
allbery.b at gmail.com


More information about the xmonad mailing list