Skip to content

Commit 2ac74c8

Browse files
authored
Also add Paths_dhall_to_cabal to autogen-modules (#78)
Hackage complains: > Packages using 'cabal-version: 2.0' 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.
1 parent 250bf51 commit 2ac74c8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

dhall-to-cabal.cabal

+2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ library
113113
DhallToCabal.Diff
114114
Dhall.Extra
115115
Paths_dhall_to_cabal
116+
autogen-modules:
117+
Paths_dhall_to_cabal
116118
default-language: Haskell2010
117119
other-extensions: ApplicativeDo GADTs GeneralizedNewtypeDeriving
118120
LambdaCase OverloadedStrings RecordWildCards TypeApplications

dhall-to-cabal.dhall

+2
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ in prelude.utils.GitHub-project
172172
, compiler-options =
173173
prelude.defaults.CompilerOptions
174174
{ GHC = [ "-Wall", "-fno-warn-name-shadowing" ] }
175+
, autogen-modules =
176+
[ "Paths_dhall_to_cabal" ]
175177
, exposed-modules =
176178
[ "DhallToCabal", "DhallLocation", "CabalToDhall" ]
177179
, hs-source-dirs =

0 commit comments

Comments
 (0)