concept Applicative in category idris

This is an excerpt from Manning's book Type-Driven Development with Idris.
You can read the f here as IO. We’ll get to the exact meaning of Applicative and Monad in chapter 7; you don’t need to understand the details to write interactive programs.
We’ll look at more examples of the same pattern, separating the description of a program from its execution, in the remaining chapters, so before we go any further, let’s explore how we can define the State type ourselves, along with runState for executing stateful operations. In this section, you’ll see one way of defining State, and how to provide implementations of some interfaces for State: Functor, Applicative, and Monad. By implementing these interfaces, you’ll be able to use some generic library functions with State.
Rather than defining (>>=) as a standalone function, it’s a good idea to implement the Functor, Applicative, and Monad interfaces for State. In addition to providing do notation via the Monad interface, this will give you access to generic functions defined in the library. For example, when and traverse are generic functions. In the context of IO, they behave as follows:
This will fail because you don’t have implementations of Functor or Applicative for State:
StateMonad.idr:42:15: When checking right hand side of addIfPositive with expected type State Integer Bool When checking an application of function Main.>>=: Can't find implementation for Applicative (State Integer)