Property-Based Testing
Testing is an important aspect of software quality assurance. It exercises the software to expose bugs, ideally early on in the development process where they can be mitigated relatively cheaply. Unfortunately, there are several negative stereotypes associated with testing: it is seen as tedious, time-consuming, and costly. For these reasons, testing is often looked down upon and neglected.
This negative perception is likely due to a particular testing approach: unit testing. Unit testing is rather labor intensive as individual test inputs and expected outputs have to be devised one by one. Typically, a large suite of such unit tests is needed to test the software thoroughly. Some cleverness can go into choosing appropriate inputs, but on the whole, the challenges are limited and the work rather repetitive.
As Haskell programs can also contain bugs, software testing is recommended. However, instead of resorting to unit testing, we have a much more fun and...