#!/bin/bash # Let ghci see only the source so it loads the modules debuggably. mkdir -p debugdir (cd debugdir && ln -fs ../*.hs .) exec ghci -i -idebugdir Test