<div dir="ltr">It told you how, use `def` instead of `defaultConfig`. It sounds like you have been using your Linux distribution's package, and they have just updated to 0.18.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 24, 2024 at 3:45 PM Alain Bertrand <<a href="mailto:alainbe@free.fr">alainbe@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I don't know why but suddenly, xmonad decided to recompile itself and I <br>
got warnings :<br>
<br>
Deprecations detected while compiling xmonad config: <br>
/home/alain/.xmonad/xmonad.hs<br>
$ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 <br>
-outputdir /home/alain/.xmonad/build-x86_64-linux -o <br>
/home/alain/.xmonad/xmonad-x86_64-linux<br>
<br>
xmonad.hs:16:1: warning: [-Wtabs]<br>
Tab character found here, and in one further location.<br>
Suggested fix: Please use spaces instead.<br>
|<br>
16 | spawnOn "bg" "feh --bg-tile <br>
/usr/share/WindowMaker/Backgrounds/BlueImage.jpeg"<br>
| ^^^^^^^^<br>
<br>
xmonad.hs:35:30: warning: [-Wdeprecations]<br>
In the use of ‘defaultConfig’<br>
(imported from XMonad, but defined in XMonad.Config):<br>
Deprecated: "Use def (from Data.Default, and re-exported by XMonad <br>
and XMonad.Config) instead."<br>
|<br>
35 | , manageHook=manageHook defaultConfig <+> manageDocks<br>
| ^^^^^^^^^^^^^<br>
<br>
I don't find the tab character, if I delete what appears to me as a <br>
space, then type a space, I have another error message.<br>
<br>
How should I replace "defaultConfig" ?<br>
<br>
<br>
Thanks for your help.<br>
<br>
<br>
Alain<br>
<br>
import XMonad<br>
1 import XMonad.Hooks.SetWMName<br>
2 import XMonad.Hooks.ManageDocks<br>
3 import qualified Data.Map as M<br>
4 import Graphics.X11.Xlib<br>
5 import XMonad.Config.Azerty<br>
6 import XMonad.Prompt<br>
7 import XMonad.Prompt.Shell<br>
8 import XMonad.Prompt.XMonad<br>
9 import XMonad.Actions.SpawnOn<br>
10 import XMonad.Layout.Spiral<br>
11 import XMonad.Layout.SimplestFloat<br>
12 myStartUpHook :: X ()<br>
13 myStartUpHook = do<br>
14 spawnOn "panel" "xfce4-panel"<br>
15 spawnOn "bg" "feh --bg-tile <br>
/usr/share/WindowMaker/Backgrounds/BlueImage.jpeg"<br>
16<br>
17 -- spawnOn "clavier" "/home/alain/bin/clavier_conf"<br>
18 -- spawnOn "1" "/usr/bin/firefox"<br>
19 spawnOn "1" "/usr/bin/thunderbird"<br>
20 -- spawnOn "workspace7" "/usr/bin/transmission-gtk"<br>
21 -- spawnOn "akonadi" "akonadictl start"<br>
22 setWMName "LG3D"<br>
23<br>
24<br>
25 --myLayoutHook = avoidStruts ( Full ||| spiral (6/7) ||| Tall 1 <br>
0.03 0.5 ||| simplestFloat)<br>
26<br>
27 -- sets default tile as: Tall nmaster (delta) (golden ratio)<br>
28 --<br>
29 --<br>
30 main=do<br>
31 xmonad $ docks def<br>
32 {<br>
33 layoutHook = avoidStruts $ (spiral (6/7) ||| layoutHook def <br>
||| simplestFloat )<br>
34 , manageHook=manageHook defaultConfig <+> manageDocks<br>
35 , modMask = mod4Mask<br>
36 , keys = myKeys <+> keys azertyConfig<br>
37 , startupHook = myStartUpHook<br>
38 }<br>
39<br>
40<br>
41 -- main=do<br>
42 -- xmonad { keys = myKeys <+> keys azertyConfig }<br>
43 -- {<br>
44 -- layoutHook=avoidStruts $ layoutHook defaultConfig<br>
45 -- , manageHook=manageHook defaultConfig <+> manageDocks<br>
46 -- , startupHook = setWMName "LG3D"<br>
47 -- }<br>
48 --<br>
49 --<br>
50 myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList<br>
51 [ ((modm, xK_F12), xmonadPrompt def)<br>
52 , ((modm, xK_F3 ), shellPrompt def)<br>
53 ]<br>
~<br>
<br>
_______________________________________________<br>
xmonad mailing list<br>
<a href="mailto:xmonad@haskell.org" target="_blank">xmonad@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>brandon s allbery kf8nh</div><div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a></div></div></div></div></div>