Does Haskell have a method for determining the number of CPU cores present on a machine at runtime?
It is GHC.Conc.getNumProcessors :: IO Int getNumCapabilities tells how many threads are suggested to GHC (and depends on +RTS -N option parameter.)
GHC.Conc.getNumProcessors :: IO Int
getNumCapabilities
+RTS -N