Automatic haddock generation