You are not logged in.

#1 2014-05-02 16:59:41

grifs
Member
Registered: 2014-05-02
Posts: 1

[SOLVED] xmonad, xmonad-contrib and ghc/haskell problem

Hi

I've been trying to configure xmonad to work with xmobar following option 2 here: https://wiki.archlinux.org/index.php/xm … ith_xmonad.

There was a problem with finding a module 'Xmonad.Hooks.DynamicLog'. When various attempt to address the issue were unsuccessful I finally decided to follow this suggestion to uninstall ghc and everything which depends on it: https://bbs.archlinux.org/viewtopic.php … 4#p1115714

this resulted in the following error messages:

 sudo pacman -Rdd ghc haskell-data-default haskell-data-default-class haskell-data-default-instances-base haskell-data-default-instances-containers haskell-data-default-instances-dlist haskell-data-default-instances-old-locale haskell-dlist haskell-extensible-exceptions haskell-mtl haskell-random haskell-transformers haskell-utf8-string haskell-x11 haskell-x11-xft xmonad xmonad-contrib xmobar

Packages (18): ghc-7.6.3-1  haskell-data-default-0.5.3-1
               haskell-data-default-class-0.0.1-1
               haskell-data-default-instances-base-0.0.1-4
               haskell-data-default-instances-containers-0.0.1-1
               haskell-data-default-instances-dlist-0.0.1-1
               haskell-data-default-instances-old-locale-0.0.1-1
               haskell-dlist-0.5-24  haskell-extensible-exceptions-0.1.1.4-5
               haskell-mtl-2.1.2-3  haskell-random-1.0.1.1-5
               haskell-transformers-0.3.0.0-4  haskell-utf8-string-0.3.7-5
               haskell-x11-1.6.1.1-3  haskell-x11-xft-0.3.1-9
               xmobar-0.20.1-1  xmonad-0.11-7  xmonad-contrib-0.11.2-2

Total Removed Size:   628.55 MiB

:: Do you want to remove these packages? [Y/n] y
( 1/18) removing xmobar                            [###################] 100%
ghc-pkg: cannot find package xmonad-contrib-0.11.2
error: command failed to execute correctly
( 2/18) removing xmonad-contrib                    [###################] 100%
ghc-pkg: cannot find package xmonad-0.11
error: command failed to execute correctly
( 3/18) removing xmonad                            [###################] 100%
ghc-pkg: cannot find package X11-xft-0.3.1
error: command failed to execute correctly
( 4/18) removing haskell-x11-xft                   [###################] 100%
ghc-pkg: cannot find package X11-1.6.1.1
error: command failed to execute correctly
( 5/18) removing haskell-x11                       [###################] 100%
ghc-pkg: cannot find package utf8-string-0.3.7
error: command failed to execute correctly
( 6/18) removing haskell-utf8-string               [###################] 100%
ghc-pkg: cannot find package random-1.0.1.1
error: command failed to execute correctly
( 7/18) removing haskell-random                    [###################] 100%
ghc-pkg: cannot find package mtl-2.1.2
error: command failed to execute correctly
( 8/18) removing haskell-mtl                       [###################] 100%
ghc-pkg: cannot find package transformers-0.3.0.0
error: command failed to execute correctly
( 9/18) removing haskell-transformers              [###################] 100%
ghc-pkg: cannot find package extensible-exceptions-0.1.1.4
error: command failed to execute correctly
(10/18) removing haskell-extensible-exceptions     [###################] 100%
ghc-pkg: cannot find package data-default-0.5.3
error: command failed to execute correctly
(11/18) removing haskell-data-default              [###################] 100%
ghc-pkg: cannot find package data-default-instances-old-locale-0.0.1
error: command failed to execute correctly
(12/18) removing haskell-data-default-instance...  [###################] 100%
ghc-pkg: cannot find package data-default-instances-dlist-0.0.1
error: command failed to execute correctly
(13/18) removing haskell-data-default-instance...  [###################] 100%
ghc-pkg: cannot find package dlist-0.5
error: command failed to execute correctly
(14/18) removing haskell-dlist                     [###################] 100%
ghc-pkg: cannot find package data-default-instances-containers-0.0.1
error: command failed to execute correctly
(15/18) removing haskell-data-default-instance...  [###################] 100%
ghc-pkg: cannot find package data-default-instances-base-0.0.1
error: command failed to execute correctly
(16/18) removing haskell-data-default-instance...  [###################] 100%
ghc-pkg: cannot find package data-default-class-0.0.1
error: command failed to execute correctly
(17/18) removing haskell-data-default-class        [###################] 100%
(18/18) removing ghc                               [###################] 100%

So now it seems I can't even neatly uninstall everything to start afresh. What is strange to me is that pacman had found these packages without a problem when I checked their dependencies with 'pacman -Qi <package> prior to issuing the command for their removal.

EDIT: In the meantime I decided to use the ArchHaskell repository version, haskell-xmonad, and also installing haskell-xmonad-contrib. I still got this error message:

Error detected while loading xmonad configuration file: /home/hywel/.xmonad/xmonad.hs

xmonad.hs:11:8:
    Could not find module ‘Xmonad.Hooks.DynamicLog’
    Perhaps you meant
      XMonad.Hooks.DynamicLog (from xmonad-contrib-0.11.2)
      XMonad.Hooks.DynamicBars (from xmonad-contrib-0.11.2)
      XMonad.Hooks.DynamicHooks (from xmonad-contrib-0.11.2)
    Use -v to see a list of the files searched for.

Please check the file for errors.

xmonad: xmessage: executeFile: does not exist (No such file or directory)

I could get xmobar to work on startup simply by changing the default config file to contain the following:

myStartupHook = spawn "xmobar"

but then I realised that the module is supposed to be written XMonad, with a capital M!! dammit, so now I think I can just follow the instructions in the first link and do things nicely, so it was a simple typo in the end

Last edited by grifs (2014-05-03 09:08:27)

Offline

Board footer

Powered by FluxBB