News for hackers. Stuff that matters.
Re:Generating shell scripts from haskell using a shell monad by jweese on Wednesday December 24, 2014 @08:38PM (#8795140)
Sadly, this monad can't stop you from doing dangerous stuff in the first place, like iterating over the output of ls:

http://mywiki.wooledge.org/ParsingLs

Re:Generating shell scripts from haskell using a shell monad by tobias2014 on Wednesday December 24, 2014 @08:49PM (#8795160)
Interesting, why not try to build this based on Shelly? (http://hackage.haskell.org/package/shelly)
Re:Generating shell scripts from haskell using a shell monad by joeyh on Wednesday December 24, 2014 @10:06PM (#8795275)
I wrote this with shelly open in another window; it's intentionally got some similarities. It might be possible to extend shelly's Sh monad so it can generate shell code, rather than its current behavior of running IO actions, but that seems like a stretch to me.