concept different contexts in category haskell

This is an excerpt from Manning's book Get Programming with Haskell.
The haversineMaybe solution is a poor one for two reasons. First, you have to write wrappers for any similar function, which is needlessly repetitive. Second, you have to write a different version of haversineMaybe for other similar context types such as IO. Because the promise of the Functor type is to provide a general way of working in different contexts, let’s see if you can solve this problem with Functor.
In unit 4, when you first saw do-notation, you briefly touched on the idea that the power of the Monad type class is that it allows you to create different programs by using the same code in different contexts. The example you used in lesson 21 was creating an I/O program that asked a user for information about comparing the costs of two pizzas. Because do-notation works on all members of Monad, you were able to trivially translate this program to work with Maybe types when your values came from Data.Maps rather than IO.
To further demonstrate the idea that Monad allows you to easily reuse code across different contexts, you’re going to look at a series of examples of using the same code in different contexts. The fundamental issue is processing data on job candidates for your company. You want to determine whether they’ve passed or failed your interview process. You’ll see how the same code can handle candidates in the context of IO, Maybe, and even List. In the end, you’ll be able to refactor the code you’ve reused in each section to a single function that works on all instances of Monad.