File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 15
15
" output"
16
16
],
17
17
"dependencies" : {
18
- "purescript-console" : " ^0.1.0" ,
19
- "purescript-exceptions" : " ~0.3.3" ,
20
- "purescript-maps" : " ~0.5.4" ,
21
- "purescript-maybe" : " ~0.3.5" ,
22
- "purescript-node-fs" : " ~0.11.0" ,
23
- "purescript-node-streams" : " ~0.4.0" ,
24
- "purescript-posix-types" : " ~0.1.1" ,
25
- "purescript-unsafe-coerce" : " ~0.1.0"
18
+ "purescript-console" : " ^1.0.0" ,
19
+ "purescript-exceptions" : " ^1.0.0" ,
20
+ "purescript-maps" : " ^1.0.0" ,
21
+ "purescript-maybe" : " ^1.0.0" ,
22
+ "purescript-node-fs" : " ^1.0.0" ,
23
+ "purescript-node-streams" : " ^1.0.0" ,
24
+ "purescript-posix-types" : " ^1.0.0" ,
25
+ "purescript-unsafe-coerce" : " ^1.0.0" ,
26
+ "purescript-partial" : " ^1.1.2"
26
27
}
27
28
}
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ module Node.Process
24
24
) where
25
25
26
26
import Prelude
27
- import Control.Monad.Eff
27
+ import Partial.Unsafe (unsafePartial )
28
+ import Control.Monad.Eff (Eff )
28
29
import Control.Monad.Eff.Console (CONSOLE ())
29
30
import Control.Monad.Eff.Exception (EXCEPTION ())
30
- import Data.Maybe (Maybe ())
31
- import Data.Maybe.Unsafe (fromJust )
31
+ import Data.Maybe (Maybe (), fromJust )
32
32
import Data.StrMap (StrMap ())
33
33
import Data.StrMap as StrMap
34
34
import Data.Posix (Pid ())
@@ -111,7 +111,7 @@ pid :: Pid
111
111
pid = process.pid
112
112
113
113
platform :: Platform
114
- platform = fromJust (Platform .fromString process.platform)
114
+ platform = unsafePartial $ fromJust (Platform .fromString process.platform)
115
115
116
116
-- | Cause the process to exit with the supplied integer code. An exit code
117
117
-- | of 0 is normally considered successful, and anything else is considered a
You can’t perform that action at this time.
0 commit comments