#!/bin/bash # assumes that the "docs" directory exists. find . | egrep "\.hs$" | egrep -v "_darcs|Testing|#|Templates|Main" | xargs haddock -o docs -h