小编Wej*_*ene的帖子

多个文件使用相同的模块名称:

当我输入 stack run 时,我没有收到错误消息,但是当我输入 stack ghci 时,我收到有关多个文件使用相同名称的错误,我该如何解决它?

(base) wejden@wejdenaydi:~/wejden$ stack ghci
Using main module: 1. Package `wejden' component wejden:exe:wejden-exe with main-is file: /home/wejden/wejden/app/Main.hs
Building all executables for `wejden' once. After a successful build of all of them, only specified executables will be rebuilt.
wejden> configure (lib + exe)
Configuring wejden-0.1.0.0...
wejden> initial-build-steps (lib + exe)
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
Configuring GHCi with the following packages: wejden

* * …
Run Code Online (Sandbox Code Playgroud)

haskell ghc ghci cabal haskell-stack

10
推荐指数
2
解决办法
2174
查看次数

标签 统计

cabal ×1

ghc ×1

ghci ×1

haskell ×1

haskell-stack ×1