
#12488: Explicit namespaces doesn't enforce namespaces -------------------------------------+------------------------------------- Reporter: mpickering | Owner: ruperthorlick Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: | Keywords: newcomer Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by ruperthorlick): Replying to [comment:1 mpickering]:
Simon says that we should just reject the use of explicit namespace qualifiers in the subcomponents of the export item in the parser.
This would work and be a fairly easy change, however I stumled across the following in DynFlags.hs: {{{ -- We turn this on so that we can export associated type -- type synonyms in subordinates (e.g. MyClass(type AssocType)) , (LangExt.TypeFamilies, turnOn, LangExt.ExplicitNamespaces) }}} So for the above they might want to export `Foo (type A)` Does this mean we need something more complicated? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12488#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler