on master help sign in
hlint suggestions.
9baf973Kazu Yamamoto
warp/Network/Wai/Handler/Warp/ResponseHeader.hs+1−1
@@ -29,7 +29,7 @@ composeHeader !httpversion !status !responseHeaders = create len $ \ptr -> do
29
29
30{-# INLINE copy #-}
30{-# INLINE copy #-}
31copy :: Ptr Word8 -> ByteString -> IO (Ptr Word8)
31copy :: Ptr Word8 -> ByteString -> IO (Ptr Word8)
32−copy !ptr !(PS fp o l) = withForeignPtr fp $ \p -> do
32+copy !ptr (PS fp o l) = withForeignPtr fp $ \p -> do
33 memcpy ptr (p `plusPtr` o) (fromIntegral l)
33 memcpy ptr (p `plusPtr` o) (fromIntegral l)
34 return $! ptr `plusPtr` l
34 return $! ptr `plusPtr` l
35
35
warp/Network/Wai/Handler/Warp/Run.hs+1−1
@@ -212,7 +212,7 @@ serveConnection :: T.Handle
212 -> InternalInfo
212 -> InternalInfo
213 -> Application -> Connection -> SockAddr-> IO ()
213 -> Application -> Connection -> SockAddr-> IO ()
214serveConnection timeoutHandle settings ii app conn remoteHost' =
214serveConnection timeoutHandle settings ii app conn remoteHost' =
215− (serveConnection'' $ connSource conn th) `onException` send500
215+ serveConnection'' (connSource conn th) `onException` send500
216 where
216 where
217 th = threadHandle ii
217 th = threadHandle ii
218
218
warp/Network/Wai/Handler/Warp/Timeout.hs−1
@@ -1,6 +1,5 @@
1{-# LANGUAGE CPP #-}
1{-# LANGUAGE CPP #-}
2{-# LANGUAGE BangPatterns #-}
2{-# LANGUAGE BangPatterns #-}
3−{-# LANGUAGE DeriveDataTypeable #-}
4{-# LANGUAGE UnboxedTuples, MagicHash #-}
3{-# LANGUAGE UnboxedTuples, MagicHash #-}
5
4
6-- |
5-- |