Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you debug typelevel code?

Most of the time, all you get is an implicit not found error. You don't know where in the chain of implicit construction it failed. Apparently you can't use runtime debug or print statement. So how do you debug type-level program other than staring at your code really hard?

like image 331
KailuoWang Avatar asked Jan 12 '16 21:01

KailuoWang


1 Answers

I wish I had a better answer, but here it goes: Start passing the parameters explicitly, one at a time until it gives you a more useful error. (adding-prinlns-equivalent for implicits params)

like image 185
Alvaro Carrasco Avatar answered Nov 13 '22 12:11

Alvaro Carrasco