Comments (2)
Oh, my apologies, my bad. I did not notice that the testsuite does not depend on map-syntax
the library.
Of course, the new check is absolutely right about the complaint!
from cabal.
This is because build-depends
for Testsuite
does not import map-syntax
(i.e. the library). Instead adding src
to hs-source-dirs/
, alongside with test/
.
As far as cabal
is concerned, those are two separate entities.
I think it violates the semantics of bounds for testsuites: they should be inherited from the library.
There is no indication the testsuite is testing a specific library.
Adding a default inheritance in the age of multi-libraries for cabal
leads to the question: βWhat library?β.
I am inclined to say asking the user to add a build-depends: my-library
or missing that a bound is correct. Does this make sense?
How to solve this for map-syntax
?
- principled solution: add a
map-syntax-internal
library, expose everything in there; import it inTestsuite
, import and re-export what appropriate in main library. - two-lines solution: in
Testsuite
importmap-syntax
, axeData.Map.Syntax
fromother-modules
.
from cabal.
Related Issues (20)
- imported modules in cabal repl with multiple home units - very broken (?) HOT 3
- Wrong ghcversion.h file picked HOT 4
- PackageTests involving python deadlock in Windows CI HOT 1
- Generating PackageInfo_* files for dependencies to retire most usages of CPP. HOT 1
- Search does not Reveal Docs for `Paths_{pkgname}` HOT 5
- Regression in cabal-3.12.1.0: `cabal install --lib Adga` no longer works. HOT 8
- `cabal install` symlinks non-existing executables
- Cabal ignores buildinfo in top-level of directory HOT 7
- The solver should distinguish errors that are cause by the absence of a system libraries from other errors HOT 9
- Release checklist for 3.14.0.0 HOT 5
- Regression in HEAD leading to build path leaking into object files (preprocessors) HOT 6
- ghc-9.4+/Cabal-3.8+ continue to build package after source module files fail with errors HOT 2
- `cabal upload` throwing curl errors HOT 4
- `maintenance-depends` and a new `tool` selector for it HOT 5
- Changing a file imported by cabal.project does not trigger recompilation HOT 1
- Remove legacy code from code base HOT 3
- Reduce amount of CI round-tripping required by contributors HOT 3
- gen-bounds could use caret bounds and could be more concise HOT 1
- Structured hash tests are not invariant on GHC version
- Adopt cabal-add? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cabal.