data-default icon indicating copy to clipboard operation
data-default copied to clipboard

data-default.cabal: add Changes.pod

Open thielema opened this issue 1 year ago • 4 comments

thielema avatar Oct 24 '24 17:10 thielema

On Thu, 24 Oct 2024, mauke wrote:

@mauke commented on this pull request.


In data-default.cabal:

@@ -14,6 +14,9 @@ copyright: (c) 2013 Lukas Mai author: Lukas Mai maintainer: @.***>

+extra-source-files:

  • Changes.pod

How is Changes.pod a source file?

This field means that Changes.pod is included in the release tarball and Hackage watches for certain filenames like Changes.md or ChangeLog.txt and shows those files as Changelog.

thielema avatar Oct 24 '24 17:10 thielema

It also means https://cabal.readthedocs.io/en/stable/cabal-package-description-file.html#pkg-field-extra-source-files:

Files listed here are tracked by cabal build; changes in these files cause (partial) rebuilds.

I don't want that.

mauke avatar Oct 24 '24 17:10 mauke

On Thu, 24 Oct 2024, mauke wrote:

It also means https://cabal.readthedocs.io/en/stable/cabal-package-description-file.html#pkg-field-extra-source-files:

  Files listed here are tracked by cabal build; changes in these files cause (partial) rebuilds.

I don't want that.

I have just tried it out and changed Changes.pod. It triggers documentation rebuild, but not Haskell rebuild.

thielema avatar Oct 24 '24 17:10 thielema

I get

In order, the following will be built (use -v for more details):
 - data-default-0.8.0.0 (lib) (file Changes.pod changed)

(And I don't want to rebuild documentation, either.)

mauke avatar Oct 24 '24 17:10 mauke