Make the flatfunc in FuncMap optional.
[matthijs/master-project/cλash.git] / Translator.hs
index 5b58232b9845e52ea950c8c1133b33908d4de7fa..ec9334bdfe41e9463df1d684eb6b3c256054911c 100644 (file)
@@ -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 ()