而执行《公约》就足够了。
cabal install --package-env=$HOME/.config/xmonad --lib base xmonad xmonad-contrib
但我不理解的是:
- why did this work?
- Why updating GHC via GHCup "breaks" the modules?
- When I write "breaks", given the original question below, should I say "hides"?
- What is a hidden package?
- Is executing
cabal install --lib the-stuff-that-hls-claims-hidden
wrong? - What is the correct way of updating with GHCup? (As apparently just running
ghcup tui
and doing i and s on new stuff and u on old stuff leaves things in a bad state.)
我认为,它们都到了某个点:我对全球升温潜能值和整个哈萨克尔生态系统的误解。
Orignal question
当我开始使用XMonad时,我有很强的运行时间,原因是我通过<代码>pacman<>/code>安装了像任何其他方案一样的编号,因为I m安装在Archi,但我还有ghc
安装在我的家中,安装在ghcup
上,并通过PATH
。 最后,我在Arch64/1/a>论坛,并设法解决问题。
当时,我选择通过<代码>cabal安装ghcup tui
是一种非常方便的方式,可采用最近建议的HLS版本,即最新版本的卡布拉语,即最新推荐和增强能力的新GHC版本。
我认为,我知道通过<代码>cabal安装的XMonad的含义是什么。
但是,显然我错了:我刚刚通过GHCup0.1.20.0更新至GHC9.4.8, Cabal 3.10.2.1,以及HLS 2.5.0.0.。
......而且现在我可以重复X Monad,这一错误与“我找不到一件事”的行文相同,因为你可以看到:
Errors detected while compiling xmonad config: /home/enlico/.config/xmonad/xmonad.hs
$ ghc --make xmonad.hs -i -ilib -fforce-recomp -main-is main -v0 -outputdir /home/enlico/.cache/xmonad/build-x86_64-linux -o /home/enlico/.cache/xmonad/xmonad-x86_64-linux
xmonad.hs:2:1: error:
Could not find module ‘XMonad’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
2 | import XMonad
| ^^^^^^^^^^^^^
xmonad.hs:3:1: error:
Could not find module ‘XMonad.Hooks.DynamicLog’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
3 | import XMonad.Hooks.DynamicLog
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
xmonad.hs:4:1: error:
Could not find module ‘XMonad.Hooks.EwmhDesktops’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
4 | import XMonad.Hooks.EwmhDesktops
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
xmonad.hs:5:1: error:
Could not find module ‘XMonad.Hooks.StatusBar’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
5 | import XMonad.Hooks.StatusBar
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
xmonad.hs:6:1: error:
Could not find module ‘XMonad.Hooks.StatusBar.PP’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
6 | import XMonad.Hooks.StatusBar.PP
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
xmonad.hs:7:1: error:
Could not find module ‘XMonad.Layout.NoBorders’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
7 | import XMonad.Layout.NoBorders
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
xmonad.hs:8:1: error:
Could not find module ‘XMonad.Layout.Spacing’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
8 | import XMonad.Layout.Spacing
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
xmonad.hs:9:1: error:
Could not find module ‘XMonad.Util.EZConfig’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
9 | import XMonad.Util.EZConfig (additionalKeysP)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
xmonad.hs:10:1: error:
Could not find module ‘XMonad.Util.Loggers’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
10 | import XMonad.Util.Loggers
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
xmonad.hs:11:1: error:
Could not find module ‘XMonad.Util.Ungrab’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
11 | import XMonad.Util.Ungrab
| ^^^^^^^^^^^^^^^^^^^^^^^^^
xmonad.hs:12:1: error:
Could not find module ‘XMonad.StackSet’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.
|
12 | import qualified XMonad.StackSet as W
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
试图确定事情的失败之处是:
cabal install --overwrite-policy=always --package-env=$HOME/.config/xmonad xmonad xmonad-contrib
以上错误是XMonad重新编造的,但我知道,为了将错误带往这里,我再进行再婚,因此,我不相信在我管理上述<条码>后X Monad权利重新编造时,错误是完全相同的。
顺便提一下的是,当我通过GHCup进行更新时,与一些单元相比,情况是错误的。
例如,现在,我就开启了用于 ha笑挑战或某种东西的星号卷宗一。
import Flow ((|>))
校正
但在重载HLS时,另一行显示有错误:
import qualified Data.Map.Strict as M
我现在宣读的错误是:
Could not load module ‘Data.Map.Strict’
It is a member of the hidden package ‘containers-0.6.7’.
You can run ‘:set -package containers’ to expose it.
(Note: this unloads all the modules in the current scope.)
和执行<条码> bal 装置—— 平衡集装箱 固定装置是正确的步骤?