File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 18
18
},
19
19
"dependencies" : {
20
20
"purescript-maps" : " ^0.5.4" ,
21
- "purescript-options" : " ^0.5.1 " ,
21
+ "purescript-options" : " ^0.6.0 " ,
22
22
"purescript-unsafe-coerce" : " ^0.1.0" ,
23
23
"purescript-node-streams" : " ^0.3.0"
24
24
}
Original file line number Diff line number Diff line change @@ -23,16 +23,16 @@ module Node.HTTP.Client
23
23
, statusMessage
24
24
) where
25
25
26
- import Prelude
26
+ import Prelude ( Unit , (<<<))
27
27
28
- import Data.Foreign
29
- import Data.Options
28
+ import Data.Foreign ( Foreign , toForeign )
29
+ import Data.Options ( Options , Option , options , opt )
30
30
import Data.StrMap (StrMap ())
31
31
32
32
import Node.HTTP (HTTP ())
33
- import Node.Stream
33
+ import Node.Stream ( Readable , Writable )
34
34
35
- import Control.Monad.Eff
35
+ import Control.Monad.Eff ( Eff )
36
36
37
37
import Unsafe.Coerce (unsafeCoerce )
38
38
@@ -45,9 +45,6 @@ foreign import data Response :: *
45
45
-- | A HTTP request object
46
46
newtype RequestHeaders = RequestHeaders (StrMap String )
47
47
48
- instance requestHeadersIsOption :: IsOption RequestHeaders where
49
- assoc k v = assoc (optionFn k) (unsafeCoerce v :: { } )
50
-
51
48
-- | The type of HTTP request options
52
49
data RequestOptions
53
50
You can’t perform that action at this time.
0 commit comments