reader package:xmonad-contrib

Retrieves a function of the current environment.
See examples in Control.Monad.Reader. Note, the partially applied function type (->) r is a simple reader monad. See the instance declaration below.