From: Matthijs Kooijman Date: Thu, 6 Aug 2009 15:21:49 +0000 (+0200) Subject: Fix the trace output of normalized functions. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=e17057696a5f74170dad6167867ee24d64d0854b;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git Fix the trace output of normalized functions. Before, it would output the un-normalized version. --- diff --git "a/c\316\273ash/CLasH/Normalize.hs" "b/c\316\273ash/CLasH/Normalize.hs" index 647bd19..b2b4bd8 100644 --- "a/c\316\273ash/CLasH/Normalize.hs" +++ "b/c\316\273ash/CLasH/Normalize.hs" @@ -522,7 +522,7 @@ normalizeExpr what expr = do -- Normalize this expression trace ("Transforming " ++ what ++ "\nBefore:\n\n" ++ showSDoc ( ppr expr' ) ++ "\n") $ return () expr'' <- dotransforms transforms expr' - trace ("\nAfter:\n\n" ++ showSDoc ( ppr expr')) $ return () + trace ("\nAfter:\n\n" ++ showSDoc ( ppr expr'')) $ return () return expr'' -- | Get the value that is bound to the given binder at top level. Fails when