projects
/
matthijs
/
master-project
/
cλash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc16bdb
)
Add comment.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 30 Nov 2009 21:51:55 +0000
(22:51 +0100)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Mon, 30 Nov 2009 21:51:55 +0000
(22:51 +0100)
cλash/CLasH/Normalize.hs
patch
|
blob
|
history
diff --git
a/cλash/CLasH/Normalize.hs
b/cλash/CLasH/Normalize.hs
index ea1051694f52c405e3fd1d965b578a082389ec27..4743824bf2ba85313b3bb4bf1241f00e0f47e2d2 100644
(file)
--- a/
cλash/CLasH/Normalize.hs
+++ b/
cλash/CLasH/Normalize.hs
@@
-620,6
+620,9
@@
argprop expr@(App _ _) | is_var fexpr = do
else do
-- Representable types will not be propagated, and arguments with free
-- type variables will be propagated later.
+ -- Note that we implicitly remove any type variables in the type of
+ -- the original argument by using the type of the actual argument
+ -- for the new formal parameter.
-- TODO: preserve original naming?
id <- Trans.lift $ mkBinderFor arg "param"
-- Just pass the original argument to the new function, which binds it