Data constructor of VersionIntervals not exported

Hi, I'm trying to update my tool cabal-bounds[1] to the newest version of the Cabal library. My tool needs to convert a [VersionInterval] into a VersionRange, which currently doesn't seem to be possible, because the data constructor of VersionIntervals isn't exported from Distribution.Types.VersionInterval. Best regards, Daniel Trstenjak [1] https://github.com/dan-t/cabal-bounds

Hey Daniel!
Thanks for your interest to Cabal!
I don't see a reason to not add the import. If you submit a PR, that
probably could appear in Cabal 3.12.
A meta comment: questions like this may be better served at Cabal's bug
tracker on GitHub.
--
Kind regards,
Artem
On Sun, May 14, 2023, 12:52 PM Daniel Trstenjak
Hi,
I'm trying to update my tool cabal-bounds[1] to the newest version of the Cabal library.
My tool needs to convert a [VersionInterval] into a VersionRange, which currently doesn't seem to be possible, because the data constructor of VersionIntervals isn't exported from Distribution.Types.VersionInterval.
Best regards, Daniel Trstenjak
[1] https://github.com/dan-t/cabal-bounds _______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel

Isn't that `fromVersionIntervals . mkVersionIntervals`?
On Sun, May 14, 2023 at 9:52 AM Daniel Trstenjak
Hi,
I'm trying to update my tool cabal-bounds[1] to the newest version of the Cabal library.
My tool needs to convert a [VersionInterval] into a VersionRange, which currently doesn't seem to be possible, because the data constructor of VersionIntervals isn't exported from Distribution.Types.VersionInterval.
Best regards, Daniel Trstenjak
[1] https://github.com/dan-t/cabal-bounds _______________________________________________ cabal-devel mailing list cabal-devel@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/cabal-devel

Hi David,
Isn't that `fromVersionIntervals . mkVersionIntervals`?
'mkVersionIntervals' is now only present in the module 'Distribution.Types.VersionInterval.Legacy'. But 'Distribution.Types.VersionInterval.Legacy' and 'Distribution.Types.VersionInterval' also contain incompatible type definitions of 'VersionInterval' and 'VersionIntervals'. Greetings, Daniel
participants (3)
-
Artem Pelenitsyn
-
Daniel Trstenjak
-
David Fox