@@ -345,6 +345,9 @@ data WrapTypeable f where
345345instance Show (WrapTypeable f) where
346346 show (WrapTypeable (_ :: f a)) = show $ calcFp @a
347347
348+wrapTypeable :: TypeRep a -> f a -> WrapTypeable f
349+wrapTypeable tr = withTypeable tr WrapTypeable
350+
348351{- |
349352
350353prop> fromList . toList == 'id'
@@ -375,7 +378,7 @@ instance IsList (TypeRepMap f) where
375378 toList = map toWrapTypeable . toTriples
376379 where
377380 toWrapTypeable :: (Fingerprint, Any, Any) -> WrapTypeable f
378− toWrapTypeable (_, an, k) = withTypeable (unsafeCoerce k) $ fromAny an
381+ toWrapTypeable (_, an, k) = wrapTypeable (unsafeCoerce k) (fromAny an)
379382
380383calcFp :: forall a . Typeable a => Fingerprint
381384calcFp = typeRepFingerprint $ typeRep @a