
On Wed, May 5, 2010 at 3:37 PM, Jonas Bygdén
import XMonad import XMonad.Config.Gnome import XMonad.Util.EZConfig main = xmonad gnomeConfig {terminal = "urxvtcd" } `removeKeysP` ["M-b","M-."]
When in doubt, parenthesize. ---- main = xmonad (gnomeConfig {terminal = "urxvtcd" }) `removeKeysP` ["M-b","M-."] /home/gwern/foo.hs:5:7: Couldn't match expected type `XConfig l' against inferred type `IO ()' In the first argument of `removeKeysP', namely `xmonad (gnomeConfig {terminal = "urxvtcd"})' In the expression: xmonad (gnomeConfig {terminal = "urxvtcd"}) `removeKeysP` ["M-b", "M-."] In the definition of `main': main = xmonad (gnomeConfig {terminal = "urxvtcd"}) `removeKeysP` ["M-b", "M-."] ---- ---- import XMonad import XMonad.Config.Gnome import XMonad.Util.EZConfig main = xmonad ((gnomeConfig {terminal = "urxvtcd" }) `removeKeysP` ["M-b","M-."]) /home/gwern/foo.hs:5:0: Warning: Definition but no type signature for `main' Inferred type: main :: IO () ---- Do you understand why? -- gwern