Core Classes for Haskells
Functor, Applicative and Monad are the type classes that describe computation inside a context, such as Maybe for missing values, lists for many results or IO for effects. Functor maps over the context, Applicative combines independent contexts, and Monad chains steps that depend on earlier results using bind.
Stage: Abstractions · Part of the Haskell roadmap · Last reviewed 19 November 2026
What to learn in Core Classes
- Use fmap to apply a function inside Maybe, lists and Either
- Combine independent values with the applicative operators <$> and <*>
- Chain dependent steps with >>= and with do-notation
- Check the Functor, Applicative and Monad laws on a simple instance
- Write a Monad instance for a small parser or state type
Core Classes interview questions
What is a monad in Haskell, in practical terms?
A monad is a type constructor with return and bind operations that lets you sequence steps where each can depend on the earlier result, while the type handles the plumbing. Maybe stops on failure, Either carries an error, and IO sequences effects.
How is Applicative different from Monad?
Applicative combines computations whose structure does not depend on earlier results, so all effects are known up front. Monad lets a later step be chosen based on an earlier value. Every monad is applicative, but not the reverse, and parsers or validators often use Applicative alone.
Where Core Classes fits in the Haskell roadmap
Core Classes belongs to the Abstractions stage (advanced level). The functional toolkit.
Other units in this stage
Back to the full Haskell roadmap