File tree 4 files changed +19
-14
lines changed 4 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,13 @@ language: node_js
2
2
dist : trusty
3
3
sudo : required
4
4
node_js : 6
5
+ env :
6
+ - PATH=$HOME/purescript:$PATH
5
7
install :
8
+ - TAG=$(wget -q -O - https://github.com/purescript/purescript/releases/latest --server-response --max-redirect 0 2>&1 | sed -n -e 's/.*Location:.*tag\///p')
9
+ - wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
10
+ - tar -xvf $HOME/purescript.tar.gz -C $HOME/
11
+ - chmod a+x $HOME/purescript
6
12
- npm install -g bower
7
13
- npm install
8
14
script :
Original file line number Diff line number Diff line change 12
12
"url" : " git://github.com/purescript-node/purescript-node-http.git"
13
13
},
14
14
"devDependencies" : {
15
- "purescript-console" : " #compiler/0.12 "
15
+ "purescript-console" : " ^4.1.0 "
16
16
},
17
17
"dependencies" : {
18
- "purescript-node-streams" : " #compiler/0.12" ,
19
- "purescript-node-url" : " #compiler/0.12" ,
20
- "purescript-options" : " #compiler/0.12 " ,
21
- "purescript-node-buffer" : " #compiler/0.12 " ,
18
+ "purescript-node-streams" : " justinwoo/purescript-node-streams #compiler/0.12" ,
19
+ "purescript-node-url" : " justinwoo/purescript-node-url #compiler/0.12" ,
20
+ "purescript-options" : " ^4.0.0 " ,
21
+ "purescript-node-buffer" : " ^5.0.0 " ,
22
22
"purescript-arraybuffer-types" : " ^2.0.0" ,
23
- "purescript-foreign-object" : " #compiler/0.12 " ,
24
- "purescript-unsafe-coerce" : " #compiler/0.12 "
23
+ "purescript-foreign-object" : " ^1.0.0 " ,
24
+ "purescript-unsafe-coerce" : " ^4.0.0 "
25
25
}
26
26
}
Original file line number Diff line number Diff line change 7
7
},
8
8
"devDependencies" : {
9
9
"jscs" : " ^3.0.7" ,
10
- "jshint" : " ^2.9.4" ,
11
- "pulp" : " ^11.0.0" ,
12
- "purescript" : " ^0.11.1" ,
13
- "purescript-psa" : " ^0.5.0" ,
14
- "rimraf" : " ^2.6.1"
10
+ "jshint" : " ^2.9.5" ,
11
+ "pulp" : " ^12.2.0" ,
12
+ "purescript-psa" : " ^0.6.0" ,
13
+ "rimraf" : " ^2.6.2"
15
14
}
16
15
}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ import Data.Functor.Contravariant ((>$<))
35
35
import Data.Maybe (Maybe )
36
36
import Data.Options (Option , Options , opt , options )
37
37
import Effect (Effect )
38
- import Foreign (Foreign , toForeign )
38
+ import Foreign (Foreign , unsafeToForeign )
39
39
import Foreign.Object (Object )
40
40
import Foreign.Object as Object
41
41
import Node.Stream (Readable , Writable )
@@ -115,7 +115,7 @@ request = requestImpl <<< options
115
115
116
116
-- | Make a HTTP request from a URI string and response callback.
117
117
requestFromURI :: String -> (Response -> Effect Unit ) -> Effect Request
118
- requestFromURI = requestImpl <<< toForeign <<< URL .parse
118
+ requestFromURI = requestImpl <<< unsafeToForeign <<< URL .parse
119
119
120
120
-- | Create a writable stream from a request object.
121
121
requestAsStream :: forall r . Request -> Writable r
You can’t perform that action at this time.
0 commit comments