I\'m writing some shell scripts with haskell, which I\'m running in gitbash, but there are a few other existing scripts I\'d like to be able to use from those scripts.
Yes, it is possible. You can use process
package, which exports many useful functions. Simplest one is System.Cmd.system
, which can run some application in shell, yielding exit code.
More advanced features are provided too in the System.Process
module. With this module you can run process and communicate with it in many ways (input piping, exit codes, waiting for process to stop, modify its environment etc).