Talk:Xmonad/Config archive/Don's xmonad.hs

From HaskellWiki
Jump to navigation Jump to search

I found that entering the xmonad.hs config file listed here doesn't work. I think it may be because I have xmonad-0.8.1. I get this error:

xmonad.hs:12:17:

   Couldn't match expected type `XConfig
                                   (XMonad.Layout.LayoutModifier.ModifiedLayout
                                      AvoidStruts (Choose Tall (Choose (Mirror Tall) Full)))
                                 -> IO t'
          against inferred type `XConfig
                                   (Choose Tall (Choose (Mirror Tall) Full))'
   In the first argument of `dzen', namely `defaultConfig'
   In a 'do' expression: conf <- dzen defaultConfig
   In the expression:
       do conf <- dzen defaultConfig
            xmonad
          $   conf
                {terminal = "term", startupHook = setWMName "LG3D",
                 layoutHook = smartBorders (layoutHook conf)}
            `additionalKeys`
              [((modMask conf, xK_p),
                runOrRaisePrompt (defaultXPConfig {position = Top}))]

If this is because it's version 0.8.1, should there be a warning to that effect?