include haddock docs script + ref