This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
"module ***:Main is defined in multiple files" [atom / monorepo configuration / ghc8.2.2] #606
Closed
Description
I followed the installation procedure, ran on master branch:
stack --stack-yaml=stack-8.2.2.yaml install
and installed the atom plugins :
apm install language-haskell atom-ide-ui ide-haskell-hie
Then when opening atom for my project I see the error :
Got error while processing diagnostics: : error: module ‘main:Main’ is defined in multiple files:
/private/var/folders/25/p3lxc5td4kg2q0bnpvy90wrc0000gn/T/ghc-mod14097/Main14096-0.hs
/private/var/folders/25/p3lxc5td4kg2q0bnpvy90wrc0000gn/T/ghc-mod14098/Main14096-1.hs
When saving a file in imj-space
project, I have a similar message:
Got error while processing diagnostics: : error: module ‘imj-space-0.1.0.3:Main’ is defined in multiple files:
/private/var/folders/25/p3lxc5td4kg2q0bnpvy90wrc0000gn/T/ghc-mod14105/Spec14096-9.hs
/private/var/folders/25/p3lxc5td4kg2q0bnpvy90wrc0000gn/T/ghc-mod14097/Main14096-0.hs
/private/var/folders/25/p3lxc5td4kg2q0bnpvy90wrc0000gn/T/ghc-mod14098/Main14096-1.hs
And then I see no diagnostic panel.
How can I fix it?
Note that I build my project with stack-lts-11.9
, the same as the one used to build haskell-ide-engine
Metadata
Metadata
Assignees
Labels
No labels