#3380: [Patch] Support implicit concatenation in list comprehensions
---------------------------------+------------------------------------------
    Reporter:  batterseapower    |        Owner:                  
        Type:  feature request   |       Status:  new             
    Priority:  normal            |    Milestone:                  
   Component:  Compiler          |      Version:  6.10.4          
    Severity:  normal            |   Resolution:                  
    Keywords:                    |   Difficulty:  Unknown         
    Testcase:                    |           Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |  
---------------------------------+------------------------------------------
Comment (by igloo):

 I have no net opinion either way. On the one hand, it would be nice to be
 able to do it, but on the flipside, I can imagine people getting confused
 if they don't notice that there isn't an extra pair of square brackets.

 A quick grep finds some cases where this could be used in the GHC sources:
 {{{
 ./main/DriverPipeline.hs:    let pkg_framework_opts = concat [
 ["-framework", fw] | fw <- pkg_frameworks ]
 ./main/DriverPipeline.hs:        framework_opts = concat [ ["-framework",
 fw] | fw <- reverse frameworks ]
 ./main/GHC.hs:    concat [ [(m,True), (m,False)] | m <- ms_home_srcimps s
 ]
 ./rename/RnNames.lhs:        ; addUsedRdrNames (concat [ [mkRdrQual mod
 occ, mkRdrUnqual occ]
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3380#comment:6>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to