Fixed type argument to recursive call in generated composOp.

This commit is contained in:
bringert
2005-11-29 16:10:52 +00:00
parent 6c109eecc4
commit dba03132b5

View File

@@ -138,7 +138,7 @@ deriveComposOp t k cs =
-- has a dependent type
-- FIXME: make a special case for lists?
let rec v at = case at of
EApp (EVar t') _ | t' == t -> apply (e f) [at, e v]
EApp (EVar t') c | t' == t -> apply (e f) [c, e v]
_ -> e v
calls = zipWith rec vars (argumentTypes ct)
return $ Case (PCons ci (map PVar vars)) (apply (e ci) calls)