[commit: haddock] ghc-head, wip/T14529, wip/revert-ttg-2017-11-20, wip/ttg6-unrevert-2017-11-22: Add autogen-modules (#706) (04fd3e0)

git at git.haskell.org git at git.haskell.org
Tue Nov 28 11:56:42 UTC 2017


Repository : ssh://git@git.haskell.org/haddock

On branches: ghc-head,wip/T14529,wip/revert-ttg-2017-11-20,wip/ttg6-unrevert-2017-11-22
Link       : http://git.haskell.org/haddock.git/commitdiff/04fd3e021cfe04eaaa470be4ae8408a417821864

>---------------------------------------------------------------

commit 04fd3e021cfe04eaaa470be4ae8408a417821864
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date:   Mon Nov 20 19:47:59 2017 +0800

    Add autogen-modules (#706)
    
    > Packages using 'cabal-version: >= 1.25' and the autogenerated module Paths_* must include it also on the 'autogen-modules' field besides 'exposed-modules' and 'other-modules'. This specifies that the module does not come with the package and is generated on setup. Modules built with a custom Setup.hs script also go here to ensure that commands like sdist don't fail.
    # Conflicts:
    #	haddock.cabal


>---------------------------------------------------------------

04fd3e021cfe04eaaa470be4ae8408a417821864
 haddock.cabal | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/haddock.cabal b/haddock.cabal
index 283b2a4..53a077c 100644
--- a/haddock.cabal
+++ b/haddock.cabal
@@ -146,6 +146,10 @@ executable haddock
       Haddock.Convert
       
       Paths_haddock
+
+    autogen-modules:
+      Paths_haddock
+
   else
     -- in order for haddock's advertised version number to have proper meaning,
     -- we pin down to a single haddock-api version.



More information about the ghc-commits mailing list