We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0380430 commit 61be0b8Copy full SHA for 61be0b8
src/Node/Process.purs
@@ -12,6 +12,7 @@ module Node.Process
12
, getEnv
13
, lookupEnv
14
, setEnv
15
+ , Pid(..)
16
, pid
17
, platform
18
, exit
@@ -100,7 +101,12 @@ lookupEnv k = StrMap.lookup k <$> getEnv
100
101
-- | Set an environment variable.
102
foreign import setEnv :: forall eff. String -> String -> Eff (process :: PROCESS | eff) Unit
103
-pid :: Int
104
+newtype Pid = Pid Int
105
+
106
+runPid :: Pid -> Int
107
+runPid (Pid x) = x
108
109
+pid :: Pid
110
pid = process.pid
111
112
platform :: Platform
0 commit comments