X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=compiler%2FdeSugar%2FDsBinds.lhs;h=0469b48d2f70cce13cea913415386865a996b303;hb=663b391470a783e8f23414c07c18a020850d2fb8;hp=4d2f9f15dde66cf24a867421dcfbb977ce6998ce;hpb=e5ca7e6e5137a2e6081717e5e90ca52a30840f68;p=ghc-hetmet.git diff --git a/compiler/deSugar/DsBinds.lhs b/compiler/deSugar/DsBinds.lhs index 4d2f9f1..0469b48 100644 --- a/compiler/deSugar/DsBinds.lhs +++ b/compiler/deSugar/DsBinds.lhs @@ -46,7 +46,6 @@ import BasicTypes hiding ( TopLevel ) import FastString import Util ( mapSnd ) - import Control.Monad import Data.List \end{code} @@ -90,8 +89,9 @@ dsHsBind auto_scc rest (VarBind var expr) addDictScc var core_expr `thenDs` \ core_expr' -> returnDs ((var, core_expr') : rest) -dsHsBind auto_scc rest (FunBind { fun_id = L _ fun, fun_matches = matches, fun_co_fn = co_fn, fun_tick = tick }) - = matchWrapper (FunRhs (idName fun)) matches `thenDs` \ (args, body) -> +dsHsBind auto_scc rest (FunBind { fun_id = L _ fun, fun_matches = matches, + fun_co_fn = co_fn, fun_tick = tick, fun_infix = inf }) + = matchWrapper (FunRhs (idName fun) inf) matches `thenDs` \ (args, body) -> mkOptTickBox tick body `thenDs` \ body' -> dsCoercion co_fn (return (mkLams args body')) `thenDs` \ rhs -> returnDs ((fun,rhs) : rest)