簡體   English   中英

如何從我的.xmonad / xmonad.hs導入本地模塊

[英]How can I import local modules from my .xmonad/xmonad.hs

我正在嘗試從〜/ .xmonad / Tree.hs導入名為'Tree.hs'的自定義本地模塊,但是我得到了:

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

xmonad.hs:55:8:
    Could not find module ‘Tree’
    Use -v to see a list of the files searched for.

Please check the file for errors.

ghc似乎沒有在〜/ .xmonad中搜索模塊。 是否有實現此目標的好方法?

~/.xmonad/lib~/.xmonad/lib目錄中搜索模塊。 只需將您的模塊放在那里。

http://xmonad.org/manpage.html#modular-configuration

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM