On Fri, 2008-09-19 at 06:38 +0200, Daniel Fischer wrote:
> Am Freitag, 19. September 2008 03:14 schrieb Robert Greayer:
> > --- On Thu, 9/18/08, Creighton Hogg <[EMAIL PROTECTED]> wrote:
> > > If this makes anyone cringe or cry
> > > "you're doing it wrong", I'd
> > > actually like to hear it.
> >
> > Just to make everyone cry:
> >
> > main = getArgs >>= \(x:_) -> system ("wc -l " ++ x)
> >
> 
> Ouch!

Indeed.

main = getArgs >>= system . ("wc -l "++) . head

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to