【发布时间】:2014-10-17 06:43:04
【问题描述】:
我正在处理一个项目,我正在使用 Cabal 进行管理。我已经指定了源文件、模块和所有东西的目录。我所有的文件都与它们对应的模块同名,大小写保留。
我能做到:
$ cabal configure
$ cabal build
没有问题。
但是,假设我在文件 Module.hs 中有一个模块 Module,并且在同一目录中有文件 File.hs。现在,当我尝试从 Emacs 加载 File.hs 进行测试时,我得到以下信息:
____Could not find module ‘Module’
It is a member of the hidden package ‘ghc-7.8.3’.
Use -v to see a list of the files searched for.
Failed, modules loaded: none.
File.hs的全部内容:
module File where
import Module
如何让它找到我项目的文件?
【问题讨论】: