#!/usr/bin/env bash

export HADDOCK_PATH=$(which haddock)
LIB_PATH="$(dirname "$BASH_SOURCE")/../haddock-test/src/"
MAIN_PATH="$(dirname "$BASH_SOURCE")/Main.hs"
if [ -z "$RUNHASKELL" ]; then RUNHASKELL=runhaskell; fi
$RUNHASKELL -i:"$LIB_PATH" $MAIN_PATH $@