#!/usr/bin/env bash if [ "$1" == "--interactive" ]; then pwd for arg in "$@"; do echo -ne "$arg\x00" done echo -ne "\n" else ghc "$@" fi