Aliasing current module qualifier

John Meacham john at repetae.net
Mon Sep 29 21:02:11 UTC 2014


You don't need a new language construct, what i do is:

     module AnnoyinglyLongModuleName (M.length, M.null) where

    import AnnoyinglongLongModuleName as M

I think ghc would need to be extended a little to make this convienient as
it doesn't handle recursive module imports as transparently.

    John

On Mon, Sep 29, 2014 at 8:47 AM, Brandon Allbery <allbery.b at gmail.com>
wrote:

> On Mon, Sep 29, 2014 at 4:19 AM, Herbert Valerio Riedel <hvr at gnu.org>
> wrote:
>
>> Now it'd be great if I could do the following instead:
>>
>>     module AnnoyinglyLongModuleName (M.length, M.null) where
>>
>>     import AnnoyinglyLongModuleName as M -- <- does not work
>>
>
> I think if I wanted this syntax, I'd go for:
>
>     module AnnoyinglyLongModuleName as M where ...
>
> --
> brandon s allbery kf8nh                               sine nomine
> associates
> allbery.b at gmail.com
> ballbery at sinenomine.net
> unix, openafs, kerberos, infrastructure, xmonad
> http://sinenomine.net
>
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
>
>


-- 
John Meacham - http://notanumber.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20140929/079a9dc2/attachment-0001.html>


More information about the Glasgow-haskell-users mailing list