From 97fe12932b0eeff35ff9f48778db0d661f4e8a17 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 25 Jun 2018 17:00:38 -0400 Subject: [PATCH 1/2] Add `build-tool-depends` for `hspec-discovery` Otherwise there is no metadata that this executable is needed, and `cabal new-build` (and maybe soon nix) will fail. --- package.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package.yaml b/package.yaml index e423f51..15ad8c9 100644 --- a/package.yaml +++ b/package.yaml @@ -20,3 +20,6 @@ tests: dependencies: - hspec - with-location + verbatim: | + build-tool-depends: + hspec-discovery:hspec-discovery From d20bba53be542c5af4acf5bf316c5b2cedb2f08a Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 25 Jun 2018 17:08:34 -0400 Subject: [PATCH 2/2] Regenerate Cabal file --- with-location.cabal | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/with-location.cabal b/with-location.cabal index 887a76e..b2f37c7 100644 --- a/with-location.cabal +++ b/with-location.cabal @@ -1,6 +1,8 @@ --- This file has been generated from package.yaml by hpack version 0.11.0. +-- This file has been generated from package.yaml by hpack version 0.28.2. -- -- see: https://github.com/sol/hpack +-- +-- hash: 7c8d7528532beaef71447d60e0278eb539b57567514e507d06833d8dee3a612b name: with-location version: 0.1.0 @@ -23,9 +25,11 @@ library src ghc-options: -Wall build-depends: - base == 4.* + base ==4.* exposed-modules: Data.WithLocation + other-modules: + Paths_with_location default-language: Haskell2010 test-suite spec @@ -35,9 +39,12 @@ test-suite spec test ghc-options: -Wall build-depends: - base == 4.* + base ==4.* , hspec , with-location other-modules: Data.WithLocationSpec + Paths_with_location default-language: Haskell2010 + build-tool-depends: + hspec-discovery:hspec-discovery