git.iko.soy/distributed-process
on master help sign in
Compatibility with ghc-7.10: support new typeable
commit785543eb65f6fb99fca746570fbaac97662ffeaa authorAlexander Vershilov <alexander.vershilov@gmail.com> dateWed 1 Apr 2015, 15:45 (12 years ago) parent7b2eae3
1 file changed+4
src/Control/Distributed/Process/Serializable.hs+4
src/Control/Distributed/Process/Serializable.hs+4
@@ -73,7 +73,11 @@ sizeOfFingerprint = sizeOf (undefined :: Fingerprint)
7373
7474-- | The fingerprint of the typeRep of the argument
7575fingerprint :: Typeable a => a -> Fingerprint
76+#if MIN_VERSION_base(4,8,0)
77+fingerprint a = let TypeRep fp _ _ _ = typeOf a in fp
78+#else
7679fingerprint a = let TypeRep fp _ _ = typeOf a in fp
80+#endif
7781
7882-- | Show fingerprint (for debugging purposes)
7983showFingerprint :: Fingerprint -> ShowS