[Haskell-cafe] A round of golf

Robert Greayer robgreayer at yahoo.com
Thu Sep 18 21:14:41 EDT 2008


--- 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)





      


More information about the Haskell-Cafe mailing list