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 goal). By all means make t

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 sa

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 allow for multiple i

Re: Multiple imports on a single line

2017-02-01 Thread Vassil Ognyanov Keremidchiev
rol.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 think about an idea to have mul

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 short code as

Re: Re: Multiple imports on a single line

2017-02-01 Thread Sven Panne
2017-02-01 20:51 GMT+01:00 Marc Ziegert : > [...] 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)] > [...] o_O I am really not sure if this is a s

Re: Multiple imports on a single line

2017-02-01 Thread Cale Gibbard
roject. On Wed, Feb 1, 2017, 10:36 Francesco Ariis wrote: 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,

Aw: Re: Multiple imports on a single line

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

Re: Multiple imports on a single line

2017-02-01 Thread Carter Schonwald
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 statem

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,

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