[GHC] #13528: Unqualified export of constructors doesn't work anymore
GHC
ghc-devs at haskell.org
Wed Apr 12 18:54:15 UTC 2017
#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
More information about the ghc-tickets
mailing list