File tree Expand file tree Collapse file tree 4 files changed +19
-14
lines changed Expand file tree Collapse file tree 4 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,13 @@ language: node_js
22dist : trusty
33sudo : required
44node_js : 6
5+ env :
6+ - PATH=$HOME/purescript:$PATH
57install :
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
612 - npm install -g bower
713 - npm install
814script :
Original file line number Diff line number Diff line change 1212 "url" : " git://github.com/purescript-node/purescript-node-http.git"
1313 },
1414 "devDependencies" : {
15- "purescript-console" : " #compiler/0.12 "
15+ "purescript-console" : " ^4.1.0 "
1616 },
1717 "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" : " ^4.0.0 " ,
19+ "purescript-node-url" : " ^4.0.0 " ,
20+ "purescript-options" : " ^4.0.0 " ,
21+ "purescript-node-buffer" : " ^5.0.0 " ,
2222 "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 "
2525 }
2626}
Original file line number Diff line number Diff line change 77 },
88 "devDependencies" : {
99 "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"
1514 }
1615}
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ import Data.Functor.Contravariant ((>$<))
3535import Data.Maybe (Maybe )
3636import Data.Options (Option , Options , opt , options )
3737import Effect (Effect )
38- import Foreign (Foreign , toForeign )
38+ import Foreign (Foreign , unsafeToForeign )
3939import Foreign.Object (Object )
4040import Foreign.Object as Object
4141import Node.Stream (Readable , Writable )
@@ -115,7 +115,7 @@ request = requestImpl <<< options
115115
116116-- | Make a HTTP request from a URI string and response callback.
117117requestFromURI :: String -> (Response -> Effect Unit ) -> Effect Request
118- requestFromURI = requestImpl <<< toForeign <<< URL .parse
118+ requestFromURI = requestImpl <<< unsafeToForeign <<< URL .parse
119119
120120-- | Create a writable stream from a request object.
121121requestAsStream :: forall r . Request -> Writable r
You can’t perform that action at this time.
0 commit comments