X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=Translator.hs;h=6a784251d3c310240fc657b8a0c183980cc80202;hb=53b8d7183c05b1c1248875bf3a9394a0a7af5518;hp=383c477282e04fa3429c153520cf13064eca1d0d;hpb=0de275199ba2f3a98339eefb7784e061a451c5f7;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git diff --git a/Translator.hs b/Translator.hs index 383c477..6a78425 100644 --- a/Translator.hs +++ b/Translator.hs @@ -92,9 +92,10 @@ moduleToVHDL core list = do -- Create entities and architectures for them Monad.zipWithM processBind statefuls binds modFuncs nameFlatFunction - modFuncs VHDL.createEntity + modFuncMap $ Map.mapWithKey (\hsfunc fdata -> fdata {funcEntity = VHDL.createEntity hsfunc fdata}) modFuncs VHDL.createArchitecture - VHDL.getDesignFiles + funcs <- getFuncs + return $ VHDL.getDesignFiles (map snd funcs) -- | Write the given design file to a file inside the given dir -- The first library unit in the designfile must be an entity, whose name