Re: Multiple imports on a single line

2017-02-01 Thread Sven Panne
2017-02-01 22:39 GMT+01:00 Vassil Ognyanov Keremidchiev : > Yes, but it could be a bit more denser without so much repetition of > "import", like: > > import Data.Text, qualified Data.Map as M, qualified Vector as V hiding > (Vector) > > i.e. the same as current situation, but

Re: Multiple imports on a single line

2017-02-01 Thread Vassil Ognyanov Keremidchiev
Yes, but it could be a bit more denser without so much repetition of "import", like: import Data.Text, qualified Data.Map as M, qualified Vector as V hiding (Vector) i.e. the same as current situation, but allow for multiple imports for the same word "import" comma separated. What do you think?

Re: Multiple imports on a single line

2017-02-01 Thread Malcolm Wallace
You can already write this, with only a tiny bit of syntax: module MyApp where import Data.Text; import Data.Foldable; import Control.Concurrent Whether it is good style is another matter, but all compilers will certainly accept it. Regards, Malcolm On 1 Feb 2017, at 14:18, Vassil

Aw: Re: Multiple imports on a single line

2017-02-01 Thread Marc Ziegert
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

Re: Multiple imports on a single line

2017-02-01 Thread Carter Schonwald
likewise, why not use semicolon? per se we already can do mulitple lines on a single line via semicolon :) On Wed, Feb 1, 2017 at 10:34 AM, Francesco Ariis wrote: > On Wed, Feb 01, 2017 at 04:18:13PM +0200, Vassil Ognyanov Keremidchiev > wrote: > > Hello! > > > > What do you

Re: Multiple imports on a single line

2017-02-01 Thread Francesco Ariis
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

Multiple imports on a single line

2017-02-01 Thread Vassil Ognyanov Keremidchiev
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 ... That way we could write more concise and short code as Haskell promises. This will be useful for small programs like scripts, small