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 1515 " output"
1616 ],
1717 "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"
2627 }
2728}
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ module Node.Process
2424 ) where
2525
2626import Prelude
27- import Control.Monad.Eff
27+ import Partial.Unsafe (unsafePartial )
28+ import Control.Monad.Eff (Eff )
2829import Control.Monad.Eff.Console (CONSOLE ())
2930import Control.Monad.Eff.Exception (EXCEPTION ())
30- import Data.Maybe (Maybe ())
31- import Data.Maybe.Unsafe (fromJust )
31+ import Data.Maybe (Maybe (), fromJust )
3232import Data.StrMap (StrMap ())
3333import Data.StrMap as StrMap
3434import Data.Posix (Pid ())
@@ -111,7 +111,7 @@ pid :: Pid
111111pid = process.pid
112112
113113platform :: Platform
114- platform = fromJust (Platform .fromString process.platform)
114+ platform = unsafePartial $ fromJust (Platform .fromString process.platform)
115115
116116-- | Cause the process to exit with the supplied integer code. An exit code
117117-- | of 0 is normally considered successful, and anything else is considered a
You can’t perform that action at this time.
0 commit comments