Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 13f6881

Browse files
committedFeb 28, 2016
Update to purescript-options 0.6.0
1 parent 7501192 commit 13f6881

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed
 

‎bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"dependencies": {
2020
"purescript-maps": "^0.5.4",
21-
"purescript-options": "^0.5.1",
21+
"purescript-options": "^0.6.0",
2222
"purescript-unsafe-coerce": "^0.1.0",
2323
"purescript-node-streams": "^0.3.0"
2424
}

‎src/Node/HTTP/Client.purs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ module Node.HTTP.Client
2323
, statusMessage
2424
) where
2525

26-
import Prelude
26+
import Prelude (Unit, (<<<))
2727

28-
import Data.Foreign
29-
import Data.Options
28+
import Data.Foreign (Foreign, toForeign)
29+
import Data.Options (Options, Option, options, opt)
3030
import Data.StrMap (StrMap())
3131

3232
import Node.HTTP (HTTP())
33-
import Node.Stream
33+
import Node.Stream (Readable, Writable)
3434

35-
import Control.Monad.Eff
35+
import Control.Monad.Eff (Eff)
3636

3737
import Unsafe.Coerce (unsafeCoerce)
3838

@@ -45,9 +45,6 @@ foreign import data Response :: *
4545
-- | A HTTP request object
4646
newtype RequestHeaders = RequestHeaders (StrMap String)
4747

48-
instance requestHeadersIsOption :: IsOption RequestHeaders where
49-
assoc k v = assoc (optionFn k) (unsafeCoerce v :: {})
50-
5148
-- | The type of HTTP request options
5249
data RequestOptions
5350

0 commit comments

Comments
 (0)
Please sign in to comment.