Commit 518cd397 authored by bardur.arantsson's avatar bardur.arantsson Committed by GitHub
Browse files

Merge pull request #4101 from ezyang/pr/T4092

Handle undefined MIN_VERSION_base in Distribution.Utils.BinaryWithFin…
parents 431e8696 eca045bc
......@@ -8,7 +8,13 @@ module Distribution.Utils.BinaryWithFingerprint (
decodeWithFingerprintOrFailIO,
) where
#if MIN_VERSION_base(4,8,0)
#ifdef MIN_VERSION_base
#define MINVER_base_48 MIN_VERSION_base(4,8,0)
#else
#define MINVER_base_48 (__GLASGOW_HASKELL__ >= 710)
#endif
#if MINVER_base_48
import Distribution.Compat.Binary
import Data.ByteString.Lazy (ByteString)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment