How to test in Haskell using comments?

March 12, 2020

If you want to easily test your functions in Haskell, you can do so by writing inputs and their expected responses right above your functions as comments. All you need is a package called doctest.


Last Updated: 15 July 2021

© 2022