Closed GGXBoo closed 4 years ago
Install and use gen-hie to generate a hie.yaml
file. In your project run stack build
then gen-hie > hie.yaml
(or the windows equivalent of >
).
An explicit hie.yaml
file should fix everything, except Setup.hs
(there is no way to load Setup.hs
).
In your project run
stack build
then
Yes. I am try it.Now there's only one mistake left:
/home/ggx/Documents/stack/Hello/Setup.hs: FAILED
Fail on initialisation for "/home/ggx/Documents/stack/Hello/Setup.hs". Multi Cradle: No prefixes matched
This is expected nothing can load Setup.hs
files.
Opening other files will work just fine in your editor.
I try to run
hie - r .
in the root directory of the stack project.I got a mistake:I use stack tool version 2.3.1 and GHC version 8.8.3.