TcSimplify: Condense MASSERT2() usage onto a single line
authorBen Gamari <ben@smart-cactus.org>
Fri, 24 Aug 2018 02:39:06 +0000 (22:39 -0400)
committerBen Gamari <ben@smart-cactus.org>
Fri, 24 Aug 2018 02:42:08 +0000 (22:42 -0400)
Sadly macOS's C preprocessor gets angry at the sight of multi-line macro
invocations.

compiler/typecheck/TcSimplify.hs

index c2d7eb0..2a89ab2 100644 (file)
@@ -1558,9 +1558,7 @@ solveImplication imp@(Implic { ic_tclvl  = tclvl
     -- remaining commented out for now.
     {-
     check_tc_level = do { cur_lvl <- TcS.getTcLevel
-                        ; MASSERT2( tclvl == pushTcLevel cur_lvl
-                                  , text "Cur lvl =" <+> ppr cur_lvl $$
-                                    text "Imp lvl =" <+> ppr tclvl ) }
+                        ; MASSERT2( tclvl == pushTcLevel cur_lvl , text "Cur lvl =" <+> ppr cur_lvl $$ text "Imp lvl =" <+> ppr tclvl ) }
     -}
 
 ----------------------