Ticket #2362 (closed feature request: fixed)
allow full import syntax in GHCi
| Reported by: | Isaac Dupree | Owned by: | igloo |
|---|---|---|---|
| Priority: | high | Milestone: | 7.0.1 |
| Component: | Compiler | Version: | 6.8.2 |
| Keywords: | ghci, import | Cc: | rturk@…, jcpetruzza@…, gwern0@…, cgibbard@…, nicolas.pouillard@…, rendel@…, mad.one@…, mjm2002@…, ghci@…, johan.tibell@…, vogt.adam@… |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
for example, GHCi currently allows "import Data.Map" but not "import Data.Map as Map" or (to demonstrate a fuller range of import syntax) "import qualified Prelude as P hiding (mplus)". (In GHCi, you'd probably only be interested in hiding/qualifying something like Data.Map that made it harder for you to use Prelude functions due to actual ambiguity -- or vice versa)
see http://article.gmane.org/gmane.comp.lang.haskell.cafe/41272
(P.S. I would also like everything in a module, such as data declarations, to work in GHCi also, but I suspect that's a more complicated feature request?)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

