Re: Multiple imports on a single line

2017-02-02 Thread Vassil Ognyanov Keremidchiev
So it's O(N) -> O(1) where N is a number of lines/imports. But you're right for the readiness. I'm convinced! 2017-02-02 16:52 GMT+02:00 Doug McIlroy : > > I often see a confusion between greater expresiveness (good goal) and > > having to type less (largely irrelevant

Re: Multiple imports on a single line

2017-02-02 Thread Doug McIlroy
> I often see a confusion between greater expresiveness (good goal) and > having to type less (largely irrelevant goal). By all means make the module > system more expressive, but try to avoid "clever" things for convenience. To expand upon this principle a bit, syntactic sugar that promises to

Re: Multiple imports on a single line

2017-02-02 Thread Jon Fairbairn
Sven Panne writes: > I often see a confusion between greater expresiveness (good goal) and > having to type less (largely irrelevant goal). By all means make the module > system more expressive, but try to avoid "clever" things for convenience. +1 -- Jón Fairbairn

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
a.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 Ognyanov Keremidchiev wrote: > > Hello! > > What do you thin

Re: Multiple imports on a single line

2017-02-01 Thread Malcolm Wallace
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 > ... > > That way we could write more concise and

Aw: Re: Multiple imports on a single line

2017-02-01 Thread Marc Ziegert
ied/as -> q-as or q as or q/as or qas > Gesendet: Mittwoch, 01. Februar 2017 um 16:34 Uhr > Von: "Francesco Ariis" <fa...@ariis.it> > An: haskell-prime@haskell.org > Betreff: Re: Multiple imports on a single line > > On Wed, Feb 01, 2017 at 04:18:13PM +

Re: Multiple imports on a single line

2017-02-01 Thread Carter Schonwald
gt; > > > 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 im

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 Vassi

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