Put mkAssocElems in the TranslatorSession.
[matthijs/master-project/cλash.git] / cλash / CLasH / VHDL / VHDLTools.hs
index a8fe23941f15c36e0c686d23db0b4d203a8345bf..bd16acd0c3edf3f40f5192c727d3120d7a3b14d8 100644 (file)
@@ -85,10 +85,10 @@ mkAssocElems ::
   [AST.Expr]                    -- ^ The argument that are applied to function
   -> AST.VHDLName               -- ^ The binder in which to store the result
   -> Entity                     -- ^ The entity to map against.
-  -> [AST.AssocElem]            -- ^ The resulting port maps
+  -> TranslatorSession [AST.AssocElem] -- ^ The resulting port maps
 mkAssocElems args res entity =
     -- Create the actual AssocElems
-    zipWith mkAssocElem ports sigs
+    return $ zipWith mkAssocElem ports sigs
   where
     -- Turn the ports and signals from a map into a flat list. This works,
     -- since the maps must have an identical form by definition. TODO: Check