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:
591c501
)
Monadify deSugar/Desugar: use do, return, applicative, standard monad functions
author
Twan van Laarhoven
<twanvl@gmail.com>
Thu, 17 Jan 2008 17:41:30 +0000
(17:41 +0000)
committer
Twan van Laarhoven
<twanvl@gmail.com>
Thu, 17 Jan 2008 17:41:30 +0000
(17:41 +0000)
compiler/deSugar/Desugar.lhs
patch
|
blob
|
history
diff --git
a/compiler/deSugar/Desugar.lhs
b/compiler/deSugar/Desugar.lhs
index
4ee9d43
..
f9e6212
100644
(file)
--- a/
compiler/deSugar/Desugar.lhs
+++ b/
compiler/deSugar/Desugar.lhs
@@
-41,7
+41,6
@@
import Maybes
import FastString
import Pretty ( Doc )
import Coverage
-import IOEnv
import Data.IORef
\end{code}
@@
-95,7
+94,7
@@
deSugar hsc_env
{ core_prs <- dsTopLHsBinds auto_scc binds_cvr
; (ds_fords, foreign_prs) <- dsForeigns fords
; let all_prs = foreign_prs ++ core_prs
- ; ds_rules <- mappM dsRule rules
+ ; ds_rules <- mapM dsRule rules
; return (all_prs, catMaybes ds_rules, ds_fords, ds_hpc_info, modBreaks)
}
; case mb_res of {