From d029bee564cc349ff4ca498c5a05f9dce5b204cd Mon Sep 17 00:00:00 2001 From: Jonathan Lamothe Date: Tue, 26 Oct 2021 11:55:12 -0400 Subject: [PATCH] cabal fix This removes the Paths_gemserv package from other-modules. Finding a way to add it to autogen-modules would be preferable. --- gemserv.cabal | 3 --- package.yaml | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gemserv.cabal b/gemserv.cabal index a3cdd8e..107f712 100644 --- a/gemserv.cabal +++ b/gemserv.cabal @@ -29,8 +29,6 @@ library exposed-modules: Network.GemServ Network.GemServ.Types - other-modules: - Paths_gemserv hs-source-dirs: src ghc-options: -Wall @@ -48,7 +46,6 @@ test-suite gemserv-test main-is: Spec.hs other-modules: Network.GemServSpec - Paths_gemserv hs-source-dirs: test ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N diff --git a/package.yaml b/package.yaml index cb543f8..e494a4c 100644 --- a/package.yaml +++ b/package.yaml @@ -32,6 +32,9 @@ dependencies: library: source-dirs: src + when: &nopaths + - condition: false + other-modules: Paths_gemserv tests: gemserv-test: @@ -44,3 +47,5 @@ tests: dependencies: - gemserv - hspec >= 2.7.10 && < 2.8 + when: + - <<: *nopaths \ No newline at end of file