[Nix-dev] Use Haskell for Shell Scripting

Joe Hillenbrand joehillen at gmail.com
Fri Jan 30 18:35:41 CET 2015

On Fri, Jan 30, 2015 at 8:36 AM, Domen Kožar <domen at dev.si> wrote:

> If you want to impose on people to learn Haskell and Nix to contribute,
> you're going to end up in a lonely island. Remember, Nix tries to be
> approachable to everyone and that's why it's minimal and simple.

I'll never buy the circular argument that "Haskell's not popular because
Haskell's not popular." I think people would be encouraged to learn Haskell
if Nix was using it to great success. From what I've seen, a huge chunk of
the existing Nix community are Haskellers because they understand the
benefits of purity. I think if there is a clear benefit to a superior tool,
it should be used, though I'm not entirely convinced there are a huge
benefit to using Turtle.

On Fri, Jan 30, 2015 at 5:07 PM, Oliver Charles <ollie at ocharles.org.uk>

> Not sure if you're serious...

I'm not sure if I am either. I'm just curious what people think about the

I'd imagine that the startup overhead is now higher than bash, and the size
> of closures goes up a lot (you have to pull in the many hundreds of MB that
> GHC needs).

Given those concerns another option could be shell-monad[1][2], which
outputs shell script, so you get some of the safety benefits of Haskell
with none of the overhead. Maybe it would be a good middle ground.

[1] http://joeyh.name/blog/entry/shell_monad_day_3/
[2] http://hackage.haskell.org/package/shell-monad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150130/039e2596/attachment.html 

More information about the nix-dev mailing list