Giter Club home page Giter Club logo

Comments (4)

gbaz avatar gbaz commented on June 8, 2024

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.

andrewufrank avatar andrewufrank commented on June 8, 2024

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.

gbaz avatar gbaz commented on June 8, 2024

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.

andrewufrank avatar andrewufrank commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.