Alex Rivera | Logout

Can Haskell be used to write shell scripts?

Asked 2012-01-19T12:09:39.950
25

Is it possible to write shell scripts in Haskell and if so, how do you do it? Just changing the interpreter like so?

#!/bin/ghci
Edit
Report

1 Answer

11

It should work if you change the interpreter to this:

#!/usr/bin/runhaskell
answered 2012-01-19T12:13:12.323

Your Answer