I'm trying to import a custom, local module named 'Tree.hs' from ~/.xmonad/Tree.hs, but I get:
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.
It seems that ghc doesn't search in ~/.xmonad for modules. Is there a good way to achieve this?
Xmonad searches for modules in the ~/.xmonad/lib
directory. Just put your module in there.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.