From alainbe at free.fr Mon Jun 24 19:45:06 2024 From: alainbe at free.fr (Alain Bertrand) Date: Mon, 24 Jun 2024 21:45:06 +0200 Subject: [xmonad] New warnings Message-ID: <6c8b35bd-7848-4b8c-8974-86ba2c326421@free.fr> Hi all, I don't know why but suddenly, xmonad decided to recompile itself and I got warnings : Deprecations detected while compiling xmonad config: /home/alain/.xmonad/xmonad.hs $ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 -outputdir /home/alain/.xmonad/build-x86_64-linux -o /home/alain/.xmonad/xmonad-x86_64-linux xmonad.hs:16:1: warning: [-Wtabs]     Tab character found here, and in one further location.     Suggested fix: Please use spaces instead.    | 16 |         spawnOn "bg" "feh --bg-tile /usr/share/WindowMaker/Backgrounds/BlueImage.jpeg"    | ^^^^^^^^ xmonad.hs:35:30: warning: [-Wdeprecations]     In the use of ‘defaultConfig’     (imported from XMonad, but defined in XMonad.Config):     Deprecated: "Use def (from Data.Default, and re-exported by XMonad and XMonad.Config) instead."    | 35 |      , manageHook=manageHook defaultConfig <+> manageDocks    |                              ^^^^^^^^^^^^^ I don't find the tab character, if I delete what appears to me as a space, then type a space, I have another error message. How should I replace "defaultConfig" ? Thanks for your help. Alain import XMonad   1  import XMonad.Hooks.SetWMName   2  import XMonad.Hooks.ManageDocks   3  import qualified Data.Map as M   4  import Graphics.X11.Xlib   5  import XMonad.Config.Azerty   6  import XMonad.Prompt   7  import XMonad.Prompt.Shell   8  import XMonad.Prompt.XMonad   9  import XMonad.Actions.SpawnOn  10  import XMonad.Layout.Spiral  11  import XMonad.Layout.SimplestFloat  12  myStartUpHook :: X ()  13  myStartUpHook = do  14         spawnOn "panel" "xfce4-panel"  15   spawnOn "bg" "feh --bg-tile /usr/share/WindowMaker/Backgrounds/BlueImage.jpeg"  16  17 --        spawnOn "clavier" "/home/alain/bin/clavier_conf"  18 --        spawnOn "1" "/usr/bin/firefox"  19         spawnOn "1" "/usr/bin/thunderbird"  20 --        spawnOn "workspace7" "/usr/bin/transmission-gtk"  21 --  spawnOn "akonadi" "akonadictl start"  22     setWMName "LG3D"  23  24  25  --myLayoutHook = avoidStruts  ( Full ||| spiral (6/7)  ||| Tall 1 0.03 0.5 ||| simplestFloat)  26  27      -- sets default tile as: Tall nmaster (delta) (golden ratio)  28 --  29 --  30 main=do  31    xmonad  $ docks def  32 {  33      layoutHook = avoidStruts $ (spiral (6/7) ||| layoutHook def ||| simplestFloat  )  34      , manageHook=manageHook defaultConfig <+> manageDocks  35      , modMask = mod4Mask  36      , keys = myKeys <+> keys azertyConfig  37      , startupHook = myStartUpHook  38 }  39  40  41 -- main=do  42 -- xmonad { keys = myKeys <+> keys azertyConfig }  43 -- {  44 --     layoutHook=avoidStruts $ layoutHook defaultConfig  45 --     , manageHook=manageHook defaultConfig <+> manageDocks  46 --     , startupHook = setWMName "LG3D"  47 -- }  48 --  49 --  50  myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList  51              [ ((modm, xK_F12), xmonadPrompt def)  52              , ((modm, xK_F3 ), shellPrompt def)  53 ] ~ From allbery.b at gmail.com Mon Jun 24 19:47:15 2024 From: allbery.b at gmail.com (Brandon Allbery) Date: Mon, 24 Jun 2024 15:47:15 -0400 Subject: [xmonad] New warnings In-Reply-To: <6c8b35bd-7848-4b8c-8974-86ba2c326421@free.fr> References: <6c8b35bd-7848-4b8c-8974-86ba2c326421@free.fr> Message-ID: 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. On Mon, Jun 24, 2024 at 3:45 PM Alain Bertrand wrote: > Hi all, > > I don't know why but suddenly, xmonad decided to recompile itself and I > got warnings : > > Deprecations detected while compiling xmonad config: > /home/alain/.xmonad/xmonad.hs > $ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 > -outputdir /home/alain/.xmonad/build-x86_64-linux -o > /home/alain/.xmonad/xmonad-x86_64-linux > > xmonad.hs:16:1: warning: [-Wtabs] > Tab character found here, and in one further location. > Suggested fix: Please use spaces instead. > | > 16 | spawnOn "bg" "feh --bg-tile > /usr/share/WindowMaker/Backgrounds/BlueImage.jpeg" > | ^^^^^^^^ > > xmonad.hs:35:30: warning: [-Wdeprecations] > In the use of ‘defaultConfig’ > (imported from XMonad, but defined in XMonad.Config): > Deprecated: "Use def (from Data.Default, and re-exported by XMonad > and XMonad.Config) instead." > | > 35 | , manageHook=manageHook defaultConfig <+> manageDocks > | ^^^^^^^^^^^^^ > > I don't find the tab character, if I delete what appears to me as a > space, then type a space, I have another error message. > > How should I replace "defaultConfig" ? > > > Thanks for your help. > > > Alain > > import XMonad > 1 import XMonad.Hooks.SetWMName > 2 import XMonad.Hooks.ManageDocks > 3 import qualified Data.Map as M > 4 import Graphics.X11.Xlib > 5 import XMonad.Config.Azerty > 6 import XMonad.Prompt > 7 import XMonad.Prompt.Shell > 8 import XMonad.Prompt.XMonad > 9 import XMonad.Actions.SpawnOn > 10 import XMonad.Layout.Spiral > 11 import XMonad.Layout.SimplestFloat > 12 myStartUpHook :: X () > 13 myStartUpHook = do > 14 spawnOn "panel" "xfce4-panel" > 15 spawnOn "bg" "feh --bg-tile > /usr/share/WindowMaker/Backgrounds/BlueImage.jpeg" > 16 > 17 -- spawnOn "clavier" "/home/alain/bin/clavier_conf" > 18 -- spawnOn "1" "/usr/bin/firefox" > 19 spawnOn "1" "/usr/bin/thunderbird" > 20 -- spawnOn "workspace7" "/usr/bin/transmission-gtk" > 21 -- spawnOn "akonadi" "akonadictl start" > 22 setWMName "LG3D" > 23 > 24 > 25 --myLayoutHook = avoidStruts ( Full ||| spiral (6/7) ||| Tall 1 > 0.03 0.5 ||| simplestFloat) > 26 > 27 -- sets default tile as: Tall nmaster (delta) (golden ratio) > 28 -- > 29 -- > 30 main=do > 31 xmonad $ docks def > 32 { > 33 layoutHook = avoidStruts $ (spiral (6/7) ||| layoutHook def > ||| simplestFloat ) > 34 , manageHook=manageHook defaultConfig <+> manageDocks > 35 , modMask = mod4Mask > 36 , keys = myKeys <+> keys azertyConfig > 37 , startupHook = myStartUpHook > 38 } > 39 > 40 > 41 -- main=do > 42 -- xmonad { keys = myKeys <+> keys azertyConfig } > 43 -- { > 44 -- layoutHook=avoidStruts $ layoutHook defaultConfig > 45 -- , manageHook=manageHook defaultConfig <+> manageDocks > 46 -- , startupHook = setWMName "LG3D" > 47 -- } > 48 -- > 49 -- > 50 myKeys conf@(XConfig {XMonad.modMask = modm}) = M.fromList > 51 [ ((modm, xK_F12), xmonadPrompt def) > 52 , ((modm, xK_F3 ), shellPrompt def) > 53 ] > ~ > > _______________________________________________ > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alainbe at free.fr Mon Jun 24 21:18:56 2024 From: alainbe at free.fr (Alain Bertrand) Date: Mon, 24 Jun 2024 23:18:56 +0200 Subject: [xmonad] New warnings In-Reply-To: References: <6c8b35bd-7848-4b8c-8974-86ba2c326421@free.fr> Message-ID: <7b12ecf6-d88f-4465-8cfe-700d3b4a53c4@free.fr> Le 24/06/2024 à 21:47, Brandon Allbery a écrit : > 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. Thanks. Well, I tried first to fix the "tab" problem and then nothing compiled. This time I fixed the "def" first and the "tab" warning disappeared. Best regards Alain