- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我看到其他几个人也有同样的问题,但是没有一个解决方案对我有用。下面的命令+输出主要是我试过的。我发帖 1) 因为我一直坚持这个问题 2) 我想在另一篇文章中发表评论,但我没有声誉 :(
我已经重新安装了我的操作系统 (arch linux),只保留了我的主文件,但是我删除了 .stack、.ghc 和 .cabal 文件夹。
yay -S xmonad xmonad-contrib
堆栈安装 xmonad xmonad-contrib
sudo ghc-pkg recache
xmonad --recompile
:
XMonad will use ghc to recompile, because "/home/trey/.xmonad/build" does not exist.
Error detected while loading xmonad configuration file: /home/trey/.xmonad/xmonad.hs
xmonad.hs:7:1: error:
Could not find module `XMonad'
There are files missing in the `xmonad-0.15' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
|
7 | import XMonad
| ^^^^^^^^^^^^^
... 适用于所有 xmonad 相关模块
ghc-pkg 检查
:
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/xmonad-contrib/html/xmonad-contrib.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/share/doc/xmonad-contrib/html doesn't exist or `
... 返回大约 800 行左右的此类警告,但由于某些原因无法正常复制,因此我无法复制这些警告。如果您确实需要查看整个输出,我会找到解决方案。
ghc-pkg 列表
:
/usr/lib/ghc-8.6.5/package.conf.d
Cabal-2.4.0.1
Glob-0.10.0
HTTP-4000.3.14
Only-0.1
StateVar-1.1.1.1
X11-1.9.1
X11-xft-0.3.1
aeson-1.4.6.0
annotated-wl-pprint-0.7.0
ansi-terminal-0.9.1
ansi-wl-pprint-0.6.9
array-0.5.3.0
asn1-encoding-0.9.6
asn1-parse-0.9.5
asn1-types-0.3.3
async-2.2.2
attoparsec-0.13.2.3
attoparsec-iso8601-1.0.1.0
auto-update-0.1.6
base-4.12.0.0
base-compat-0.10.5
base-orphans-0.8.1
base-prelude-1.3
base16-bytestring-0.1.1.6
base64-bytestring-1.0.0.2
basement-0.0.11
bifunctors-5.5.6
binary-0.8.6.0
bindings-uname-0.1
bitarray-0.0.1.1
blaze-builder-0.4.1.0
blaze-html-0.9.1.2
blaze-markup-0.8.2.3
byteable-0.1.1
bytestring-0.10.8.2
case-insensitive-1.2.1.0
cereal-0.5.8.1
clock-0.8
cmdargs-0.10.20
colour-2.3.5
comonad-5.0.6
conduit-1.3.1.2
conduit-extra-1.3.4
connection-0.3.1
constraints-0.11.2
containers-0.6.0.1
contravariant-1.5.2
cookie-0.4.5
cryptohash-sha256-0.11.101.0
cryptonite-0.26
cryptonite-conduit-0.2.2
data-default-0.7.1.1
data-default-class-0.1.2.0
data-default-instances-containers-0.0.1
data-default-instances-dlist-0.0.1
data-default-instances-old-locale-0.0.1
deepseq-1.4.4.0
digest-0.0.1.2
directory-1.3.3.0
distributive-0.6.1
dlist-0.8.0.7
easy-file-0.2.2
echo-0.1.3
ed25519-0.0.5.0
edit-distance-0.2.2.1
either-5.0.1.1
enclosed-exceptions-1.0.3
exceptions-0.10.3
extensible-exceptions-0.1.1.4
extra-1.6.18
fast-logger-3.0.0
file-embed-0.0.11.1
filelock-0.1.1.4
filepath-1.4.2.1
fsnotify-0.3.0.1
generic-deriving-1.12.4
(ghc-8.6.5)
ghc-boot-8.6.5
ghc-boot-th-8.6.5
ghc-compact-0.1.0.0
ghc-heap-8.6.5
ghc-prim-0.5.3
ghci-8.6.5
githash-0.1.3.3
hackage-security-0.5.3.0
haddock-library-1.7.0
hashable-1.2.7.0
haskeline-0.7.4.3
hi-file-parser-0.1.0.0
hinotify-0.4
hourglass-0.2.12
hpack-0.33.0
hpc-0.6.0.3
http-api-data-0.4.1.1
http-client-0.6.4
http-client-tls-0.3.5.3
http-conduit-2.3.7.3
http-download-0.1.0.0
http-types-0.12.3
infer-license-0.2.0
integer-gmp-1.0.2.0
integer-logarithms-1.0.3
libiserv-8.6.3
libyaml-0.1.1.1
lifted-async-0.10.0.4
lifted-base-0.2.3.12
megaparsec-7.0.5
memory-0.14.18
microlens-0.4.11.2
microlens-th-0.4.3.2
mime-types-0.1.0.9
mintty-0.1.2
monad-control-1.0.2.3
monad-logger-0.3.31
monad-loops-0.4.3
mono-traversable-1.0.13.0
mtl-2.2.2
mustache-2.3.0
neat-interpolation-0.3.2.5
network-2.8.0.0
network-uri-2.6.1.0
old-locale-1.0.0.7
old-time-1.1.0.3
open-browser-0.2.1.0
optparse-applicative-0.14.3.0
optparse-generic-1.3.0
optparse-simple-0.1.1.2
pantry-0.1.1.1
parsec-3.1.13.0
parser-combinators-1.2.1
path-0.6.1
path-io-1.4.2
path-pieces-0.2.1
pem-0.2.4
persistent-2.10.4
persistent-sqlite-2.10.5
persistent-template-2.7.3
pretty-1.1.3.6
primitive-0.6.4.0
process-1.6.5.0
profunctors-5.5.1
project-template-0.2.0.1
random-1.1
regex-applicative-0.3.3.1
regex-applicative-text-0.1.0.1
resolv-0.1.1.1
resource-pool-0.2.3.2
resourcet-1.2.2
retry-0.8.1.0
rio-0.1.12.0
rio-orphans-0.1.1.0
rio-prettyprint-0.1.0.0
rts-1.0
safe-0.3.18
safe-exceptions-0.1.7.0
scientific-0.3.6.2
semigroupoids-5.3.3
setlocale-1.0.0.9
shelly-1.8.1
silently-1.2.5.1
socks-0.6.1
split-0.2.3.3
stack-2.1.3
stm-2.5.0.0
stm-chans-3.0.0.4
streaming-commons-0.2.1.1
syb-0.7.1
system-fileio-0.3.16.4
system-filepath-0.4.14
tagged-0.8.6
tar-0.5.1.1
tar-conduit-0.3.2
template-haskell-2.14.0.0
temporary-1.3
terminal-size-0.3.2.1
terminfo-0.4.1.2
text-1.2.3.1
text-metrics-0.3.0
th-abstraction-0.3.1.0
th-expand-syns-0.4.5.0
th-lift-0.8.0.1
th-lift-instances-0.1.14
th-orphans-0.13.9
th-reify-many-0.1.9
th-utilities-0.2.3.1
time-1.8.0.2
time-compat-1.9.2.2
tls-1.4.1
transformers-0.5.6.2
transformers-base-0.4.5.2
transformers-compat-0.6.5
type-equality-1
typed-process-0.2.6.0
unicode-transforms-0.3.6
unix-2.7.2.2
unix-compat-0.5.2
unix-time-0.4.7
unliftio-0.2.12
unliftio-core-0.1.2.0
unordered-containers-0.2.10.0
utf8-string-1.0.1.1
uuid-types-1.0.3
vector-0.12.0.3
vector-algorithms-0.8.0.3
void-0.7.3
x509-1.7.5
x509-store-1.6.7
x509-system-1.6.6
x509-validation-1.6.11
xhtml-3000.2.2.1
xmonad-0.15
xmonad-contrib-0.16
yaml-0.11.2.0
zip-archive-0.4.1
zlib-0.6.2.1
最佳答案
听起来像是 cabal 的问题——我认为在 Arch Linux 上打包有一些困难。
作为替代方案,您可以使用特定的 xmonad 配置手动构建 Haskell 项目,一旦您知道此构建正确,您可以创建一个 ~/.xmonad/build
shell 文件,并在此处触发对您的 xmonad 配置/应用程序的构建。
所以build
的内容可能是:
#!/usr/bin/env bash
set -e
cd ~/MyXmonadProject/
stack build # or cabal build?
关于haskell - 尝试编译时找不到模块 `XMonad`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59440585/
是否有任何库或框架旨在促进从另一种成熟的编程语言中构建项目? 在 C++、java 等编程语言中指定逻辑、集合和复杂规则非常容易,但在 Makefile 中完成这些事情似乎是一场艰苦的战斗。我还没有深
我有这段代码可以用 clang 编译得很好(即使使用 -Weverything),但是 gcc 会发出错误。 #include #include #include using namespace
我有以下 block 头文件 BKE_mesh.h: /* Connectivity data */ typedef struct IndexNode { struct IndexNode *
我在我的一个项目中遇到了一个奇怪的问题。我的代码库依赖于一个外部库,其中包含一个名为 Dataset 的类. Dataset类私有(private)继承自 std::vector (其中 Sample
当使用 gcc、g++ 或 make 在终端中编译一个小型 C 或 C++ 项目时,我收到以下错误: /tmp/ccG1caGi.o: In function `main': main.c:(.tex
我正在尝试从 CVS 为 Windows 上的 Emacs 23.1.50 编译 CEDET,但在“第 6 步:打开 EDE...”时出现错误:“defvar:作为变量的符号值是无效的:cedet-m
我正在(重新)学习编程,我从 C 开始。我的 IDE(如果我可以这么说)是 Windows7 上的 cygwin(32 位)和 Visual-Studio 2010。我总是编译我用 gcc (cygw
我喜欢在模板类中使用本地类来执行类似“static if”的构造。但是我遇到了 gcc 4.8 不想编译我的代码的问题。但是 4.7 可以。 这个例子: #include #include #in
我有一个项目,必须仅使用 java 1.4 进行编译。但我计划使用mockito 编写一些单元测试。我想要一种在 pom 中指定的方法,以便 src/main/java 使用 jdk 1.4 编译,但
我想了解 PHP 编译过程是如何工作的。 假设我有一个名为funcs.php 的文件并且这个文件有三个函数,如果我include 或require 它,所有的在文件加载期间编译三个函数?或者源代码会被
编译工具链 我们写程序的时候用的都是集成开发环境 (IDE: Integrated Development Environment),集成开发环境可以极大地方便我们程序员编写程序,但是配置起来
当我编写一些 Scala 代码时,在尝试编译代码时收到一条奇怪的错误消息。我将代码分解为一个更简单的代码(从语义的角度来看这完全没有意义,但仍然显示了错误)。 scala> :paste // Ent
我正在编译一个 SCSS 文件,它似乎删除了我的评论。我可以使用什么命令来保留所有评论? >SASS input.scss output.css 我在 SCSS 中看到两种类型的注释。 // Comm
这是我的代码: #include typedef struct { const char *description; float value; int age; } swag
当您编译 grails war 时,我知道 .groovy 代码被编译为字节码类文件,但我不明白容器(例如 tomcat)如何在请求 GSP 时知道如何编译它们。容器了解 GSP 吗?安装在服务器上的
我正在努力将多个文件编译成一个通用程序。我收到一个错误: undefined reference to 'pi' 这是我的代码和 Makefile 的框架。我做错了什么?谢谢! 文件:calcPi.c
我尝试使用 LD_PRELOAD 来 Hook sprintf function ,所以我将打印到缓冲区的结果: #define _GNU_SOURCE #include #include int
我正在寻找最简单的方法来自动将 CoffeeScript 重新编译为 JS。 阅读documentation但仍然很难得到我想要的东西。 我需要它来监视文件夹 src/ 中的任何 *.coffee 文
我想使用定制waveformjs 。我发现this on SO但是,我不知道如何编译/安装波形来开始。我从 GitHub 克隆它并进行了更改,但是我不知道如何将其转换为 .js 文件。 最佳答案 为了
很难说出这里问的是什么。这个问题是含糊的、模糊的、不完整的、过于宽泛的或修辞性的,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开它,visit the help center 。 已关
我是一名优秀的程序员,十分优秀!