Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
dist
dist-newstyle
*.ghc*
cabal-dev
*.o
*.hi
Expand Down
6 changes: 3 additions & 3 deletions Data/ByteString/Streaming/HTTP.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{-#LANGUAGE OverloadedStrings #-}
{-# LANGUAGE OverloadedStrings #-}
-- | This module replicates `pipes-http` as closely as will type-check, adding a
-- conduit-like @http@ in @ResourceT@ and a primitive @simpleHTTP@ that emits
-- a streaming bytestring rather than a lazy one.
Expand Down Expand Up @@ -38,7 +38,7 @@
-- > import Data.ByteString.Streaming.HTTP
-- >
-- > main = do
-- > req <- parseUrl "https://www.example.com"
-- > req <- parseUrlThrow "https://www.example.com"
-- > m <- newManager tlsManagerSettings
-- > runResourceT $ do
-- > resp <- http request manager
Expand Down Expand Up @@ -205,7 +205,7 @@ import Data.ByteString.Streaming.HTTP
simpleHTTP :: MonadResource m => String -> ByteString m ()
simpleHTTP url = do
man <- liftIO (newManager tlsManagerSettings)
req <- liftIO (parseUrl url)
req <- liftIO (parseUrlThrow url)
bracketByteString
(responseOpen req man)
responseClose
Expand Down
6 changes: 6 additions & 0 deletions nix-ci-ish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
nix-shell -I nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/nixos-17.09.tar.gz -p haskell.compiler.ghc7103 --run "cabal new-build"
nix-shell -I nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/nixos-17.09.tar.gz -p haskell.compiler.ghc802 --run "cabal new-build"
nix-shell -I nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/nixos-18.09.tar.gz -p haskell.compiler.ghc822 --run "cabal new-build"
nix-shell -I nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/nixos-18.09.tar.gz -p haskell.compiler.ghc844 --run "cabal new-build"
nix-shell -I nixpkgs=https://github.com/nixos/nixpkgs-channels/archive/nixos-18.09.tar.gz -p haskell.compiler.ghc862 --run "cabal new-build"

25 changes: 12 additions & 13 deletions streaming-utils.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,15 @@ description: This package includes http-client, aeson, attoparsec, zlib
license: BSD3
license-file: LICENSE
author: michaelt
maintainer: what_is_it_to_do_anything@yahoo.com
maintainer: chessai1996@gmail.com
-- copyright:
category: Data
build-type: Simple
category: Data, Pipes, Streaming
-- extra-source-files:
cabal-version: >=1.10
stability: Experimental
homepage: https://github.com/michaelt/streaming-utils
bug-reports: https://github.com/michaelt/streaming-utils/issues
category: Data, Pipes, Streaming
source-repository head
type: git
location: https://github.com/michaelt/streaming-utils
Expand All @@ -64,22 +63,22 @@ library
-- other-modules:
other-extensions: CPP, Trustworthy

build-depends: base >=4.7 && <5.0,
transformers >=0.4 && <0.5.3,
build-depends: base >=4.8 && <5.0,
transformers >=0.4 && <0.6,
mtl >=2.2 && <2.3,
attoparsec > 0.13.0.0 && < 0.14,
streaming >= 0.1.4.0 && < 0.3,
streaming-bytestring >= 0.1.4.0 && < 0.2,
bytestring > 0.10.0 && < 0.11.0,
streaming >= 0.2 && < 0.3,
streaming-bytestring >= 0.1 && < 0.2,
bytestring > 0.10 && < 0.11,
pipes >= 4.0 && < 4.4,
network-simple,
network,
http-client >=0.2 && <0.6,
http-client >=0.2 && <0.7,
http-client-tls,
aeson > 0.8 && <1.3,
json-stream > 0.4.0 && < 0.4.2,
resourcet > 1.0 && < 1.2,
streaming-commons > 0.1.0 && < 0.2
aeson > 0.8 && <1.5,
json-stream > 0.4 && < 0.5,
resourcet > 1.0 && < 1.3,
streaming-commons > 0.2 && < 0.3

-- hs-source-dirs:
default-language: Haskell2010