Import Data.Functor for old GHC versions
commit250dc0afae21768e13bcab2e3194f32750aa3220
authorAndrew Pritchard <awpr@google.com>
dateSun 30 Aug 2015, 14:27 (11 years ago)
parentece61c8
wai/Network/Wai/HTTP2.hs+4
@@ -1,4 +1,5 @@
11{-# LANGUAGE OverloadedStrings, RankNTypes #-}
2+{-# LANGUAGE CPP #-}
23module Network.Wai.HTTP2
34 ( Chunk(..)
45 , HTTP2Application
@@ -14,6 +15,9 @@ module Network.Wai.HTTP2
1415 , streamSimple
1516 ) where
1617
18+#if __GLASGOW_HASKELL__ < 710
19+import Data.Functor ((<$))
20+#endif
1721import Blaze.ByteString.Builder (Builder)
1822import Data.ByteString (ByteString)
1923import qualified Network.HTTP.Types as H