You are not logged in.

#1 2017-08-29 00:54:28

vishwaprakash
Member
Registered: 2017-06-06
Posts: 6

[Solved] Xmonad error after update

After a recent update, I am getting the following error when I try xmonad --recompile

┌─(severus)──(~) 
└─> $ xmonad --recompile
Error detected while loading xmonad configuration file: /home/severus/.xmonad/xmonad.hs

xmonad.hs:1:1: error:
    Failed to load interface for ‘XMonad’
    Perhaps you meant DsMonad (needs flag -package-key ghc-8.0.2)
    Use -v to see a list of the files searched for.

xmonad.hs:2:1: error:
    Failed to load interface for ‘XMonad.Config.Desktop’
    Use -v to see a list of the files searched for.

xmonad.hs:3:1: error:
    Failed to load interface for ‘XMonad.Hooks.EwmhDesktops’
    Use -v to see a list of the files searched for.

xmonad.hs:4:1: error:
    Failed to load interface for ‘XMonad.Layout.Spacing’
    Use -v to see a list of the files searched for.

xmonad.hs:5:1: error:
    Failed to load interface for ‘XMonad.Layout.NoBorders’
    Use -v to see a list of the files searched for.

xmonad.hs:6:1: error:
    Failed to load interface for ‘XMonad.Hooks.DynamicLog’
    Use -v to see a list of the files searched for.

xmonad.hs:7:1: error:
    Failed to load interface for ‘XMonad.Hooks.ManageDocks’
    Use -v to see a list of the files searched for.

xmonad.hs:8:1: error:
    Failed to load interface for ‘XMonad.Hooks.ManageHelpers’
    Use -v to see a list of the files searched for.

xmonad.hs:9:1: error:
    Failed to load interface for ‘XMonad.Util.Run’
    Use -v to see a list of the files searched for.

Please check the file for errors.

My xmonad.hs file :

import XMonad
import XMonad.Config.Desktop
import XMonad.Hooks.EwmhDesktops
import XMonad.Layout.Spacing
import XMonad.Layout.NoBorders
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.ManageHelpers
import XMonad.Util.Run
import System.IO

myLayout = desktopLayoutModifiers $ tiled ||| Mirror tiled ||| noBorders Full ||| Full  
  where  
      -- default tiling algorithm partitions the screen into two panes  
      tiled = Tall nmaster delta ratio  

      -- The default number of windows in the master pane  
      nmaster = 1  

      -- Default proportion of screen occupied by master pane  
      ratio = 1/2  

      -- Percent of screen to increment by when resizing panes  
      delta = 2/100  

main = do
xmproc <- spawnPipe "/usr/bin/xmobar /home/severus/.xmobarrc"
xmonad $ desktopConfig
	{ manageHook = composeAll [
		manageDocks,
		isFullscreen --> doFullFloat,
		manageHook defaultConfig
	  ]
	, layoutHook = myLayout-- smartBorders . avoidStruts $ layoutHook defaultConfig
	, handleEventHook = fullscreenEventHook <+> handleEventHook desktopConfig
	, logHook = dynamicLogWithPP xmobarPP
		{ ppOutput = hPutStrLn xmproc
		, ppTitle = xmobarColor "red" "" . shorten 20
		}
        , modMask     = mod4Mask
	}

I am not very good in haskell, could some one help me ?

Last edited by vishwaprakash (2017-12-17 04:51:54)

Offline

#2 2017-09-22 16:03:08

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

I'm getting the same error. When I reinstalled xmonad using

pacman -S xmonad

I get the following error:

xmonad-0.13: Warning: haddock-interfaces: /usr/share/doc/xmonad/html/xmonad.haddock doesn't exist or isn't a file
xmonad-0.13: Warning: haddock-html: /usr/share/doc/xmonad/html doesn't exist or isn't a directory
xmonad-0.13: dependency "data-default-0.7.1.1-7D2kYbZAPZs3NL2w6K0r5J" doesn't exist (ignoring)
xmonad-0.13: dependency "extensible-exceptions-0.1.1.4-KvghdEZV2En1ybNKCTCQ1Q" doesn't exist (ignoring)
xmonad-0.13: dependency "setlocale-1.0.0.5-FXi02INIPVXFoKlWUQiCYC" doesn't exist (ignoring)
xmonad-0.13: dependency "X11-1.8-AzojZfPPxpn1ROayS1vHXI" doesn't exist (ignoring)

So now I'm reinstalling every dependency with pacman. This looks like it's going to be a pain.

Offline

#3 2017-09-22 16:10:49

hicksy994
Member
Registered: 2017-09-22
Posts: 14

Re: [Solved] Xmonad error after update

Same here.

Offline

#4 2017-09-22 16:28:50

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

I reinstalled all the dependencies and now when I run

ghci -package XMonad -v

I'm getting

GHCi, version 8.2.1: http://www.haskell.org/ghc/  :? for help
Glasgow Haskell Compiler, Version 8.2.1, stage 2 booted by GHC version 8.2.1
Using binary package database: /usr/lib/ghc-8.2.1/package.conf.d/package.cache
package flags [-package XMonad{package XMonad True ([])}]
loading package database /usr/lib/ghc-8.2.1/package.conf.d
package HTTP-4000.3.7-Hw6XepIHeicKJxUXQPE0PZ is unusable due to missing dependencies:
  network-uri-2.6.1.0-4GXMsZ4PWr49y3TK4YgSYK network-2.6.3.2-8o5F7G3DMrLGgmHkPzZYJx
package X11-1.8-AzojZfPPxpn1ROayS1vHXI is unusable due to missing dependencies:
  data-default-0.7.1.1-7D2kYbZAPZs3NL2w6K0r5J
package X11-xft-0.3.1-2XnXm6tAhCvLTXmqFXJivJ is unusable due to missing dependencies:
  X11-1.8-AzojZfPPxpn1ROayS1vHXI
package aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y is unusable due to missing dependencies:
  attoparsec-0.13.2.0-CjTw1SIXl7j4WJB8EsmBPm base-compat-0.9.3-7gxrulAnYCf9OVK5Ok3lMW dlist-0.8.0.3-8XCsMwviZunHg7vFDzvN5q tagged-0.8.5-7Kuk6etyDBjGPRKMYpsbFG unordered-containers-0.2.8.0-KL4HUdwCmhYBQDTvY5v0GN uuid-types-1.0.3-JRgobIDHEgPC3wNlzbV76R
package aeson-compat-0.3.7.1-3mTGyglO8tqKyDvPHWNKGs is unusable due to missing dependencies:
  base-compat-0.9.3-7gxrulAnYCf9OVK5Ok3lMW aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y attoparsec-0.13.2.0-CjTw1SIXl7j4WJB8EsmBPm attoparsec-iso8601-1.0.0.0-1p5IOTQVJmz4aJFp1Mq3SO exceptions-0.8.3-BkxQoXHQAbWGd28nf3VeZ6 unordered-containers-0.2.8.0-KL4HUdwCmhYBQDTvY5v0GN tagged-0.8.5-7Kuk6etyDBjGPRKMYpsbFG
package asn1-encoding-0.9.5-IbtBEvbsKOBAFXA8bzYUf0 is unusable due to missing dependencies:
  asn1-types-0.3.2-EtZT2ZJVgtsHoacxlkz9v7
package asn1-types-0.3.2-EtZT2ZJVgtsHoacxlkz9v7 is unusable due to missing dependencies:
  memory-0.14.8-HEYe2msABjoBOvbV0yaOyF
package binary-tagged-0.1.4.2-6XcJFNpYgvw7mchqB35cEW is unusable due to missing dependencies:
  aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y base16-bytestring-0.1.1.6-1RelFaTH3mXDxpXrCeJSko generics-sop-0.3.1.0-B0sNdk9nX4QCCChxFxgwVs SHA-1.6.4.2-CLjgfR8MPKbGDDn0VxSSuZ semigroups-0.18.3-6KPIVJcHqOOBHjBl8WA5LP tagged-0.8.5-7Kuk6etyDBjGPRKMYpsbFG unordered-containers-0.2.8.0-KL4HUdwCmhYBQDTvY5v0GN
package blaze-html-0.9.0.1-kPi4af1DH04kfw48f7OOh is unusable due to missing dependencies:
  blaze-markup-0.8.0.0-FzqDX3sF5iY7olwigbNHfL
package cryptonite-0.24-JQ3NPvIvMVWG9FHR2Q0Evi is unusable due to missing dependencies:
  memory-0.14.8-HEYe2msABjoBOvbV0yaOyF foundation-0.0.15-1zcGyLG87EUA0LQBcgxhid
package data-default-0.7.1.1-7D2kYbZAPZs3NL2w6K0r5J is unusable due to missing dependencies:
  data-default-instances-dlist-0.0.1-4u6ra5QOxLZ56StjwJKUuJ
package foundation-0.0.15-1zcGyLG87EUA0LQBcgxhid is unusable due to missing dependencies:
  basement-0.0.2-3Wv1qYoFvU8B33fgF4zfu0
package hinotify-0.3.9-G7j9RHT97dd92O3EWvoaDb is unusable due to missing dependencies:
  async-2.1.1.1-2NW8RVpRWiC9M88FM7mCHc
package hpack-0.18.1-DORLnoDCFbp9Gmr9axcGwr is unusable due to missing dependencies:
  base-compat-0.9.3-7gxrulAnYCf9OVK5Ok3lMW Glob-0.7.14-EWXJTNKCxct7qBMI2wP4uQ unordered-containers-0.2.8.0-KL4HUdwCmhYBQDTvY5v0GN yaml-0.8.23.3-5PA6FoFimacABkGYYUI5Gr aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y
package http-client-0.5.7.0-34w8r0jpuHCHrZw43z9eV5 is unusable due to missing dependencies:
  http-types-0.9.1-4bB5vMj0wc7H0s2DJoYpPW network-2.6.3.2-8o5F7G3DMrLGgmHkPzZYJx streaming-commons-0.1.18-DO9CaqvVOYhDrA5bma8vy4 case-insensitive-1.2.0.10-G6p6xuzQuZQOyTREOVUmI base64-bytestring-1.0.0.1-D9uFxOosRHvGwKtuClA6fm cookie-0.4.2.1-EtHMWPQIghd9pOfnkVb7tc exceptions-0.8.3-BkxQoXHQAbWGd28nf3VeZ6 mime-types-0.1.0.7-3ciIUWEACqtAI9UjjJR1x0 network-uri-2.6.1.0-4GXMsZ4PWr49y3TK4YgSYK
package http-conduit-2.2.3.2-3H1iTRlmjLCtUsaJETAdB is unusable due to missing dependencies:
  aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y resourcet-1.1.9-L2AvjA6mP5RDwDqcbBVGV9 conduit-1.2.12-3TKiqrYwAuWAgXZB4yMkK1 conduit-extra-1.1.17-LlNYIlAZHtT6LyG0bML71e http-types-0.9.1-4bB5vMj0wc7H0s2DJoYpPW lifted-base-0.2.3.11-KDN0Y8mQMJ08XWJafJpKLJ http-client-0.5.7.0-34w8r0jpuHCHrZw43z9eV5 http-client-tls-0.3.5.1-GGLWCSSIEXSCH48WwAhd8J monad-control-1.0.2.2-IzU5oITMXX63Y9dO6OJIj exceptions-0.8.3-BkxQoXHQAbWGd28nf3VeZ6
package lifted-base-0.2.3.11-KDN0Y8mQMJ08XWJafJpKLJ is unusable due to missing dependencies:
  transformers-base-0.4.4-4U8VJPfvIYIDHbweeHN2Ld monad-control-1.0.2.2-IzU5oITMXX63Y9dO6OJIj
package memory-0.14.8-HEYe2msABjoBOvbV0yaOyF is unusable due to missing dependencies:
  foundation-0.0.15-1zcGyLG87EUA0LQBcgxhid
package monad-control-1.0.2.2-IzU5oITMXX63Y9dO6OJIj is unusable due to missing dependencies:
  transformers-base-0.4.4-4U8VJPfvIYIDHbweeHN2Ld transformers-compat-0.5.1.4-8ofY1OHzPhX5dvYk512o2v
package path-0.6.1-3vYPgWREPZf5twNYNrl9DA is unusable due to missing dependencies:
  aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y exceptions-0.8.3-BkxQoXHQAbWGd28nf3VeZ6
package path-io-1.3.3-9y2ZAmmH7JWFlCY8mqxzwf is unusable due to missing dependencies:
  dlist-0.8.0.3-8XCsMwviZunHg7vFDzvN5q exceptions-0.8.3-BkxQoXHQAbWGd28nf3VeZ6 path-0.6.1-3vYPgWREPZf5twNYNrl9DA temporary-1.2.1.1-JiAl6vZksoXBKGEB3ysIBo
package persistent-2.7.0-DjUoJX0d0HtFg1tSRHDRWr is unusable due to missing dependencies:
  conduit-1.2.12-3TKiqrYwAuWAgXZB4yMkK1 resourcet-1.1.9-L2AvjA6mP5RDwDqcbBVGV9 exceptions-0.8.3-BkxQoXHQAbWGd28nf3VeZ6 monad-control-1.0.2.2-IzU5oITMXX63Y9dO6OJIj lifted-base-0.2.3.11-KDN0Y8mQMJ08XWJafJpKLJ resource-pool-0.2.3.2-Lvu8b2azqmPDyhUQPYb0gG path-pieces-0.2.1-3aB5yqkjw3g6TYHBL5lTHL http-api-data-0.3.7.1-F355QzB7S4d4QWa0UqTiBa aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y monad-logger-0.3.25.1-8lZjdCQwuyLHjwWHPCsxdR transformers-base-0.4.4-4U8VJPfvIYIDHbweeHN2Ld base64-bytestring-1.0.0.1-D9uFxOosRHvGwKtuClA6fm unordered-containers-0.2.8.0-KL4HUdwCmhYBQDTvY5v0GN attoparsec-0.13.2.0-CjTw1SIXl7j4WJB8EsmBPm blaze-html-0.9.0.1-kPi4af1DH04kfw48f7OOh blaze-markup-0.8.0.0-FzqDX3sF5iY7olwigbNHfL silently-1.2.5-4d48ibUelDmLXErYHoAYYi fast-logger-2.4.10-9IKpXM0932554g5cQqP0p7 tagged-0.8.5-7Kuk6etyDBjGPRKMYpsbFG
package persistent-sqlite-2.6.2-JPQ7e65GEPwApiwhYj6DZr is unusable due to missing dependencies:
  persistent-2.7.0-DjUoJX0d0HtFg1tSRHDRWr monad-control-1.0.2.2-IzU5oITMXX63Y9dO6OJIj aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y conduit-1.2.12-3TKiqrYwAuWAgXZB4yMkK1 monad-logger-0.3.25.1-8lZjdCQwuyLHjwWHPCsxdR microlens-th-0.4.1.1-LM8ksjmIHXtDJYY6zPs0W6 resourcet-1.1.9-L2AvjA6mP5RDwDqcbBVGV9 resource-pool-0.2.3.2-Lvu8b2azqmPDyhUQPYb0gG unordered-containers-0.2.8.0-KL4HUdwCmhYBQDTvY5v0GN
package persistent-template-2.5.2-3rU6UEZdge34HVt310iPHi is unusable due to missing dependencies:
  persistent-2.7.0-DjUoJX0d0HtFg1tSRHDRWr monad-control-1.0.2.2-IzU5oITMXX63Y9dO6OJIj aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y aeson-compat-0.3.7.1-3mTGyglO8tqKyDvPHWNKGs monad-logger-0.3.25.1-8lZjdCQwuyLHjwWHPCsxdR unordered-containers-0.2.8.0-KL4HUdwCmhYBQDTvY5v0GN tagged-0.8.5-7Kuk6etyDBjGPRKMYpsbFG path-pieces-0.2.1-3aB5yqkjw3g6TYHBL5lTHL http-api-data-0.3.7.1-F355QzB7S4d4QWa0UqTiBa
package regex-tdfa-1.2.2-1G5AA2OVGrl1AkVWQSHaiw is unusable due to missing dependencies:
  regex-base-0.93.2-JCwi1xoDPWa357q45CDi55
package stack-1.5.1-JuQd4670Qoh2PtoapzSa69 is unusable due to missing dependencies:
  aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y ansi-terminal-0.6.3.1-BIEgiaci8VQ7yyITu4jhfU attoparsec-0.13.2.0-CjTw1SIXl7j4WJB8EsmBPm base64-bytestring-1.0.0.1-D9uFxOosRHvGwKtuClA6fm clock-0.7.2-9fV7rV7wNUo6v6mDurfiVg conduit-1.2.12-3TKiqrYwAuWAgXZB4yMkK1 conduit-extra-1.1.17-LlNYIlAZHtT6LyG0bML71e cryptonite-0.24-JQ3NPvIvMVWG9FHR2Q0Evi cryptonite-conduit-0.2.0-2R7DIuzgGHjBuCR43Zmt4P echo-0.1.3-Bg2uuLn1Ivq5ZBFhk7SHx5 exceptions-0.8.3-BkxQoXHQAbWGd28nf3VeZ6 extra-1.6-21C3t0YQFbADxH75E4GqjW fast-logger-2.4.10-9IKpXM0932554g5cQqP0p7 filelock-0.1.1.2-JHWmlQ6l3jrJvEWghfnV8o fsnotify-0.2.1.1-DlyPuusiJNu6JLzz0E0brN hackage-security-0.5.2.2-DGhcS93k8AW50aWD4VcMbD http-client-0.5.7.0-34w8r0jpuHCHrZw43z9eV5 http-client-tls-0.3.5.1-GGLWCSSIEXSCH48WwAhd8J http-conduit-2.2.3.2-3H1iTRlmjLCtUsaJETAdB http-types-0.9.1-4bB5vMj0wc7H0s2DJoYpPW memory-0.14.8-HEYe2msABjoBOvbV0yaOyF microlens-0.4.8.1-HUhGDwljLwYJLac51xSk3I microlens-mtl-0.1.11.0-LFsRHKdg4sqLRy6hgD5BH2 mintty-0.1.1-Bsv90ffLSDaDtMfAj7LzGz monad-logger-0.3.25.1-8lZjdCQwuyLHjwWHPCsxdR network-uri-2.6.1.0-4GXMsZ4PWr49y3TK4YgSYK open-browser-0.2.1.0-9GpIZqQBF2BDr0ObTk45Hh optparse-applicative-0.14.0.0-CJtbqXiElwvHJ8bj23xDw2 path-0.6.1-3vYPgWREPZf5twNYNrl9DA path-io-1.3.3-9y2ZAmmH7JWFlCY8mqxzwf persistent-2.7.0-DjUoJX0d0HtFg1tSRHDRWr persistent-sqlite-2.6.2-JPQ7e65GEPwApiwhYj6DZr persistent-template-2.5.2-3rU6UEZdge34HVt310iPHi regex-applicative-text-0.1.0.1-1ImOGC9RpgP20T31hHKekk resourcet-1.1.9-L2AvjA6mP5RDwDqcbBVGV9 retry-0.7.4.2-E6erOdhQE7831rjh0wtpDA semigroups-0.18.3-6KPIVJcHqOOBHjBl8WA5LP split-0.2.3.2-89BHvn20PlL73pGr1SBIHj streaming-commons-0.1.18-DO9CaqvVOYhDrA5bma8vy4 tar-0.5.0.3-INtpRXtFzzEKq72z4RSP9M text-metrics-0.3.0-2fIKce8VPEVDGlWFdZY2tk tls-1.4.0-DUjRpAMZEHBIySIXtFteXe unicode-transforms-0.3.3-8gvD6OqHK6vA4hBSaCp1sL unliftio-0.1.0.0-EyJhviKZkDaHKezSnXvFk8 unordered-containers-0.2.8.0-KL4HUdwCmhYBQDTvY5v0GN yaml-0.8.23.3-5PA6FoFimacABkGYYUI5Gr zlib-0.6.1.2-6xNZGE39eOa1IjQdEzckzB hastache-0.6.1-3fO1poQE8BtEBRVUYiLNlq project-template-0.2.0-5dzXnJftSFUEc83a8ZxmpU zip-archive-0.3.1.1-CZhWVZnrHky8oZZ6YlWuu5 hpack-0.18.1-DORLnoDCFbp9Gmr9axcGwr store-0.4.3.2-DPtETIKILTa3e5bbxTAv1R store-core-0.4.1-C2pT4FEtaUh2U12KZ24fZ5 annotated-wl-pprint-0.7.0-8jpXgm4pnh36ZFEJZPnwUC file-embed-0.0.10.1-22oUm17C4yT5YwW0zZXlor pid1-0.1.2.0-36qmT26j7M1DI6Ag8rPZGK bindings-uname-0.1-4pBZRbptuOY8zhPFRj7C2K
package temporary-1.2.1.1-JiAl6vZksoXBKGEB3ysIBo is unusable due to missing dependencies:
  exceptions-0.8.3-BkxQoXHQAbWGd28nf3VeZ6
package tls-1.4.0-DUjRpAMZEHBIySIXtFteXe is unusable due to missing dependencies:
  memory-0.14.8-HEYe2msABjoBOvbV0yaOyF cryptonite-0.24-JQ3NPvIvMVWG9FHR2Q0Evi asn1-types-0.3.2-EtZT2ZJVgtsHoacxlkz9v7 asn1-encoding-0.9.5-IbtBEvbsKOBAFXA8bzYUf0 x509-1.7.2-GGwd2ufTO2hGHMdnUGdGxK x509-store-1.6.5-LD5YvbSiPfH20g7GI1Nnb0 x509-validation-1.6.9-IYzPjAhEFd7JgD8qj1KkV5 async-2.1.1.1-2NW8RVpRWiC9M88FM7mCHc network-2.6.3.2-8o5F7G3DMrLGgmHkPzZYJx
package x509-1.7.2-GGwd2ufTO2hGHMdnUGdGxK is unusable due to missing dependencies:
  memory-0.14.8-HEYe2msABjoBOvbV0yaOyF pem-0.2.2-Jw5Cq7eC5gVJe9WVWNxdzM asn1-types-0.3.2-EtZT2ZJVgtsHoacxlkz9v7 asn1-encoding-0.9.5-IbtBEvbsKOBAFXA8bzYUf0 asn1-parse-0.9.4-7OWbbhf97LUDCjSCKYLIib cryptonite-0.24-JQ3NPvIvMVWG9FHR2Q0Evi
package x509-store-1.6.5-LD5YvbSiPfH20g7GI1Nnb0 is unusable due to missing dependencies:
  pem-0.2.2-Jw5Cq7eC5gVJe9WVWNxdzM asn1-types-0.3.2-EtZT2ZJVgtsHoacxlkz9v7 asn1-encoding-0.9.5-IbtBEvbsKOBAFXA8bzYUf0 cryptonite-0.24-JQ3NPvIvMVWG9FHR2Q0Evi x509-1.7.2-GGwd2ufTO2hGHMdnUGdGxK
package xmonad-0.13-BD2NHZ6woCmKiljsMS6jfz is unusable due to missing dependencies:
  data-default-0.7.1.1-7D2kYbZAPZs3NL2w6K0r5J X11-1.8-AzojZfPPxpn1ROayS1vHXI
package xmonad-contrib-0.13-F6w2BUl1QKWHqJMi0GMBoA is unusable due to missing dependencies:
  X11-1.8-AzojZfPPxpn1ROayS1vHXI X11-xft-0.3.1-2XnXm6tAhCvLTXmqFXJivJ xmonad-0.13-BD2NHZ6woCmKiljsMS6jfz
package yaml-0.8.23.3-5PA6FoFimacABkGYYUI5Gr is unusable due to missing dependencies:
  conduit-1.2.12-3TKiqrYwAuWAgXZB4yMkK1 resourcet-1.1.9-L2AvjA6mP5RDwDqcbBVGV9 aeson-1.2.2.0-HUWi9FT4nd97NZtDZTzF1y unordered-containers-0.2.8.0-KL4HUdwCmhYBQDTvY5v0GN attoparsec-0.13.2.0-CjTw1SIXl7j4WJB8EsmBPm semigroups-0.18.3-6KPIVJcHqOOBHjBl8WA5LP
<command line>: cannot satisfy -package XMonad
    (use -v for more information)

So I'll be reinstalling all those dependencies too.

Last edited by rata (2017-09-22 16:29:44)

Offline

#5 2017-09-22 17:02:27

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

In the end I decided it would be easier to reinstall all haskell libraries so I did

sudo pacman -S `pacman -Qs haskell |grep 'local/' |tr '/' ' ' |awk '{ print $2 }' |grep '^haskell'`

Now when I run

ghci -package XMonad -v

I get

GHCi, version 8.2.1: http://www.haskell.org/ghc/  :? for help
Glasgow Haskell Compiler, Version 8.2.1, stage 2 booted by GHC version 8.2.1
Using binary package database: /usr/lib/ghc-8.2.1/package.conf.d/package.cache
package flags [-package XMonad{package XMonad True ([])}]
loading package database /usr/lib/ghc-8.2.1/package.conf.d
<command line>: cannot satisfy -package XMonad
    (use -v for more information)

However, when I run

ghci

and then

import XMonad

it works. Indeed now

xmonad --recompile

runs without errors.

Offline

#6 2017-09-23 09:29:45

hicksy994
Member
Registered: 2017-09-22
Posts: 14

Re: [Solved] Xmonad error after update

rata wrote:

In the end I decided it would be easier to reinstall all haskell libraries so I did

sudo pacman -S `pacman -Qs haskell |grep 'local/' |tr '/' ' ' |awk '{ print $2 }' |grep '^haskell'`

Now when I run

ghci -package XMonad -v

I get

GHCi, version 8.2.1: http://www.haskell.org/ghc/  :? for help
Glasgow Haskell Compiler, Version 8.2.1, stage 2 booted by GHC version 8.2.1
Using binary package database: /usr/lib/ghc-8.2.1/package.conf.d/package.cache
package flags [-package XMonad{package XMonad True ([])}]
loading package database /usr/lib/ghc-8.2.1/package.conf.d
<command line>: cannot satisfy -package XMonad
    (use -v for more information)

However, when I run

ghci

and then

import XMonad

it works. Indeed now

xmonad --recompile

runs without errors.

Even reinstalling everything doesn't work for me.

Offline

#7 2017-09-23 23:24:14

TrevorBramble
Member
From: Seattle, WA, USA
Registered: 2009-11-12
Posts: 21
Website

Re: [Solved] Xmonad error after update

Reinstalling all the Haskell packages and recompiling Xmonad worked for me.

Last edited by TrevorBramble (2017-09-24 19:33:50)

Offline

#8 2017-09-24 19:31:27

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

hicksy994 wrote:

Even reinstalling everything doesn't work for me.

That's not a very helpful description of your situation. What's the output of pacman when reinstalling xmonad? What's the output of "ghci -package XMonad -v"? What's the output of "xmonad --recompile"?

Offline

#9 2017-09-24 22:13:23

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Solved] Xmonad error after update

Try this:

$ ghc-pkg recache

Offline

#10 2017-09-25 11:11:05

hicksy994
Member
Registered: 2017-09-22
Posts: 14

Re: [Solved] Xmonad error after update

rata wrote:
hicksy994 wrote:

Even reinstalling everything doesn't work for me.

That's not a very helpful description of your situation. What's the output of pacman when reinstalling xmonad? What's the output of "ghci -package XMonad -v"? What's the output of "xmonad --recompile"?

Output of reinstalling XMonad:

(1/2) Registering Haskell modules...
xmonad-contrib-0.13: Warning: haddock-interfaces: /usr/share/doc/xmonad-contrib/html/xmonad-contrib.haddock doesn't exist or isn't a file
xmonad-contrib-0.13: Warning: haddock-html: /usr/share/doc/xmonad-contrib/html doesn't exist or isn't a directory
xmonad-contrib-0.13: dependency "xmonad-0.13-BD2NHZ6woCmKiljsMS6jfz" doesn't exist (ignoring)
xmonad-0.13: Warning: haddock-interfaces: /usr/share/doc/xmonad/html/xmonad.haddock doesn't exist or isn't a file
xmonad-0.13: Warning: haddock-html: /usr/share/doc/xmonad/html doesn't exist or isn't a directory
(2/2) Arming ConditionNeedsUpdate...

Output of ghci -package XMonad -v:

cannot satisfy -package XMonad

Strangely, xmonad --recompile seems to work, does xmonad compile itself with something other than just ghc?

Offline

#11 2017-09-25 14:59:11

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Solved] Xmonad error after update

The package name contains all lower case letters:

~ > ghc-pkg list | grep -i xmonad
    xmonad-0.13
    xmonad-contrib-0.13
~ > ghc-pkg list xmonad
/usr/lib/ghc-8.2.1/package.conf.d
    xmonad-0.13

Offline

#12 2017-09-25 16:55:33

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

hicksy994 wrote:

Output of reinstalling XMonad:

(1/2) Registering Haskell modules...
xmonad-contrib-0.13: Warning: haddock-interfaces: /usr/share/doc/xmonad-contrib/html/xmonad-contrib.haddock doesn't exist or isn't a file
xmonad-contrib-0.13: Warning: haddock-html: /usr/share/doc/xmonad-contrib/html doesn't exist or isn't a directory
xmonad-contrib-0.13: dependency "xmonad-0.13-BD2NHZ6woCmKiljsMS6jfz" doesn't exist (ignoring)
xmonad-0.13: Warning: haddock-interfaces: /usr/share/doc/xmonad/html/xmonad.haddock doesn't exist or isn't a file
xmonad-0.13: Warning: haddock-html: /usr/share/doc/xmonad/html doesn't exist or isn't a directory
(2/2) Arming ConditionNeedsUpdate...

That's not the output of reinstalling xmonad. That's the output of reinstalling xmonad-contrib. Not very useful.

Btw, you can use

[code]output here[/code]

to put the output text in a nice box.

hicksy994 wrote:

Output of ghci -package XMonad -v:

cannot satisfy -package XMonad

That's not the full output. Again not very useful. As pointed out by skottish, the command should be

ghci -package xmonad -v
hicksy994 wrote:

Strangely, xmonad --recompile seems to work, does xmonad compile itself with something other than just ghc?

No, it uses ghc as far as I know. So you don't really have a problem compiling xmonad. What's the problem you'd like to solve then?

Offline

#13 2017-09-25 18:45:41

hicksy994
Member
Registered: 2017-09-22
Posts: 14

Re: [Solved] Xmonad error after update

rata wrote:
hicksy994 wrote:

Output of reinstalling XMonad:

(1/2) Registering Haskell modules...
xmonad-contrib-0.13: Warning: haddock-interfaces: /usr/share/doc/xmonad-contrib/html/xmonad-contrib.haddock doesn't exist or isn't a file
xmonad-contrib-0.13: Warning: haddock-html: /usr/share/doc/xmonad-contrib/html doesn't exist or isn't a directory
xmonad-contrib-0.13: dependency "xmonad-0.13-BD2NHZ6woCmKiljsMS6jfz" doesn't exist (ignoring)
xmonad-0.13: Warning: haddock-interfaces: /usr/share/doc/xmonad/html/xmonad.haddock doesn't exist or isn't a file
xmonad-0.13: Warning: haddock-html: /usr/share/doc/xmonad/html doesn't exist or isn't a directory
(2/2) Arming ConditionNeedsUpdate...

That's not the output of reinstalling xmonad. That's the output of reinstalling xmonad-contrib. Not very useful.

Btw, you can use

[code]output here[/code]

to put the output text in a nice box.

hicksy994 wrote:

Output of ghci -package XMonad -v:

cannot satisfy -package XMonad

That's not the full output. Again not very useful. As pointed out by skottish, the command should be

ghci -package xmonad -v
hicksy994 wrote:

Strangely, xmonad --recompile seems to work, does xmonad compile itself with something other than just ghc?

No, it uses ghc as far as I know. So you don't really have a problem compiling xmonad. What's the problem you'd like to solve then?

Well GHC still doesn't work. It can't find any modules.

Offline

#14 2017-09-25 18:59:04

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

hicksy994 wrote:

Well GHC still doesn't work. It can't find any modules.

Too bad man. You've got to give more info if you want to get help.

Offline

#15 2017-09-25 19:20:53

olig1905
Member
Registered: 2012-01-21
Posts: 32

Re: [Solved] Xmonad error after update

I have this same issue with another application using haskell. I install it with cabal, here is the output of my cabal install:

 [oli@XPS13 async-2.1.1.1]$ cabal install tidal
Resolving dependencies...
Configuring blaze-builder-0.4.0.2...
Configuring case-insensitive-1.2.0.10...
Configuring colour-2.3.3...
Configuring SHA-1.6.4.2...
Building colour-2.3.3...
Building case-insensitive-1.2.0.10...
Building blaze-builder-0.4.0.2...
Building SHA-1.6.4.2...
Failed to install colour-2.3.3
Build log ( /home/oli/.cabal/logs/ghc-8.2.1/colour-2.3.3-4GTcWhusU4z5FdC5GspM4b.log ):
cabal: Entering directory '/tmp/cabal-tmp-4356/colour-2.3.3'
Configuring colour-2.3.3...
Preprocessing library for colour-2.3.3..
Building library for colour-2.3.3..
[ 1 of 14] Compiling Data.Colour.CIE.Chromaticity ( Data/Colour/CIE/Chromaticity.hs, dist/build/Data/Colour/CIE/Chromaticity.o )

Data/Colour/CIE/Chromaticity.hs:23:8: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
23 | module Data.Colour.CIE.Chromaticity where
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-4356/colour-2.3.3'
Configuring data-binary-ieee754-0.4.4...
Failed to install case-insensitive-1.2.0.10
Build log ( /home/oli/.cabal/logs/ghc-8.2.1/case-insensitive-1.2.0.10-GiqHNFLmTyC5j1YcOThuQ1.log ):
cabal: Entering directory '/tmp/cabal-tmp-4355/case-insensitive-1.2.0.10'
Configuring case-insensitive-1.2.0.10...
Preprocessing library for case-insensitive-1.2.0.10..
Building library for case-insensitive-1.2.0.10..
[1 of 3] Compiling Data.CaseInsensitive.Internal ( Data/CaseInsensitive/Internal.hs, dist/build/Data/CaseInsensitive/Internal.o )

Data/CaseInsensitive/Internal.hs:33:1: error:
    Could not find module ‘Data.Bool’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
33 | import Data.Bool      ( (||) )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:34:1: error:
    Could not find module ‘Data.Char’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
34 | import Data.Char      ( Char, toLower )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:35:1: error:
    Could not find module ‘Data.Eq’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
35 | import Data.Eq        ( Eq, (==) )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:36:1: error:
    Could not find module ‘Data.Function’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
36 | import Data.Function  ( on )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:37:1: error:
    Could not find module ‘Data.Monoid’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
37 | import Data.Monoid    ( Monoid, mempty, mappend )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:38:1: error:
    Could not find module ‘Data.Ord’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
38 | import Data.Ord       ( Ord, compare )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:39:1: error:
    Could not find module ‘Data.String’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
39 | import Data.String    ( IsString, fromString )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:40:1: error:
    Could not find module ‘Data.Data’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
40 | import Data.Data      ( Data )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:41:1: error:
    Could not find module ‘Data.Typeable’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
41 | import Data.Typeable  ( Typeable )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:42:1: error:
    Could not find module ‘Data.Word’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
42 | import Data.Word      ( Word8 )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:43:1: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
43 | import Prelude        ( (.), fmap, (&&), (+), (<=), otherwise )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:44:1: error:
    Could not find module ‘Text.Read’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
44 | import Text.Read      ( Read, readPrec )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:45:1: error:
    Could not find module ‘Text.Show’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
45 | import Text.Show      ( Show, showsPrec )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:46:1: error:
    Could not find module ‘Data.Semigroup’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
46 | import Data.Semigroup ( Semigroup, (<>) )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:48:1: error:
    Could not find module ‘Data.List’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
48 | import qualified Data.List as L ( map )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:56:1: error:
    Could not find module ‘Data.ByteString’
    There are files missing in the ‘bytestring-0.10.8.2’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
56 | import qualified Data.ByteString      as B  ( ByteString, map )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:57:1: error:
    Could not find module ‘Data.ByteString.Lazy’
    There are files missing in the ‘bytestring-0.10.8.2’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
57 | import qualified Data.ByteString.Lazy as BL ( ByteString, map )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:60:1: error:
    Could not find module ‘Data.Text’
    There are files missing in the ‘text-1.2.2.2’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
60 | import qualified Data.Text      as T  ( Text, toCaseFold )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:61:1: error:
    Could not find module ‘Data.Text.Lazy’
    There are files missing in the ‘text-1.2.2.2’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
61 | import qualified Data.Text.Lazy as TL ( Text, toCaseFold, pack, unpack )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:64:1: error:
    Could not find module ‘Control.DeepSeq’
    There are files missing in the ‘deepseq-1.4.3.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
64 | import Control.DeepSeq ( NFData, rnf, deepseq )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Data/CaseInsensitive/Internal.hs:67:1: error:
    Could not find module ‘Data.Hashable’
    There are files missing in the ‘hashable-1.2.6.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
67 | import Data.Hashable ( Hashable, hashWithSalt )
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-4355/case-insensitive-1.2.0.10'
Failed to install blaze-builder-0.4.0.2
Build log ( /home/oli/.cabal/logs/ghc-8.2.1/blaze-builder-0.4.0.2-9jN75sESh05JfWRLWr51Wl.log ):
cabal: Entering directory '/tmp/cabal-tmp-4354/blaze-builder-0.4.0.2'
Configuring blaze-builder-0.4.0.2...
Preprocessing library for blaze-builder-0.4.0.2..
Building library for blaze-builder-0.4.0.2..
[ 1 of 10] Compiling Blaze.ByteString.Builder.Internal.Write ( Blaze/ByteString/Builder/Internal/Write.hs, dist/build/Blaze/ByteString/Builder/Internal/Write.o )

Blaze/ByteString/Builder/Internal/Write.hs:18:8: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
18 | module Blaze.ByteString.Builder.Internal.Write (
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Blaze/ByteString/Builder/Internal/Write.hs:50:1: error:
    Could not find module ‘Foreign’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
50 | import Foreign
   | ^^^^^^^^^^^^^^

Blaze/ByteString/Builder/Internal/Write.hs:52:1: error:
    Could not find module ‘Control.Monad’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
52 | import Control.Monad
   | ^^^^^^^^^^^^^^^^^^^^

Blaze/ByteString/Builder/Internal/Write.hs:54:1: error:
    Could not find module ‘Data.ByteString.Builder.Internal’
    There are files missing in the ‘bytestring-0.10.8.2’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
54 | import Data.ByteString.Builder.Internal
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-4354/blaze-builder-0.4.0.2'
Failed to install SHA-1.6.4.2
Build log ( /home/oli/.cabal/logs/ghc-8.2.1/SHA-1.6.4.2-BFIBO7i65E6HsO6Fy2Jbdf.log ):
cabal: Entering directory '/tmp/cabal-tmp-4353/SHA-1.6.4.2'
Configuring SHA-1.6.4.2...
Preprocessing library for SHA-1.6.4.2..
Building library for SHA-1.6.4.2..
[1 of 1] Compiling Data.Digest.Pure.SHA ( src/Data/Digest/Pure/SHA.hs, dist/build/Data/Digest/Pure/SHA.o )

src/Data/Digest/Pure/SHA.hs:5:8: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
  |
5 | module Data.Digest.Pure.SHA
  |        ^^^^^^^^^^^^^^^^^^^^

src/Data/Digest/Pure/SHA.hs:42:1: error:
    Could not find module ‘Data.Binary’
    There are files missing in the ‘binary-0.8.5.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
42 | import Data.Binary
   | ^^^^^^^^^^^^^^^^^^

src/Data/Digest/Pure/SHA.hs:43:1: error:
    Could not find module ‘Data.Binary.Get’
    There are files missing in the ‘binary-0.8.5.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
43 | import Data.Binary.Get
   | ^^^^^^^^^^^^^^^^^^^^^^

src/Data/Digest/Pure/SHA.hs:44:1: error:
    Could not find module ‘Data.Binary.Put’
    There are files missing in the ‘binary-0.8.5.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
44 | import Data.Binary.Put
   | ^^^^^^^^^^^^^^^^^^^^^^

src/Data/Digest/Pure/SHA.hs:45:1: error:
    Could not find module ‘Data.Bits’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
45 | import Data.Bits
   | ^^^^^^^^^^^^^^^^

src/Data/Digest/Pure/SHA.hs:46:1: error:
    Could not find module ‘Data.ByteString.Lazy’
    There are files missing in the ‘bytestring-0.10.8.2’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
46 | import Data.ByteString.Lazy(ByteString)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Digest/Pure/SHA.hs:47:1: error:
    Could not find module ‘Data.ByteString.Lazy’
    There are files missing in the ‘bytestring-0.10.8.2’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
47 | import qualified Data.ByteString.Lazy as BS
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Digest/Pure/SHA.hs:48:1: error:
    Could not find module ‘Data.ByteString’
    There are files missing in the ‘bytestring-0.10.8.2’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
48 | import qualified Data.ByteString as SBS
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Digest/Pure/SHA.hs:49:1: error:
    Could not find module ‘Data.Char’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
49 | import Data.Char (intToDigit)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Data/Digest/Pure/SHA.hs:50:1: error:
    Could not find module ‘Data.List’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
50 | import Data.List (foldl')
   | ^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-4353/SHA-1.6.4.2'
Building data-binary-ieee754-0.4.4...
Failed to install data-binary-ieee754-0.4.4
Build log ( /home/oli/.cabal/logs/ghc-8.2.1/data-binary-ieee754-0.4.4-AeazHSDlclYKQFsNsak7mZ.log ):
cabal: Entering directory '/tmp/cabal-tmp-4356/data-binary-ieee754-0.4.4'
Configuring data-binary-ieee754-0.4.4...
Preprocessing library for data-binary-ieee754-0.4.4..
Building library for data-binary-ieee754-0.4.4..
[1 of 1] Compiling Data.Binary.IEEE754 ( lib/Data/Binary/IEEE754.hs, dist/build/Data/Binary/IEEE754.o )

lib/Data/Binary/IEEE754.hs:26:1: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
26 | import           Prelude hiding (exp)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

lib/Data/Binary/IEEE754.hs:27:1: error:
    Could not find module ‘Data.Bits’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
27 | import           Data.Bits (shiftL, shiftR, (.|.), (.&.))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

lib/Data/Binary/IEEE754.hs:28:1: error:
    Could not find module ‘Foreign’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
28 | import qualified Foreign as F
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

lib/Data/Binary/IEEE754.hs:29:1: error:
    Could not find module ‘System.IO.Unsafe’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
29 | import           System.IO.Unsafe (unsafePerformIO)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

lib/Data/Binary/IEEE754.hs:31:1: error:
    Could not find module ‘Data.Binary.Get’
    There are files missing in the ‘binary-0.8.5.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
31 | import qualified Data.Binary.Get as G
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

lib/Data/Binary/IEEE754.hs:32:1: error:
    Could not find module ‘Data.Binary.Put’
    There are files missing in the ‘binary-0.8.5.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
32 | import qualified Data.Binary.Put as P
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-4356/data-binary-ieee754-0.4.4'
cabal: Error: some packages failed to install:
SHA-1.6.4.2-BFIBO7i65E6HsO6Fy2Jbdf failed during the building phase. The
exception was:
ExitFailure 1
blaze-builder-0.4.0.2-9jN75sESh05JfWRLWr51Wl failed during the building phase.
The exception was:
ExitFailure 1
case-insensitive-1.2.0.10-GiqHNFLmTyC5j1YcOThuQ1 failed during the building
phase. The exception was:
ExitFailure 1
colour-2.3.3-4GTcWhusU4z5FdC5GspM4b failed during the building phase. The
exception was:
ExitFailure 1
data-binary-ieee754-0.4.4-AeazHSDlclYKQFsNsak7mZ failed during the building
phase. The exception was:
ExitFailure 1
hosc-0.15-mdGCu8k9pkC8sqswiLkvH depends on hosc-0.15 which failed to install.
streaming-commons-0.1.18-DO9CaqvVOYhDrA5bma8vy4 depends on
streaming-commons-0.1.18 which failed to install.
tidal-0.9.4-dZJBKsyfbeF4QtQCUZ1ZZ depends on tidal-0.9.4 which failed to
install.
websockets-0.12.2.0-75xnZz5xzKK1S1myrCZUCI depends on websockets-0.12.2.0
which failed to install.

Output of ghc-pkg check:

[oli@XPS13 async-2.1.1.1]$ ghc-pkg check
Warning: haddock-interfaces: /usr/share/doc/xmonad/html/xmonad.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/xmonad/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-x11/html/X11.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-x11/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-utf8-string/html/utf8-string.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-utf8-string/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-setlocale/html/setlocale.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-setlocale/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-old-locale/html/old-locale.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-old-locale/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-extensible-exceptions/html/extensible-exceptions.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-extensible-exceptions/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-dlist/html/dlist.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-dlist/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-data-default/html/data-default.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-data-default/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-data-default-instances-old-locale/html/data-default-instances-old-locale.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-data-default-instances-old-locale/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-data-default-instances-dlist/html/data-default-instances-dlist.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-data-default-instances-dlist/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-data-default-instances-containers/html/data-default-instances-containers.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-data-default-instances-containers/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-data-default-class/html/data-default-class.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-data-default-class/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-zlib/html/zlib.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-zlib/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-text/html/text.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-text/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-tar/html/tar.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-tar/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-stm/html/stm.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-stm/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-random/html/random.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-random/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-parsec/html/parsec.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-parsec/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-network/html/network.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-network/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-network-uri/html/network-uri.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-network-uri/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-mtl/html/mtl.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-mtl/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-http/html/HTTP.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-http/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-hashable/html/hashable.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-hashable/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-hackage-security/html/hackage-security.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-hackage-security/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-edit-distance/html/edit-distance.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-edit-distance/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-ed25519/html/ed25519.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-ed25519/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-echo/html/echo.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-echo/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-cryptohash-sha256/html/cryptohash-sha256.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-cryptohash-sha256/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-base64-bytestring/html/base64-bytestring.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-base64-bytestring/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-base16-bytestring/html/base16-bytestring.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-base16-bytestring/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/haskell-async/html/async.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/haskell-async/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/hoopl-3.10.2.2/hoopl.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/hoopl-3.10.2.2 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/filepath-1.4.1.2/filepath.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/filepath-1.4.1.2 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/containers-0.5.10.2/containers.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/containers-0.5.10.2 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/bytestring-0.10.8.2/bytestring.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/bytestring-0.10.8.2 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/ghc-8.2.1/ghc.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/ghc-8.2.1 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/ghc-compact-0.1.0.0/ghc-compact.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/ghc-compact-0.1.0.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/base-4.10.0.0/base.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/base-4.10.0.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/unix-2.7.2.2/unix.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/unix-2.7.2.2 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/transformers-0.5.2.0/transformers.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/transformers-0.5.2.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/terminfo-0.4.1.0/terminfo.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/terminfo-0.4.1.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/array-0.5.2.0/array.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/array-0.5.2.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/template-haskell-2.12.0.0/template-haskell.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/template-haskell-2.12.0.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/directory-1.3.0.2/directory.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/directory-1.3.0.2 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/process-1.6.1.0/process.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/process-1.6.1.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/pretty-1.1.3.3/pretty.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/pretty-1.1.3.3 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/Cabal-2.0.0.2/Cabal.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/Cabal-2.0.0.2 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/ghc-boot-8.2.1/ghc-boot.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/ghc-boot-8.2.1 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/ghci-8.2.1/ghci.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/ghci-8.2.1 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/time-1.8.0.2/time.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/time-1.8.0.2 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/deepseq-1.4.3.0/deepseq.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/deepseq-1.4.3.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/binary-0.8.5.1/binary.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/binary-0.8.5.1 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/ghc-prim-0.5.1.0/ghc-prim.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/ghc-prim-0.5.1.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/integer-gmp-1.0.1.0/integer-gmp.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/integer-gmp-1.0.1.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/xhtml-3000.2.2/xhtml.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/xhtml-3000.2.2 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/hpc-0.6.0.3/hpc.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/hpc-0.6.0.3 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/haskeline-0.7.4.0/haskeline.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/haskeline-0.7.4.0 doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/share/doc/ghc/html/libraries/ghc-boot-th-8.2.1/ghc-boot-th.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/ghc/html/libraries/ghc-boot-th-8.2.1 doesn't exist or isn't a directory

I think we need to raise a bug report on the affected packages.

Offline

#16 2017-09-25 20:11:13

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

olig1905, did you try using ghc-pkg recache?

Offline

#17 2017-09-25 20:28:45

olig1905
Member
Registered: 2012-01-21
Posts: 32

Re: [Solved] Xmonad error after update

yes and I have also uninstalled everything haskell related then:

rm -rf ~/.ghc && rm -rf ~/.cabal

And reinstalled everything and still see the issue.

Offline

#18 2017-09-25 20:34:45

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

What happens when you run ghci and try importing any library? (eg import Data.Bool)
Do you see any libraries installed when you run ghc-pkg list?

Offline

#19 2017-09-25 20:41:02

olig1905
Member
Registered: 2012-01-21
Posts: 32

Re: [Solved] Xmonad error after update

seth pointed out that the documentation is being dropped: https://git.archlinux.org/svntogit/comm … 5e4e781829

This seems to be the problem as far as I can tell and even if it's not it is causing alot of warnings.

Offline

#20 2017-09-25 20:44:12

olig1905
Member
Registered: 2012-01-21
Posts: 32

Re: [Solved] Xmonad error after update

Yes i can import libraries and they are listed when I run ghc-pkg list. Don't know how I missed your update before posting that.

Offline

#21 2017-09-25 21:03:40

hicksy994
Member
Registered: 2017-09-22
Posts: 14

Re: [Solved] Xmonad error after update

rata wrote:
hicksy994 wrote:

Well GHC still doesn't work. It can't find any modules.

Too bad man. You've got to give more info if you want to get help.

I don't see what more info I can give?

Offline

#22 2017-09-25 21:05:13

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

olig1905 wrote:

Yes i can import libraries and they are listed when I run ghc-pkg list. Don't know how I missed your update before posting that.

Yeah don't worry about the warnings. If there is still a problem, it's something else. It's probably a problem with the environment cabal is creating for the compilation of tidal, since ghc sees and loads the libraries.

Offline

#23 2017-09-25 21:07:07

olig1905
Member
Registered: 2012-01-21
Posts: 32

Re: [Solved] Xmonad error after update

a super simple example of this error is to try and install colour with cabal as it only uses prelude:

[oli@XPS13 async-2.1.1.1]$ cabal install colour
Resolving dependencies...
Configuring colour-2.3.3...
Building colour-2.3.3...
Failed to install colour-2.3.3
Build log ( /home/oli/.cabal/logs/ghc-8.2.1/colour-2.3.3-4GTcWhusU4z5FdC5GspM4b.log ):
cabal: Entering directory '/tmp/cabal-tmp-9538/colour-2.3.3'
Configuring colour-2.3.3...
Preprocessing library for colour-2.3.3..
Building library for colour-2.3.3..
[ 1 of 14] Compiling Data.Colour.CIE.Chromaticity ( Data/Colour/CIE/Chromaticity.hs, dist/build/Data/Colour/CIE/Chromaticity.o )

Data/Colour/CIE/Chromaticity.hs:23:8: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.10.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
23 | module Data.Colour.CIE.Chromaticity where
   |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-9538/colour-2.3.3'
cabal: Error: some packages failed to install:
colour-2.3.3-4GTcWhusU4z5FdC5GspM4b failed during the building phase. The
exception was:
ExitFailure 1

Offline

#24 2017-09-25 21:07:50

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

hicksy994 wrote:

I don't see what more info I can give?

You could start by giving the actual output of reinstalling xmonad with pacman, the full output of ghci -package xmonad -v, and telling us what problem you're trying to solve.

Offline

#25 2017-09-25 21:17:58

rata
Member
Registered: 2006-04-10
Posts: 46

Re: [Solved] Xmonad error after update

olig1905 wrote:

a super simple example of this error is to try and install colour with cabal as it only uses prelude

You should probably start a new thread since that problem is unrelated to the one discussed here as far as I can tell. Or maybe send a bug report to either the cabal developers or the arch dev that packages cabal, depending on where you think the problem is. I'd like to help you but I don't like using cabal since it doesn't really know how to uninstall libraries. It just keeps installing stuff without removing the old versions and then you end up with version problems and a mess in the ghc package database. I'd recommend you try using stack instead.

Offline

Board footer

Powered by FluxBB