#!/bin/sh

tflag="--template=/usr/lib/ghc-6.10.1/hsc2hs-0.67/template-hsc.h"
for arg do
    case "$arg" in
        -c*)          HSC2HS_EXTRA=;;
        --cc=*)       HSC2HS_EXTRA=;;
        -t*)          tflag=;;
        --template=*) tflag=;;
        --)           break;;
    esac
done

exec /usr/lib/ghc-6.10.1/hsc2hs $tflag $HSC2HS_EXTRA ${1+"$@"}
