From: Matthijs Kooijman Date: Tue, 28 Jul 2009 13:38:30 +0000 (+0200) Subject: Make listBind use listBinding. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=8afc4063314d462b16d6138d9f0495a1f9cba9d3;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git Make listBind use listBinding. --- diff --git "a/c\316\273ash/CLasH/Translator.hs" "b/c\316\273ash/CLasH/Translator.hs" index c1e853a..1be9445 100644 --- "a/c\316\273ash/CLasH/Translator.hs" +++ "b/c\316\273ash/CLasH/Translator.hs" @@ -102,13 +102,7 @@ listBind :: FilePath -> String -> String -> IO () listBind libdir filename name = do (core, env) <- loadModule libdir filename let [(b, expr)] = findBinds core [name] - putStr "\n" - putStr $ prettyShow expr - putStr "\n\n" - putStr $ showSDoc $ ppr expr - putStr "\n\n" - putStr $ showSDoc $ ppr $ CoreUtils.exprType expr - putStr "\n\n" + listBinding (b, expr) -- | Translate the binds with the given names from the given core module to -- VHDL. The Bool in the tuple makes the function stateful (True) or