Fix byteswap functions under GHC 7.6
This commit is contained in:
+5
-1
@@ -297,9 +297,11 @@ import Data.Word as X (
|
|||||||
, Word32
|
, Word32
|
||||||
, Word64
|
, Word64
|
||||||
, Word8
|
, Word8
|
||||||
|
#if MIN_VERSION_base(4,7,0)
|
||||||
, byteSwap16
|
, byteSwap16
|
||||||
, byteSwap32
|
, byteSwap32
|
||||||
, byteSwap64
|
, byteSwap64
|
||||||
|
#endif
|
||||||
)
|
)
|
||||||
|
|
||||||
import Data.Either as X (
|
import Data.Either as X (
|
||||||
@@ -307,9 +309,11 @@ import Data.Either as X (
|
|||||||
, either
|
, either
|
||||||
, lefts
|
, lefts
|
||||||
, rights
|
, rights
|
||||||
|
, partitionEithers
|
||||||
|
#if MIN_VERSION_base(4,7,0)
|
||||||
, isLeft
|
, isLeft
|
||||||
, isRight
|
, isRight
|
||||||
, partitionEithers
|
#endif
|
||||||
)
|
)
|
||||||
|
|
||||||
import Data.Complex as X (
|
import Data.Complex as X (
|
||||||
|
|||||||
Reference in New Issue
Block a user