You are not logged in.

#1 2015-04-26 05:32:30

|Leavism
Member
Registered: 2015-04-26
Posts: 3

XMonad "Couldn't match type" error while recompiling

Been trying all day to get this config to work on my xmonad, but whenever I recompile I get this error:

lib/PerWorkspaceDirs.hs:22:37:
    Couldn't match type `xmonad-0.11:XMonad.Core.X' with `X'
    Expected type: X WorkingDirs
      Actual type: xmonad-0.11:XMonad.Core.X WorkingDirs
    In a stmt of a 'do' block: (WD cdirs) <- XS.get
    In the expression:
      do { (WD cdirs) <- XS.get;
           XS.put . WD $ (ws, dir) : filter (\ (a, _) -> a /= ws) cdirs }
    In an equation for `changeDir':
        changeDir dir ws
          = do { (WD cdirs) <- XS.get;
                 XS.put . WD $ (ws, dir) : filter (\ (a, _) -> a /= ws) cdirs }

lib/PerWorkspaceDirs.hs:23:23:
    Couldn't match type `xmonad-0.11:XMonad.Core.X' with `X'
    Expected type: X ()
      Actual type: xmonad-0.11:XMonad.Core.X ()
    In a stmt of a 'do' block:
      XS.put . WD $ (ws, dir) : filter (\ (a, _) -> a /= ws) cdirs
    In the expression:
      do { (WD cdirs) <- XS.get;
           XS.put . WD $ (ws, dir) : filter (\ (a, _) -> a /= ws) cdirs }
    In an equation for `changeDir':
        changeDir dir ws
          = do { (WD cdirs) <- XS.get;
                 XS.put . WD $ (ws, dir) : filter (\ (a, _) -> a /= ws) cdirs }

lib/PerWorkspaceDirs.hs:26:29:
    Couldn't match type `xmonad-0.11:XMonad.Core.X' with `X'
    Expected type: X WorkingDirs
      Actual type: xmonad-0.11:XMonad.Core.X WorkingDirs
    In a stmt of a 'do' block: (WD dirs) <- XS.get
    In the expression:
      do { (WD dirs) <- XS.get;
           return $ maybe "~/" id (lookup ws dirs) }
    In an equation for `getDir':
        getDir ws
          = do { (WD dirs) <- XS.get;
                 return $ maybe "~/" id (lookup ws dirs) }

Can anyone assist? Thank you in advance

Offline

#2 2015-04-26 07:53:56

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: XMonad "Couldn't match type" error while recompiling

Well, that setup is cool.  What does yours look like?  What changes have you made?


Knute

Offline

#3 2015-04-26 07:55:24

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: XMonad "Couldn't match type" error while recompiling

|Leavism wrote:
Couldn't match type `xmonad-0.11:XMonad.Core.X' with `X'
    Expected type: X WorkingDirs
      Actual type: xmonad-0.11:XMonad.Core.X WorkingDirs

An error like this usually indicates that you're mixing different versions of libraries/modules. Often that happens because you're importing something that has been compiled against an older or newer version than the version you're using yourself.

Offline

#4 2015-04-26 07:59:23

Knute
Member
From: Minot, ND
Registered: 2009-03-17
Posts: 604

Re: XMonad "Couldn't match type" error while recompiling

@Leavism, are you using both community repos and haskell-core?


Knute

Offline

Board footer

Powered by FluxBB