projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04a2850
)
[project @ 2000-09-07 16:24:14 by simonpj]
author
simonpj
<unknown>
Thu, 7 Sep 2000 16:24:14 +0000
(16:24 +0000)
committer
simonpj
<unknown>
Thu, 7 Sep 2000 16:24:14 +0000
(16:24 +0000)
Get the worker and wrapper in the right order
ghc/compiler/deSugar/DsForeign.lhs
patch
|
blob
|
history
diff --git
a/ghc/compiler/deSugar/DsForeign.lhs
b/ghc/compiler/deSugar/DsForeign.lhs
index
64cd16d
..
6c7ad10
100644
(file)
--- a/
ghc/compiler/deSugar/DsForeign.lhs
+++ b/
ghc/compiler/deSugar/DsForeign.lhs
@@
-158,7
+158,7
@@
dsFImport fn_id ty may_not_gc ext_name cconv
wrapper_body = foldr ($) (res_wrapper work_app) arg_wrappers
wrap_rhs = mkInlineMe (mkLams (tvs ++ args) wrapper_body)
in
- returnDs [NonRec fn_id wrap_rhs, NonRec work_id work_rhs]
+ returnDs [NonRec work_id work_rhs, NonRec fn_id wrap_rhs]
\end{code}
Foreign labels