[Haskell-cafe] Qualified import syntax badly designed (?)

Jonathan Cast jonathanccast at fastmail.fm
Wed Jul 9 13:07:40 EDT 2008


On Wed, 2008-07-09 at 12:36 +0200, Henning Thielemann wrote:
> On Wed, 9 Jul 2008, Neil Mitchell wrote:
> 
> > For example, in the module I'm currently working on:
> >
> > module Hoogle.DataBase.TypeSearch.Graph(
> >    Graph, newGraph,
> >    GraphResult(..), ArgPos, Binding,
> >    graphSearch
> >    ) where
> >
> > I dislike the fact that ,'s come after every line but the last - it
> > lacks consistency, and often requires 1 more line of diff when adding
> > somethign (add comma to previous line, and add the line). I would
> > rather write:
> 
> Also in the current syntax it is allowed to add a comma in the last line.

GHC rejects this.  (Or is that just for import lists?)

jcc




More information about the Haskell-Cafe mailing list