@@ -94,7 +94,8 @@ elabClass info syn_in doc fc constraints tn ps pDocs fds ds
9494 mapM_ (rec_elabDecl info EAll info) (concat cfns)
9595
9696 -- for each method, build a top level function
97− fns <- mapM (tfun cn constraint syn (map fst imethods)) imethods
97+ fns <- mapM (tfun cn constraint (syn { imp_methods = mnames })
98+ (map fst imethods)) imethods
9899 logLvl 5 $ "Functions " ++ show fns
99100 -- Elaborate the the top level methods
100101 mapM_ (rec_elabDecl info EAll info) (concat fns)
@@ -199,7 +200,7 @@ elabClass info syn_in doc fc constraints tn ps pDocs fds ds
199200 let anames = map (\x -> sMN x "arg") [0..]
200201 let lhs = PApp fc (PRef fc m) (pconst capp : lhsArgs margs anames)
201202 let rhs = PApp fc (getMeth mnames all m) (rhsArgs margs anames)
202− iLOG (showTmImpls ty)
203+ iLOG (showTmImpls ty')
203204 iLOG (show (m, ty', capp, margs))
204205 iLOG (showTmImpls lhs ++ " = " ++ showTmImpls rhs)
205206 return [PTy doc [] syn fc o m ty',