CurryInfo: benchmark-papers-3.0.0 / Test.Benchmark.getCoreNumber

definition:
 
getCoreNumber :: IO String
getCoreNumber =
  readFile "/proc/cpuinfo" >>=
    return . show . length . filter (\ s -> take 9 s == "processor") . lines
demand:
 no demanded arguments
deterministic:
 deterministic operation
documentation:
 
Retrieve the number of cores.
Implemented by counting the processor entries in /proc/cpuinfo
failfree:
 ()
indeterministic:
 referentially transparent operation
infix:
 no fixity defined
iotype:
 {() |-> _}
name:
 getCoreNumber
precedence:
 no precedence defined
result-values:
 _
signature:
 Prelude.IO String
solution-complete:
 operation might suspend on free variables
terminating:
 possibly non-terminating
totally-defined:
 possibly non-reducible on same data term