self-import

John Meacham john at repetae.net
Mon Jan 10 03:35:31 EST 2005


It would be useful to be able to do a

module Doc.Pretty.Long.Name where

import Doc.Pretty.Long.Name as This

so within the module we can refer to itself as 'This' without having to
write out the full name, however ghc complains that the hi file for the
module it is trying to compile is not available. It would be nice if ghc
could recognize the self-import case and handle it directly.
        John

-- 
John Meacham - ⑆repetae.net⑆john⑈ 


More information about the Glasgow-haskell-users mailing list