[Haskell-cafe] Implicit concatenation in list comprehensions

Neil Mitchell ndmitchell at gmail.com
Tue Jul 21 05:26:55 EDT 2009


> Except that it's ugly compared to the proposed extension. With the
> extension you can put things in the same, right place:
>
> renderGhcOptions opts =
>     ghcOptExtraPre opts
>
>  -- source search path
>  ++ [ "-i"      | not (null (ghcOptSearchPath opts)) ]
>  ++ [ "-i", dir | dir <- ghcOptSearchPath opts ]

Following the discussions, I now support this extension too - I keep
seeing more and more places in my code where it would be very useful.

Thanks

Neil


More information about the Haskell-Cafe mailing list