Ticket #7007 (closed bug: fixed)

Opened 11 months ago

Last modified 11 months ago

Fixity declaration reported as ambiguous

Reported by: simonpj Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.4.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: rename/should_compile/T7007 Blocked By:
Blocking: Related Tickets:

Description

Christopher Dove reports: So I have some module, in a work project that I'm portnig from GHC 6.12.3 to GHC 7.4.2,

module Data.Monoid.Operator where

import Data.Monoid

(++) :: Monoid a => a -> a -> a
(++) = mappend
infixr 5 ++

This compiles happily on GHC 6.12.3, but on 7.4.2 says:

src/Data/Monoid/Operator.hs:9:10:
    Ambiguous occurrence `++'
    It could refer to either `Data.Monoid.Operator.++',
                             defined at src/Data/Monoid/Operator.hs:8:1
                          or `Prelude.++',
                             imported from `Prelude' at src/Data/Monoid/Operator.hs:3:8-27
                             (and originally defined in `GHC.Base')

Change History

Changed 11 months ago by simonpj

  • status changed from new to closed
  • testcase set to rename/should_compile/T7007
  • resolution set to fixed
Note: See TracTickets for help on using tickets.