[Haskell-cafe] A round of golf

Daniel Fischer daniel.is.fischer at web.de
Fri Sep 19 00:38:28 EDT 2008


Am Freitag, 19. September 2008 03:14 schrieb Robert Greayer:
> --- On Thu, 9/18/08, Creighton Hogg <wchogg at gmail.com> 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!


More information about the Haskell-Cafe mailing list