我的项目结构有问题:
pic-analysis-0.1/AlgTop/Data.hs
Functions.hs
PNGModify.hs
Main.hs
Data.hs
:
module AlgTop.Data (…) where
Functions.hs
:
module AlgTop.Functions (…) where
import AlgTop.Data
该AlgTop.Functions
模块未找到AlgTop.Data
.
我将我的项目结构方法与ansi-terminal
Hackage 上的方法进行了比较(见下文),但我没有发现任何区别。我究竟做错了什么?
ansi-terminal-xxx/System/Console/ANSI/Common.hs
/Unix.hs
/…
Common.hs
:
module System.Console.ANSI.Common where
Unix.hs
:
module System.Console.ANSI.Unix (…) where
import System.Console.ANSI.Common
错误信息:
[...]
*** Chasing dependencies:
Chasing modules from: *Functions.hs
Functions.hs:9:8:
Could not find module `AlgTop.Data':
locations searched:
AlgTop/Data.hs
AlgTop/Data.lhs
[...]