haskell / haskell/cabal

Add `runhaskell Setup.hs` command corresponding to `cabal check`?

Open
#10,825 2 comments 0 reactions 0 assignees View on GitHub
cabal-install: cmd/check Cabal: cmd/sdist type: enhancement
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

**Describe the feature request**
Is there any appetite within the Cabal project to add a `runhaskell Setup.hs` command that corresponds to `cabal check`?

It seems to me that a `runhaskell Setup.hs check` could go hand-in-hand with the existing `runhaskell Setup.hs sdist`.

**Additional context**
EDIT: I've since realised that what Stack does (the text below) is **not** a good motivation for the above. However, perhaps it has merit on its own terms, so I have not closed the issue.

The motivation is that Stack makes use of module `Distribution.PackageDescription.Check`. However, because there is no `runhaskell Setup.hs` command that corresponds to `cabal check`, Stack uses the version of the `Cabal` package that Stack is built against - which could be older than the version of the `Cabal` package that a Stack user is building with.~

(I appreciate that Stack could build another small executable to make use of the 'checking' functionality provided by Cabal (the library), but it would be nice if the `Setup` executable had 'checking' within its scope.)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.