I like this idea.
How about some more syntactic sugar?
{-# LANGUAGE ImportSugar #-}
import [Data.[Text, Foldable q-as F, Vector (Vector), Vector q-as V hiding
(Vector)], Control.Concurrent, Data.List q (sum)]
- tree structure, one import per leaf
- prefix qualified -> postfix q
- qualified/as -> q-as or q as or q/as or qas
> Gesendet: Mittwoch, 01. Februar 2017 um 16:34 Uhr
> Von: "Francesco Ariis" <[email protected]>
> An: [email protected]
> Betreff: Re: Multiple imports on a single line
>
> On Wed, Feb 01, 2017 at 04:18:13PM +0200, Vassil Ognyanov Keremidchiev wrote:
> > Hello!
> >
> > What do you think about an idea to have multiple imports on a single line,
> > like:
> >
> > module MyApp where
> > import Data.Text, Data.Foldable, Control.Concurrent
> > ...
>
> Hello Vassil,
> how would qualified/as work?
> Would import statement like this:
>
> import Data.Text, qualified Data.Foldable as F, Control.Concurrent
>
> be allowed?
>
> _______________________________________________
> Haskell-prime mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-prime
>
_______________________________________________
Haskell-prime mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-prime