diff options
Diffstat (limited to 'dev-haskell/wai/files/wai-1.4.0.1-support-vault-3.0.patch')
-rw-r--r-- | dev-haskell/wai/files/wai-1.4.0.1-support-vault-3.0.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-haskell/wai/files/wai-1.4.0.1-support-vault-3.0.patch b/dev-haskell/wai/files/wai-1.4.0.1-support-vault-3.0.patch new file mode 100644 index 000000000000..4fef50a3f79a --- /dev/null +++ b/dev-haskell/wai/files/wai-1.4.0.1-support-vault-3.0.patch @@ -0,0 +1,24 @@ +diff --git a/Network/Wai.hs b/Network/Wai.hs +index 626b30d..8189592 100644 +--- a/Network/Wai.hs ++++ b/Network/Wai.hs +@@ -1,6 +1,7 @@ + {-# LANGUAGE Rank2Types #-} + {-# LANGUAGE ExistentialQuantification #-} + {-# LANGUAGE DeriveDataTypeable #-} ++{-# LANGUAGE CPP #-} + {-| + + This module defines a generic web application interface. It is a common +@@ -61,7 +62,11 @@ import qualified Network.HTTP.Types as H + import Data.Text (Text) + import Data.ByteString.Lazy.Char8 () -- makes it easier to use responseLBS + import Blaze.ByteString.Builder (fromByteString) ++#if MIN_VERSION_vault(0,3,0) ++import Data.Vault.Lazy (Vault) ++#else + import Data.Vault (Vault) ++#endif + import Data.Word (Word64) + + -- | Information on the request sent by the client. This abstracts away the |