From a83e96259fc946f1167ef3646be0f4483a1095e2 Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Mon, 9 May 2016 18:17:33 +0200 Subject: [PATCH] Fix build with bytestring >= 0.10.8 --- src/HPath.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/HPath.hs b/src/HPath.hs index 0b84119..5af321e 100644 --- a/src/HPath.hs +++ b/src/HPath.hs @@ -52,7 +52,11 @@ module HPath import Control.Exception (Exception) import Control.Monad.Catch (MonadThrow(..)) +#if MIN_VERSION_bytestring(0,10,8) +import Data.ByteString(ByteString, stripPrefix) +#else import Data.ByteString(ByteString) +#endif import qualified Data.ByteString as BS import Data.Data import qualified Data.List as L