News for hackers. Stuff that matters.
Re:Use Haskell for shell scripting by marcosdumay on Friday January 30, 2015 @09:39AM (#8972178)
Prefixes are a problem, no arguing about that. But...

> is awkward to build (compared to just giving options to a command or arguments to a function)

Idiomatic bash: apt-get install package_name

Idiomátic haskell: apt_get $ AptInstall package_name

What is so awkward about that?

Re:Use Haskell for shell scripting by mercurial on Friday January 30, 2015 @11:04AM (#8972635)
First, it doesn't let you install multiple packages in one go (or let you install a specific package version). Secondly, it doesn't support apt-get options like -m, -d -n...

You could extend your argument structure for this, but then you need to specify every argument all the time, or have the user modify a default value. This is definitely awkward compared to straight shell.