concept isPrime function in category haskell
appears as: n isPrime function, isPrime function

This is an excerpt from Manning's book Get Programming with Haskell.
Now that you have a list of primes, defining an isPrime function seems trivial: you just check whether the value is in your list. You’d start with a type signature like this: