projects
/
matthijs
/
master-project
/
cλash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add AppFirst and AddSecond to CoreContext.
[matthijs/master-project/cλash.git]
/
cλash
/
CLasH
/
Normalize
/
NormalizeTools.hs
diff --git
a/cλash/CLasH/Normalize/NormalizeTools.hs
b/cλash/CLasH/Normalize/NormalizeTools.hs
index b1ca36900cd5a37220052ac2687e685ce6141814..c774a335f34f01b65fd9f6b1c51c17f29655702c 100644
(file)
--- a/
cλash/CLasH/Normalize/NormalizeTools.hs
+++ b/
cλash/CLasH/Normalize/NormalizeTools.hs
@@
-57,8
+57,8
@@
applyboth first (name, second) context expr = do
-- expression itself.
subeverywhere :: Transform -> Transform
subeverywhere trans c (App a b) = do
-- expression itself.
subeverywhere :: Transform -> Transform
subeverywhere trans c (App a b) = do
- a' <- trans (
Other
:c) a
- b' <- trans (
Other
:c) b
+ a' <- trans (
AppFirst
:c) a
+ b' <- trans (
AppSecond
:c) b
return $ App a' b'
subeverywhere trans c (Let (NonRec b bexpr) expr) = do
return $ App a' b'
subeverywhere trans c (Let (NonRec b bexpr) expr) = do