haskellPackages used to build Xmonad and other packages. This can be used to change the GHC version used to build Xmonad and the packages listed in extraPackages.
Declarations
Type
attribute set
Default
pkgs.haskellPackages
Example
pkgs.haskell.packages.ghc810