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
Make the flatfunc in FuncMap optional.
[matthijs/master-project/cλash.git]
/
Translator.hs
diff --git
a/Translator.hs
b/Translator.hs
index 5b58232b9845e52ea950c8c1133b33908d4de7fa..ec9334bdfe41e9463df1d684eb6b3c256054911c 100644
(file)
--- a/
Translator.hs
+++ b/
Translator.hs
@@
-96,7
+96,7
@@
flattenBind bind@(NonRec var expr) = do
-- Add it to the session
--addFunc hsfunc hwfunc
let flatfunc = flattenFunction hsfunc bind
- addFunc hsfunc
flatfunc
+ addFunc hsfunc
let used_hsfuncs = map appFunc (apps flatfunc)
State.mapM resolvFunc used_hsfuncs
return ()