O'Reilly logo

Get Programming with Haskell by Will Kurt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required