File: Processors.hs

package info (click to toggle)
haskell-test-framework 0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 176 kB
  • sloc: haskell: 928; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module Test.Framework.Runners.Processors (
        processorCount
    ) where

#ifdef COMPILER_GHC

import GHC.Conc ( numCapabilities )

processorCount :: Int
processorCount = numCapabilities

#else

processorCount :: Int
processorCount = 1

#endif