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