Skip to content

Commit a4bd178

Browse files
Drop availableParallelism
1 parent 0df6254 commit a4bd178

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

src/Node/OS.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export {
22
EOL as eol,
3-
availableParallelism,
43
arch as archImpl,
54
constants,
65
cpus,

src/Node/OS.purs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module Node.OS
22
( eol
3-
, availableParallelism
43
, Arch(..)
54
, arch
65
, constants
@@ -64,8 +63,6 @@ import Unsafe.Coerce (unsafeCoerce)
6463
-- | `\r\n` on Windows
6564
foreign import eol :: String
6665

67-
foreign import availableParallelism :: Effect Int
68-
6966
-- | Possible values are 'arm', 'arm64', 'ia32', 'mips', 'mipsel', 'ppc', 'ppc64', 's390',
7067
-- | 's390x', 'x32', and 'x64'.
7168
foreign import archImpl :: Effect String

test/Main.purs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,12 @@ import Prelude
55
import Data.Foldable (traverse_)
66
import Effect (Effect)
77
import Effect.Console (log, logShow)
8-
import Node.OS (arch, availableParallelism, constants, cpus, devNull, endianness, eol, freemem, getCurrentProcessPriority, homedir, hostname, loadavg, machine, networkInterfaces, release, setCurrentProcessPriority, tmpdir, totalmem, type_, uptime, userInfoSE, version)
8+
import Node.OS (arch, constants, cpus, devNull, endianness, eol, freemem, getCurrentProcessPriority, homedir, hostname, loadavg, machine, networkInterfaces, release, setCurrentProcessPriority, tmpdir, totalmem, type_, uptime, userInfoSE, version)
99
import Unsafe.Coerce (unsafeCoerce)
1010

1111
main :: Effect Unit
1212
main = do
1313
log $ show eol
14-
logShow =<< availableParallelism
1514
logShow =<< arch
1615
log $ (unsafeCoerce :: _ -> String) constants
1716
traverse_ logShow =<< cpus

0 commit comments

Comments
 (0)