projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ecc046a
)
Monadify typecheck/TcTyFuns: use standard monad functions
author
Twan van Laarhoven
<twanvl@gmail.com>
Thu, 17 Jan 2008 20:55:05 +0000
(20:55 +0000)
committer
Twan van Laarhoven
<twanvl@gmail.com>
Thu, 17 Jan 2008 20:55:05 +0000
(20:55 +0000)
compiler/typecheck/TcTyFuns.lhs
patch
|
blob
|
history
diff --git
a/compiler/typecheck/TcTyFuns.lhs
b/compiler/typecheck/TcTyFuns.lhs
index
706fe2f
..
82e397f
100644
(file)
--- a/
compiler/typecheck/TcTyFuns.lhs
+++ b/
compiler/typecheck/TcTyFuns.lhs
@@
-40,7
+40,7
@@
import Maybes
-- standard
import Data.List
-- standard
import Data.List
-import Control.Monad (liftM)
+import Control.Monad
\end{code}
\end{code}
@@
-663,7
+663,7
@@
The following rules exploits the reflexivity of equality:
\begin{code}
trivialRule :: IdemRewriteRule
trivialRule insts
\begin{code}
trivialRule :: IdemRewriteRule
trivialRule insts
- = liftM catMaybes $ mappM trivial insts
+ = liftM catMaybes $ mapM trivial insts
where
trivial inst
| ASSERT( isEqInst inst )
where
trivial inst
| ASSERT( isEqInst inst )