#!/bin/sh

tflag="--template=/usr/lib/ghc-6.10.4/hsc2hs-0.67/template-hsc.h"
Iflag="-I/usr/lib/ghc-6.10.4/hsc2hs-0.67/../include/"
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.4/hsc2hs $tflag $HSC2HS_EXTRA ${1+"$@"} "$Iflag"
