@@ -1,4 +1,4 @@
1−{-# LANGUAGE OverloadedStrings, CPP #-}
1+{-# LANGUAGE CPP #-}
22{-# LANGUAGE BangPatterns #-}
33
44module Network.Wai.Handler.Warp.HTTP2.Request (
@@ -91,7 +91,7 @@ mkRequest' ii1 settings addr ref (reqths,reqvt) (bodylen,body) = return (req,ii)
9191
9292getHTTP2DataKey :: Vault.Key (IO (Maybe HTTP2Data))
9393getHTTP2DataKey = unsafePerformIO Vault.newKey
94−{-# NOINLINE getHTTP2Data #-}
94+{-# NOINLINE getHTTP2DataKey #-}
9595
9696-- | Getting 'HTTP2Data' through vault of the request.
9797-- Warp uses this to receive 'HTTP2Data' from 'Middleware'.
@@ -104,7 +104,7 @@ getHTTP2Data req = case Vault.lookup getHTTP2DataKey (vault req) of
104104
105105setHTTP2DataKey :: Vault.Key (Maybe HTTP2Data -> IO ())
106106setHTTP2DataKey = unsafePerformIO Vault.newKey
107−{-# NOINLINE setHTTP2Data #-}
107+{-# NOINLINE setHTTP2DataKey #-}
108108
109109-- | Setting 'HTTP2Data' through vault of the request.
110110-- 'Application' or 'Middleware' should use this.
@@ -117,7 +117,7 @@ setHTTP2Data req mh2d = case Vault.lookup setHTTP2DataKey (vault req) of
117117
118118modifyHTTP2DataKey :: Vault.Key ((Maybe HTTP2Data -> Maybe HTTP2Data) -> IO ())
119119modifyHTTP2DataKey = unsafePerformIO Vault.newKey
120−{-# NOINLINE modifyHTTP2Data #-}
120+{-# NOINLINE modifyHTTP2DataKey #-}
121121
122122-- | Modifying 'HTTP2Data' through vault of the request.
123123-- 'Application' or 'Middleware' should use this.