http-streams 0.8.3.2 → 0.8.3.3
raw patch · 2 files changed
+1/−74 lines, 2 filesdep ~basedep ~http-streamsdep ~io-streamsPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, http-streams, io-streams
API changes (from Hackage documentation)
Files
- http-streams.cabal +1/−26
- tests/snippet.hs +0/−48
http-streams.cabal view
@@ -1,6 +1,6 @@ cabal-version: >= 1.10 name: http-streams-version: 0.8.3.2+version: 0.8.3.3 synopsis: An HTTP client using io-streams description: /Overview/@@ -128,31 +128,6 @@ hs-source-dirs: lib,tests main-is: check.hs-- ghc-options: -O2- -threaded- -Wall- -Wwarn- -fwarn-tabs- -funbox-strict-fields- -fno-warn-missing-signatures- -fno-warn-unused-binds- -fno-warn-unused-do-bind-- include-dirs: .--test-suite snippet- type: exitcode-stdio-1.0-- default-language: Haskell2010-- build-depends: base,- bytestring,- io-streams,- http-streams >= 0.8.0-- hs-source-dirs: tests- main-is: snippet.hs ghc-options: -O2 -threaded
− tests/snippet.hs
@@ -1,48 +0,0 @@------ HTTP client for use with io-streams------ Copyright © 2012-2014 Operational Dynamics Consulting, Pty Ltd------ The code in this file, and the program it is a part of, is made--- available to you by its authors as open source software: you can--- redistribute it and/or modify it under a BSD licence.-----{-# LANGUAGE OverloadedStrings #-}-{-# OPTIONS -fno-warn-unused-imports #-}--module Main where--import GHC.Conc-import Network.Http.Client------- Otherwise redundent imports, but useful for testing in GHCi.-----import Data.ByteString (ByteString)-import qualified Data.ByteString.Char8 as S-import System.IO.Streams (InputStream, OutputStream, stdout)-import qualified System.IO.Streams as Streams---main :: IO ()-main = do- let n = numCapabilities- putStrLn (show n)- c <- openConnection "kernel.operationaldynamics.com" 58080-- let q = buildRequest1 $ do- http GET "/time"- setAccept "text/plain"- putStr $ show q- -- Requests [headers] are terminated by a double newline- -- already. We need a better way of emitting debug- -- information mid-stream from this library.-- sendRequest c q emptyBody-- receiveResponse c debugHandler-- closeConnection c-