projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ext-core library: Parser fixes; make it build with the HEAD
[ghc-hetmet.git]
/
utils
/
ext-core
/
Setup.lhs
diff --git
a/utils/ext-core/Setup.lhs
b/utils/ext-core/Setup.lhs
index
f7706b8
..
12d5bc5
100644
(file)
--- a/
utils/ext-core/Setup.lhs
+++ b/
utils/ext-core/Setup.lhs
@@
-2,8
+2,8
@@
\begin{code}
{-# OPTIONS -Wall #-}
\begin{code}
{-# OPTIONS -Wall #-}
+import Control.Exception
import Control.Monad
import Control.Monad
-import Data.List
import Distribution.PackageDescription
import Distribution.Simple
import Distribution.Simple.LocalBuildInfo
import Distribution.PackageDescription
import Distribution.Simple
import Distribution.Simple.LocalBuildInfo
@@
-16,9
+16,9
@@
import Control.Exception (try)
main :: IO ()
main = do
main :: IO ()
main = do
- let hooks = defaultUserHooks {
+ let hooks = simpleUserHooks {
buildHook = build_primitive_sources
buildHook = build_primitive_sources
- $ buildHook defaultUserHooks
+ $ buildHook simpleUserHooks
}
defaultMainWithHooks hooks
\end{code}
}
defaultMainWithHooks hooks
\end{code}
@@
-58,7
+58,7
@@
maybeUpdateFile source target = do
r <- rawSystem "cmp" ["-s" {-quiet-}, source, target]
case r of
ExitSuccess -> removeFile source
r <- rawSystem "cmp" ["-s" {-quiet-}, source, target]
case r of
ExitSuccess -> removeFile source
- ExitFailure _ -> do try (removeFile target); renameFile source target
+ ExitFailure _ -> do (try :: IO () -> IO (Either IOException ())) (removeFile target); renameFile source target
\end{code}
\ No newline at end of file
\end{code}
\ No newline at end of file