[GHC] #10478: Shorter import syntax
GHC
ghc-devs at haskell.org
Mon Sep 14 15:30:04 UTC 2015
#10478: Shorter import syntax
-------------------------------------+-------------------------------------
Reporter: acowley | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions: Phab:D1238
-------------------------------------+-------------------------------------
Comment (by goldfire):
Replying to [comment:14 thomie]:
> What is the difference between `import qualified A` and `import A
qualified` (row 3)?
You're right. Those are the same. I've edited it all to clarify.
`import qualified A (..)` brings `A.x` and `A.y` into scope.
`import A (..) qualified` brings `x`, `y`, `A.x`, and `A.y` into scope.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10478#comment:15>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list