Ticket #1895 (closed feature request: duplicate)

Opened 6 years ago

Last modified 4 years ago

Allow aliases in GHCi module imports

Reported by: tibbe Owned by:
Priority: high Milestone: 6.12.1
Component: GHCi Version: 6.8.1
Keywords: Cc: rturk@…, jcpetruzza@…, gwern0@…, cgibbard@…, nicolas.pouillard@…, rendel@…, mad.one@…, mjm2002@…
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

It would be convenient if it was possible to import a package in GHCi under another name.

:m +Data.ByteString.Lazy.Char8 as B

This is especially useful with modules like Data.ByteString which names collide with Prelude.

Change History

Changed 6 years ago by tibbe

  • version set to 6.8.1
  • os changed from Unknown to Multiple

Changed 6 years ago by Remi

  • cc rturk@… added

Changed 5 years ago by igloo

  • difficulty set to Unknown
  • milestone set to 6.8 branch

This would also keep the prompt width down, which would be nice.

Changed 5 years ago by igloo

  • milestone changed from 6.8 branch to 6.10 branch

Changed 5 years ago by jcpetruzza

  • cc jcpetruzza@… added

Changed 5 years ago by guest

  • cc gwern0@… added

Speaking for myself, I really hope that when this is fixed, it'll be easy to load modules qualified via the GHC API. This would let me fix mueval so things like 'mueval -e "Map.map (+1) $ Map.fromList [(1,2)]' could work.

(Which is valuable since I use mueval in Lambdabot, and Lambdabot users expect to be able to use qualified imports.)

Changed 5 years ago by guest

  • cc cgibbard@… added

Changed 5 years ago by ertai

  • cc nicolas.pouillard@… added

Changed 5 years ago by Toxaris

  • cc rendel@… added

Changed 5 years ago by thoughtpolice

  • cc mad.one@… added

Changed 5 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple

Changed 5 years ago by morrow

  • cc mjm2002@… added

Changed 4 years ago by igloo

  • priority changed from normal to high

Many CCed, so making high priority

Changed 4 years ago by simonmar

This would be subsumed by

#2362
allow full import syntax in GHCi

.

Changed 4 years ago by igloo

  • milestone changed from 6.10 branch to 6.12.1

Changed 4 years ago by simonmar

  • status changed from new to closed
  • resolution set to duplicate

closing to merge with #2362

Note: See TracTickets for help on using tickets.