Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No cradle found for filename.hs. Proceeding with implicit cradle

Tags:

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?

like image 357
kn05 Avatar asked Oct 07 '20 12:10

kn05


2 Answers

you can try create file "hie.yaml" to your project and write in "hie.yaml": cradle: stack:

like image 96
Maxumka Avatar answered Sep 24 '22 04:09

Maxumka


Bob and Maksim are right. For completeness sake I would add that I found https://github.com/mpickering/hie-bios to be of interest, and that a minimal hie.yaml containing

cradle:   stack: 

can work for a simple project.

like image 33
qkrijger Avatar answered Sep 22 '22 04:09

qkrijger