Commit eca045bc authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Handle undefined MIN_VERSION_base in Distribution.Utils.BinaryWithFingerprint



Fixes #4092.
Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 3d9be43b
......@@ -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