Skip to content

Commit 3fef126

Browse files
authored
Merge pull request #4 from kika/purescript-0.9.1
Purescript 0.9.1 update
2 parents c346454 + f3dbf78 commit 3fef126

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

bower.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
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
}

src/Node/Process.purs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ module Node.Process
2424
) where
2525

2626
import Prelude
27-
import Control.Monad.Eff
27+
import Partial.Unsafe (unsafePartial)
28+
import Control.Monad.Eff (Eff)
2829
import Control.Monad.Eff.Console (CONSOLE())
2930
import Control.Monad.Eff.Exception (EXCEPTION())
30-
import Data.Maybe (Maybe())
31-
import Data.Maybe.Unsafe (fromJust)
31+
import Data.Maybe (Maybe(), fromJust)
3232
import Data.StrMap (StrMap())
3333
import Data.StrMap as StrMap
3434
import Data.Posix (Pid())
@@ -111,7 +111,7 @@ pid :: Pid
111111
pid = process.pid
112112

113113
platform :: 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

0 commit comments

Comments
 (0)