Skip to Content
Mastering Functional Programming
book

Mastering Functional Programming

by Anatolii Kmetiuk
August 2018
Intermediate to advanced
380 pages
10h 2m
English
Packt Publishing
Content preview from Mastering Functional Programming

Debugging type-level computations

Currently, type-level computations represent the leading edge of modern programming technology. The technology is rather experimental, and hence, it still does not have much support in terms of comprehensive error messages and tools for debugging.

So, the preceding error message can be debugged step by step by leveraging algebraic data types. This means that you trace every step of recursion, and make sure that every implicit during every step is resolved correctly. At some point, you come to the place where the resolution produces errors, and then you can see which case produces an error.

These checks can be done with implicitly keyword in Scala. The process of debugging with the implicitly function may ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781788620796Supplemental Content