From 070ac54067e0ce4249d21d851b4814032f78ff91 Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Mon, 2 Jan 2017 10:59:05 +0000 Subject: [PATCH] Fix byteswap functions under GHC 7.6 --- src/Protolude.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Protolude.hs b/src/Protolude.hs index bc8500f9f..edb4dc0ee 100644 --- a/src/Protolude.hs +++ b/src/Protolude.hs @@ -297,9 +297,11 @@ import Data.Word as X ( , Word32 , Word64 , Word8 +#if MIN_VERSION_base(4,7,0) , byteSwap16 , byteSwap32 , byteSwap64 +#endif ) import Data.Either as X ( @@ -307,9 +309,11 @@ import Data.Either as X ( , either , lefts , rights + , partitionEithers +#if MIN_VERSION_base(4,7,0) , isLeft , isRight - , partitionEithers +#endif ) import Data.Complex as X (