Lesson 37. Capstone: Building a prime-number library
This capstone covers
- Building a new project by using stack
- Writing basic library functions for working with prime numbers
- Using stack test and QuickCheck to check for bugs as you go
- Refactoring code to fix errors
- Adding new functions and tests to your project as you go
So far in this unit, you’ve focused on one problem: creating a program for working with palindromes. For this capstone, you’ll be reiterating over all the work you’ve done creating modules and learning about stack with a new problem. This time you’ll be working on creating a library to work with prime numbers. You’ll focus on three essential problems:
- Listing out primes less than a specified number
- Determining whether ...
Get Get Programming with Haskell now with the O’Reilly learning platform.
O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.