Make sure that you configure before haddock.