Nothing Special   »   [go: up one dir, main page]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #429: move from cabal-doctest to cabal repl -w doctest #433

Merged
merged 7 commits into from
Dec 16, 2022

Conversation

andreasabel
Copy link
Member

Fix #429: move from cabal-doctest to cabal repl -w doctest.

  • Remove doctests suite and thus the cabal-doctest dependency and the custom setup.
  • Doctests can be run via make doctest, which will install doctest per GHC version and invoke cabal repl -w doctest.
  • The extra -Wno-type-defaults ghc option is needed for doctest to not stumble over OverloadedStrings. See:
  • The Haskell CI needs to be patched to add the doctests step, and certain RTS settings have to be removed for cabal repl -w doctest to work in this environment.

@andreasabel andreasabel added this to the 2.9.4.1 milestone Dec 16, 2022
@andreasabel andreasabel self-assigned this Dec 16, 2022
@andreasabel andreasabel added build Building BNFC CI Continuous integration labels Dec 16, 2022
Because of `cabal-version: 2.0`, stack wants an
`extra-deps: [Cabal-2.0.0.1]` in the `stack-8.0.2.yaml` file, which in
turn requires a `Setup.hs` present even for `build-type: simple`.
(Don't as me, this is stack way of seeing the world.)

I anyway doubt that anyone would want to insists on stack-installing
BNFC with GHC 8.0.
Principle: drop palaeo-GHCs as soon as they cause extra effort.
We include the commit SHA to ensure that caches always are written.

Note: The stack.yaml does not track the dependencies.
We would need stack.yaml.lock, but don't want this.
We may use the .cabal file instead to get a better approximation.
So far we didn't have any problems, so stick to the current strategy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Building BNFC CI Continuous integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get rid of custom setup and cabal-doctest dependency
1 participant