From 04fd3e021cfe04eaaa470be4ae8408a417821864 Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Mon, 20 Nov 2017 19:47:59 +0800 Subject: 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 --- haddock.cabal | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'haddock.cabal') diff --git a/haddock.cabal b/haddock.cabal index 283b2a42..53a077cd 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. -- cgit v1.2.3