xmonad 设置编译问题
我在编译 xmonad 安装的设置文件时遇到问题。
当我尝试使用以下内容编译设置文件时:
ghc -o xmonad xmonad.hs
我收到以下错误。
我已经发布了一些附加信息(如果有任何帮助):
系统: Linux 2.6.36-gentoo-r5 #1 SMP 2 月 14 日星期一 11:54:45 GMT 2011 x86_64 Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz GenuineIntel GNU/Linux
ghc --版本: Glorious Glasgow Haskell 编译系统,版本 6.12.3
ghc-pkg 列表(星号中的条目是“隐藏”的,其余的是“公开的”):
Cabal-1.8.0.6
X11-1.4.6.1
array-0.3.0.1
base-3.0.3.2
base-4.2.0.2
bin-package-db-0.0.0.0
bytestring-0.9.1.7
containers-0.3.0.0
directory-1.0.1.1
***dph-base-0.4.0***
***dph-par-0.4.0***
***dph-prim-interface-0.4.0***
***dph-prim-par-0.4.0***
***dph-prim-seq-0.4.0***
***dph-seq-0.4.0***
extensible-exceptions-0.1.1.1
ffi-1.0
filepath-1.1.0.4
***ghc-6.12.3***
***ghc-binary-0.5.0.2***
ghc-prim-0.2.0.0
haskell98-1.0.1.1
hpc-0.5.0.5
integer-gmp-0.2.0.1
mtl-1.1.0.2
old-locale-1.0.0.2
old-time-1.0.0.5
pretty-1.0.1.1
process-1.0.1.3
random-1.0.0.2
rts-1.0
syb-0.1.0.2
template-haskell-2.4.0.1
time-1.1.4
unix-2.4.0.2
utf8-string-0.3.6
xmonad-0.9
xmonad-contrib-0.9
提前致谢!
I am having problems compiling the settings file for my xmonad installation.
When I try to compile the settings file with:
ghc -o xmonad xmonad.hs
I get the following errors.
I've posted some additional information if it would be of any help:
system:
Linux 2.6.36-gentoo-r5 #1 SMP Mon Feb 14 11:54:45 GMT 2011 x86_64 Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz GenuineIntel GNU/Linux
ghc --version:
The Glorious Glasgow Haskell Compilation System, version 6.12.3
ghc-pkg list (the entries in asterisks are 'hidden', the rest are 'exposed'):
Cabal-1.8.0.6
X11-1.4.6.1
array-0.3.0.1
base-3.0.3.2
base-4.2.0.2
bin-package-db-0.0.0.0
bytestring-0.9.1.7
containers-0.3.0.0
directory-1.0.1.1
***dph-base-0.4.0***
***dph-par-0.4.0***
***dph-prim-interface-0.4.0***
***dph-prim-par-0.4.0***
***dph-prim-seq-0.4.0***
***dph-seq-0.4.0***
extensible-exceptions-0.1.1.1
ffi-1.0
filepath-1.1.0.4
***ghc-6.12.3***
***ghc-binary-0.5.0.2***
ghc-prim-0.2.0.0
haskell98-1.0.1.1
hpc-0.5.0.5
integer-gmp-0.2.0.1
mtl-1.1.0.2
old-locale-1.0.0.2
old-time-1.0.0.5
pretty-1.0.1.1
process-1.0.1.3
random-1.0.0.2
rts-1.0
syb-0.1.0.2
template-haskell-2.4.0.1
time-1.1.4
unix-2.4.0.2
utf8-string-0.3.6
xmonad-0.9
xmonad-contrib-0.9
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
试试这个:
Try this:
构建 xmonad 时,最好执行
而不是手动执行 GHC。原因是重建和重新启动 xmonad 的键绑定在内部调用与 xmonad --recompile 相同的函数,因此当且仅当
xmonad --recompile
才会成功键绑定将使用新设置成功重新启动 xmonad。 (作为比较,ghc --make xmonad
有时会成功,而xmonad --recompile
会失败。)When building xmonad, it's preferable to execute
rather than manually executing GHC. The reason for this is that the keybinding to rebuild and restart xmonad internally calls the same function that
xmonad --recompile
does, soxmonad --recompile
will succeed if and only if the keybinding would successfully restart xmonad with the new settings. (For comparison,ghc --make xmonad
will sometimes succeed whenxmonad --recompile
would fail.)