-
Notifications
You must be signed in to change notification settings - Fork 722
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.)