on master help sign in
Letting GHC 7.8 compile Warp.

GHC 7.8 cannot infer the type of "void . forkIOWithUnmask". Use "$" instead.

commitca4b2669607292aed96c625e11a570b2b7e6180e authorKazu Yamamoto <kazu@iij.ad.jp> dateTue 23 Apr 2013, 17:32 (13 years ago) parent2e79e3f
1 file changed+3−1
warp/Network/Wai/Handler/Warp/Run.hs+3−1
warp/Network/Wai/Handler/Warp/Run.hs+3−1
@@ -171,7 +171,9 @@ runSettingsConnectionMaker set getConn app = do
171171
172172 -- Fork a new worker thread for this connection maker, and ask for a
173173 -- function to unmask (i.e., allow async exceptions to be thrown).
174− void . forkIOWithUnmask $ \unmask ->
174+ --
175+ -- GHC 7.8 cannot infer the type of "void . forkIOWithUnmask"
176+ void $ forkIOWithUnmask $ \unmask ->
175177 -- Run the connection maker to get a new connection, and ensure
176178 -- that the connection is closed. If the mkConn call throws an
177179 -- exception, we will leak the connection. If the mkConn call is