allow full import syntax in GHCi
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?)
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | -------------- |
| Version | 6.8.2 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |
</details>
<!-- {"blocked_by":[],"summary":"allow full import syntax in GHCi","status":"New","operating_system":"Unknown","component":"Compiler","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"6.8.2","keywords":[],"differentials":[],"test_case":"","architecture":"Unknown","cc":[""],"type":"FeatureRequest","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)\r\n\r\nsee http://article.gmane.org/gmane.comp.lang.haskell.cafe/41272\r\n\r\n(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?)","type_of_failure":"OtherFailure","blocking":[]} -->
issue