@@ -1,5 +1,5 @@
11{-# LANGUAGE OverloadedStrings, CPP #-}
2−{-# LANGUAGE RecordWildCards, NamedFieldPuns #-}
2+{-# LANGUAGE NamedFieldPuns #-}
33
44module Network.Wai.Handler.Warp.HTTP2.Types where
55
@@ -193,12 +193,12 @@ newStream sid win = Stream sid <$> newIORef Idle
193193
194194opened :: Context -> Stream -> IO ()
195195opened Context{concurrency} Stream{streamState} = do
196− atomicModifyIORef' concurrency (\x -> ((x+1),()))
196+ atomicModifyIORef' concurrency (\x -> (x+1,()))
197197 writeIORef streamState (Open JustOpened)
198198
199199closed :: Context -> Stream -> ClosedCode -> IO ()
200200closed Context{concurrency} Stream{streamState} cc = do
201− atomicModifyIORef' concurrency (\x -> ((x-1),()))
201+ atomicModifyIORef' concurrency (\x -> (x-1,()))
202202 writeIORef streamState (Closed cc)
203203
204204----------------------------------------------------------------