Comments (4)
I believe it is the case that tests: True
is indeed what goes in a project file, and it is set on the command line by running cabal configure --enable-tests
or --disable-tests
.
I.e. I believe the error message and the docs are both correct, and if you have not tried them, I would recommend you do.
from cabal.
I do not understand my error messages when I try. What is wrong?
my project file starts with:
packages:
./*.cabal
tests: True
and when I run:
frank@lajatico:~/Workspace11/u4blog/uniform-pandoc$ cabal build
Error: cabal: Error parsing project file
/home/frank/Workspace11/u4blog/uniform-pandoc/cabal.project:3:
Parse of field 'tests' failed (<viewAsFieldDescr>True
...
frank@lajatico:~/Workspace11/u4blog/uniform-pandoc$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 9.4.5
frank@lajatico:~/Workspace11/u4blog/uniform-pandoc$ cabal --version
cabal-install version 3.10.1.0
compiled using version 3.10.1.0 of the Cabal library
from cabal.
I just tested with that precise project file and it works (same version of cabal-install), so I'm not sue what to tell you.
from cabal.
Please close. The problem was the place I inserted the tests: True
statement. it was in the middle of the packages
stanza. I had after the ./*.cabal
a list of other files needed. If the tests: True
is at end (or before packages
) it works. My bad. Thank you for help.
from cabal.
Related Issues (20)
- Support tar-0.6 HOT 21
- Packages sometimes (?) want to declare constraints on indirect dependencies HOT 2
- Could we shorten the solver rejections message? HOT 5
- Show the import path when reporting solver rejections from project constraints?
- Allow running setup hooks with multithreading disabled HOT 4
- Can we delete the coverage project?
- Install instructions seem to be outdated HOT 2
- Getting Started section of User Manual is inaccurate HOT 4
- [RFC] `default-package-bounds`
- Running the test-suite terminates abruptly with `fd:5: hGetLine: end of file` in MSYS2 Windows
- Why does `cabal update --help` display so many arguments? HOT 4
- Generate haddock for multiple (sub)libraries at once
- Profile with -fno-prof-count-entries HOT 11
- [UX] Current mechanism to install several libraries and expose them to the user? HOT 4
- `install --lib` can create inconsistent environments when dependencies are involved HOT 2
- ghc-prof-options changes not triggering rebuild
- Cabal (the library) `haddock` command does not support sublibraries
- Error: The process cannot access the file because it is being used by another process HOT 1
- cabal-3.8 update creates dist-newstyle/ HOT 1
- The ghc-options are not passed to the linker HOT 1
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.