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
It should work if you change the interpreter to this:
#!/usr/bin/runhaskell