Skip to content

Commit

Permalink
wall clean and compat
Browse files Browse the repository at this point in the history
  • Loading branch information
gbaz committed Nov 6, 2017
1 parent 90292e1 commit db13077
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -18,7 +18,6 @@ import Prelude ()
import Prelude.Compat

import Control.Concurrent (newMVar, modifyMVar)
import Control.Monad (when)
import Data.Foldable (toList)
import qualified Data.ByteString.Lazy as BL
import Data.List (foldl')
Expand Down Expand Up @@ -266,7 +265,7 @@ instance OVERLAPPABLE_
, requestMethod = reflectMethod (Proxy :: Proxy method)
}
return . buildFromStream $ ResultStream $ \k ->
runStreamingResponse sresp $ \(status,_headers,_httpversion,reader) -> do
runStreamingResponse sresp $ \(_status,_headers,_httpversion,reader) -> do
let unrender = unrenderFrames (Proxy :: Proxy framing) (Proxy :: Proxy a)
loop bs = do
res <- BL.fromStrict <$> reader
Expand Down
2 changes: 1 addition & 1 deletion servant/src/Servant/API/Stream.hs
Expand Up @@ -19,7 +19,7 @@ import Data.Proxy (Proxy)
import Data.Typeable (Typeable)
import GHC.Generics (Generic)
import Text.Read (readMaybe)
import Data.Bifunctor (first)
import Control.Arrow (first)
import Network.HTTP.Types.Method (StdMethod (..))

-- | A Stream endpoint for a given method emits a stream of encoded values at a given Content-Type, delimited by a framing strategy. Steam endpoints always return response code 200 on success. Type synonyms are provided for standard methods.
Expand Down

0 comments on commit db13077

Please sign in to comment.