[GHC] #13528: Unqualified export of constructors

#13528: Unqualified export of constructors -------------------------------------+------------------------------------- Reporter: dmendler | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: GHC rejects Unknown/Multiple | valid program Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Unqualified exports of constructors doesn't work anymore in 8.2.1-rc1. It worked before in 8.0. Is this intended or a regression? {{{ module Test ( GHC.Exts.IsList( Item , fromList , toList ) , Data.Bool.Bool(True, False) ) where import qualified GHC.Exts import qualified Data.Bool }}} The error: {{{ • Not in scope: data constructor ‘False’ Perhaps you meant ‘Prelude.False’ (imported from Prelude) • In the export: Data.Bool.Bool(False, True) }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13528 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13528: Unqualified export of constructors doesn't work anymore -------------------------------------+------------------------------------- Reporter: dmendler | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13528#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13528: Unqualified export of constructors doesn't work anymore -------------------------------------+------------------------------------- Reporter: dmendler | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * cc: mpickering (added) Comment: Matthew, might you be able to look at this? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13528#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13528: Unqualified export of constructors doesn't work anymore -------------------------------------+------------------------------------- Reporter: dmendler | Owner: mpickering Type: bug | Status: new Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by mpickering): * owner: (none) => mpickering -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13528#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13528: Unqualified export of constructors doesn't work anymore
-------------------------------------+-------------------------------------
Reporter: dmendler | Owner: mpickering
Type: bug | Status: new
Priority: normal | Milestone: 8.2.1
Component: Compiler | Version: 8.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#13528: Unqualified export of constructors doesn't work anymore -------------------------------------+------------------------------------- Reporter: dmendler | Owner: mpickering Type: bug | Status: merge Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => merge @@ -4,1 +4,1 @@ - {{{ + {{{#!hs New description: Unqualified exports of constructors doesn't work anymore in 8.2.1-rc1. It worked before in 8.0. Is this intended or a regression? {{{#!hs module Test ( GHC.Exts.IsList( Item , fromList , toList ) , Data.Bool.Bool(True, False) ) where import qualified GHC.Exts import qualified Data.Bool }}} The error: {{{ • Not in scope: data constructor ‘False’ Perhaps you meant ‘Prelude.False’ (imported from Prelude) • In the export: Data.Bool.Bool(False, True) }}} -- -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13528#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13528: Unqualified export of constructors doesn't work anymore -------------------------------------+------------------------------------- Reporter: dmendler | Owner: mpickering Type: bug | Status: merge Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: module/T13528 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * testcase: => module/T13528 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13528#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#13528: Unqualified export of constructors doesn't work anymore -------------------------------------+------------------------------------- Reporter: dmendler | Owner: mpickering Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: module/T13528 Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed Comment: Merged as fd6b7f5619a17aca531e3d8908e36d5961beffd2. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13528#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC