I am using haskell at VSCode. And i use stack's ghc.
(i wrote export PATH=$PATH:/home/username/.stack/programs/x86_64-linux/ghc-tinfo6-8.8.3/bin
at ~/.bashrc)
I don't have any problem at this, but nowadays, i can get the message at the VSCcode like this:
No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for filename.hs. Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie)
I cannot find the same message or solutions at Google. How can i solve this? or what cause the problem?
If you have 2 files ./app/Main.hs
and ./test/Spec.hs
, you can create a hie.yaml
at the workspace root .
with:
cradle:
multi:
- path: "./"
config:
cradle:
stack:
- path: "./app/Main.hs"
- path: "./test/Spec.hs"
This should silence the error. Also, having stack
in the system path is enough.