Opened 6 years ago

Last modified 4 months ago

#4239 new bug

-ddump-minimal-imports vs. type operators

Reported by: nomeata Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.10.3
Keywords: newcomer Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case: T4239
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Please excuse me reporting a bug without testing it with the latest released version, but I only have easy access to 6.12.1 now.

The working import import Darcs.Witnesses.Ordered ( (:>)(..), nullFL ) will be turned into the non-working import Darcs.Witnesses.Ordered ( :>(..), nullFL ) by ghc -dump-minimal-imports. It seems that type operators are not handled correctly by -ddump-minimal-imports.

Change History (7)

comment:1 Changed 6 years ago by igloo

  • Milestone set to 6.14.1
  • Test Case set to T4239

Thanks for the report.

comment:2 Changed 6 years ago by igloo

  • Milestone changed from 7.0.1 to 7.0.2

comment:3 Changed 5 years ago by igloo

  • Milestone changed from 7.0.2 to 7.2.1

comment:4 Changed 5 years ago by igloo@…

commit 5a369e7b9d99fb585aac1e994f7d180e2bc408ca

Author: Ian Lynagh <igloo@earth.li>
Date:   Sat Sep 17 22:32:11 2011 +0100

    Parenthesise type operators in -ddump-minimal-imports output; trac #4239

 compiler/hsSyn/HsImpExp.lhs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

comment:5 Changed 5 years ago by igloo

  • Milestone changed from 7.2.1 to 7.4.1
  • Resolution set to fixed
  • Status changed from new to closed

Fixed.

comment:6 Changed 4 months ago by dsf

  • Milestone 7.4.1 deleted
  • Resolution fixed deleted
  • Status changed from closed to new
  • Version changed from 6.12.1 to 7.10.3

There is at least one case where this is still happening - the operator · (chr 183) comes out without parens:

module Test ((·), ()) where
(·) = undefined
() = undefined
module Test2 ((·), ()) where
import Test ((·), ())

-ddump-minimal-imports outputs this for Test2:

import Test ( ·, () )
Last edited 4 months ago by dsf (previous) (diff)

comment:7 Changed 4 months ago by mpickering

  • Keywords newcomer added
Note: See TracTickets for help on using tickets.