Does Haskell have a method for determining the number of CPU cores present on a machine at runtime?
Since base 4.5 you can use getNumProcessors from GHC.Conc. This is good since the number of capabilities can now be set dynamically with setNumCapabilities from the same.
base
getNumProcessors
setNumCapabilities