Ticket #3572 (closed merge: fixed)

Opened 4 years ago

Last modified 4 years ago

Empty types are prettyprinted with trailing "="

Reported by: FSalad Owned by: igloo
Priority: normal Milestone:
Component: Template Haskell Version: 6.10.4
Keywords: Cc:
Operating System: Linux Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: th/T3572 Blocked By:
Blocking: Related Tickets:

Description

This prints the invalid declaration "data Void ="; should be "data Void":

{-# LANGUAGE EmptyDataDecls #-}
import Language.Haskell.TH
import Language.Haskell.TH.Ppr

main = putStrLn . pprint =<< runQ [d| data Void |]

Attachments

fix-3572 Download (0.9 KB) - added by FSalad 4 years ago.
fix

Change History

Changed 4 years ago by FSalad

fix

Changed 4 years ago by simonpj

  • owner set to igloo
  • difficulty set to Unknown
  • type changed from bug to merge
  • testcase set to th/T3572

Thanks! I pushed an identical patch before seeing yours.

Thu Oct 15 12:41:04 BST 2009  simonpj@microsoft.com
  * Fix Trac #3572 (pls merge)

    M ./Language/Haskell/TH/Ppr.hs -1 +1

Ian pls merge to 6.12.

Simon

Changed 4 years ago by igloo

  • status changed from new to closed
  • resolution set to fixed

Merged

Note: See TracTickets for help on using tickets.