You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-haskell/happy/files/happy-1.18.9-ghc-7.5.patch

21 lines
792 B

--- happy-1.18.9-orig/Setup.lhs 2012-02-06 20:49:56.000000000 +1100
+++ happy-1.18.9/Setup.lhs 2012-06-25 08:55:56.283147498 +1000
@@ -10,7 +10,7 @@
import Distribution.Simple.Program
import System.FilePath ((</>))
-import System.IO.Error ( try )
+import System.IO.Error ( tryIOError )
import System.Directory (removeFile)
main :: IO ()
@@ -50,7 +50,7 @@
[ cpp_template "GLR_Base.hs" dst opts | (dst,opts) <- glr_base_templates ] ++
[ cpp_template "GLR_Lib.hs" dst opts | (dst,opts) <- glr_templates ])
-myPostClean _ _ _ _ = mapM_ (try . removeFile) all_template_files
+myPostClean _ _ _ _ = mapM_ (tryIOError . removeFile) all_template_files
myInstall pkg_descr lbi hooks flags =
instHook defaultUserHooks pkg_descr' lbi hooks flags