Fix TH ppr output for list comprehensions with only one Stmt
authorRyan Scott <ryan.gl.scott@gmail.com>
Sun, 11 Sep 2016 15:10:36 +0000 (11:10 -0400)
committerRyan Scott <ryan.gl.scott@gmail.com>
Sun, 11 Sep 2016 15:10:36 +0000 (11:10 -0400)
commit0e7ccf6d233c66b23a60de4e35e039f78ea3e162
tree38dbdd1af93003d863dbe1643282cf59aa7b9a22
parent7b7ea8f40e7400b8c183595a85bb2c65c9f9bb29
Fix TH ppr output for list comprehensions with only one Stmt

A folow-up to D2521 (which addressed #12583), where the `Outputable` `ppr`
output was tweaked to display a list comprehension with only one `Stmt` as
`[Foo]` instead of `[Foo|]` (which isn't valid Haskell). I forgot to update
the corresponding code in `Language.Haskell.TH.Ppr` which pretty-prints
`CompE`, however, so this commit takes care of that.
libraries/template-haskell/Language/Haskell/TH/Ppr.hs