@@ -1,4 +1,3 @@
1−{-# LANGUAGE CPP #-}
21module Stackage.Tarballs
32 ( makeTarballs
43 ) where
@@ -27,11 +26,8 @@ makeTarballs ii = do
2726 createDirectoryIfMissing True $ takeDirectory extraTar
2827 L.writeFile extraTar $ Tar.write extraEntries
2928 where
30−#if MIN_VERSION_tar(0, 4, 0)
31− loop _ _ (Tar.Fail err) = throwIO err
32−#else
33− loop _ _ (Tar.Fail err) = error err
34−#endif
29+ -- Using "error . show" for compatibility with tar 0.3 and 0.4
30+ loop _ _ (Tar.Fail err) = error $ show err
3531 loop stable extra Tar.Done = return (stable [], extra [])
3632 loop stable extra (Tar.Next e es) =
3733 loop stable' extra' es