X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2FdeSugar%2FDsBinds.lhs;fp=ghc%2Fcompiler%2FdeSugar%2FDsBinds.lhs;h=cc9c36393fdda50d10a1f543d113bbf6b01cb5f6;hb=1c62b517711ac232a8024d91fd4b317a6804d28e;hp=9cb09ed73e5b83af7475646a631cd3e3a9b1ef42;hpb=8d0e6c63640414fda69fe77c126f10128a90a5f3;p=ghc-hetmet.git diff --git a/ghc/compiler/deSugar/DsBinds.lhs b/ghc/compiler/deSugar/DsBinds.lhs index 9cb09ed..cc9c363 100644 --- a/ghc/compiler/deSugar/DsBinds.lhs +++ b/ghc/compiler/deSugar/DsBinds.lhs @@ -78,8 +78,8 @@ dsMonoBinds _ (VarMonoBind var expr) rest dsMonoBinds auto_scc (FunMonoBind fun _ matches locn) rest = putSrcLocDs locn $ - matchWrapper (FunMatch fun) matches error_string `thenDs` \ (args, body) -> - addAutoScc auto_scc (fun, mkLams args body) `thenDs` \ pair -> + matchWrapper (FunRhs (idName fun)) matches error_string `thenDs` \ (args, body) -> + addAutoScc auto_scc (fun, mkLams args body) `thenDs` \ pair -> returnDs (pair : rest) where error_string = "function " ++ showSDoc (ppr fun)