The process arguments aren't type-safe, no. But the code that uses them can be. I can also use existing Haskell libraries mixed with this (which are type-safe). For example:
tail' "-f" "foo.txt" $= withRights (intoCSV def $= CL.map (\[a,b,c] -> b <> "\n")) $= grep "--line-buffered" "^4"
This line streams lines from foo.txt, parses each one with the CSV conduit parser[1], takes the second value and then feeds that into grep which spits out only columns which match the regex ^4. Or if I wanted to match only valid email addresses, I could import Text.Email.Validate and use this conduit:
… $= CL.filter isValid $= …
Which, again, comes from a normal Haskell package[2] which validates RFC 5322 emails with a full parser. I can also just extract the domain part of valid emails:
… $= CL.mapMaybe emailAddress $= CL.map domainPart $= …
I'm operating on structured, well-typed data in between normal UNIX pipes, in a streaming manner. I think that's pretty sexy.
Finally, when I decide this script is getting more complex than a mere script, I don't have to worry about maintaining it or refactoring it. I'm already using Haskell!
There's also the personal benefit to me, my editor support for Haskell is very good. Editor support for Bash is comparatively lacking.
I don't think it's more convenient than Bash if you take a myopic view of scripts that you write.
[1]: https://hackage.haskell.org/package/csv-conduit-0.6.3/docs/D... [2]: http://hackage.haskell.org/package/email-validate-2.0.1/docs...
(FWIW I did program in Haskell and I loved it.)
Although I just saw this comic which seems somewhat germane :) http://www.catacrac.net/crac/w-16