Write your tools and build scripts in Elm.
The Elm Architecture is nice when you are writing event driven applications and long running processes. However, I find it a bit cumbersome when you just want to do some simple scripts and tools.
This project lets you write monadic IO programs, similar to Haskell. If you don't know what that means, don't worry about it. Try it out or have look at the examples instead.
This is still under development
The workflow idea:
npm install -g albertdahlin/elm-posix (not published to npm yet)elm-cli src/YourProgram.elmA proof of concept is implemented and testable (on Linux). There are still some things pending before publishing v1.0.
Requires node and elm to be installed on your system.
cd example
../shell/elm-cli src/HelloUser.elmIO effects to implement:
Cmd, for example HttpCLI:
elm-cli build <src> <target> - Produce an executable node js shell script.
elm-cli run <src> <args> - Evaluate the src file.