Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:unimport functionality for psci #982

Open
hdgarrood opened this issue Mar 18, 2015 · 0 comments
Open

:unimport functionality for psci #982

hdgarrood opened this issue Mar 18, 2015 · 0 comments

Comments

@hdgarrood
Copy link
Contributor

This probably should wait until #817 is resolved.

It would be nice to be able to unimport modules, one at a time. Here's one potential way it could work:

> import Prelude.Unsafe
> :unimport Prelude.Unsafe
> :type unsafeIndex
(error: unknown value `unsafeIndex`)
> import qualified Control.Monad.ST as ST
> import Control.Monad.ST (newSTRef)
> :unimport Control.Monad.ST
Control.Monad.ST has been imported multiple times.
Which import would you like to remove?

   1) import qualified Control.Monad.ST as ST
   2) import Control.Monad.ST (newSTRef)
> 2
Ok, unimporting Control.Monad.ST (newSTRef).
> :type newSTRef
(error: unknown value `newSTRef`)
> :type ST.newSTRef
(works)
@paf31 paf31 added this to the 0.8.0 milestone Mar 18, 2015
@paf31 paf31 modified the milestones: 0.9.0, 0.10.0 Apr 10, 2016
@paf31 paf31 modified the milestones: 0.10.0, 1.0.0 Sep 17, 2016
@paf31 paf31 changed the title Add :unimport for psci :unimport functionality for psci Oct 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants