You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It turns out that it's easy to generate invalid .cabal files for cabal-version: 2.2, because non-SPDX licenses aren't at all supported, and pre-2.2 spec versions will fail with SPDX. So, if we want to follow the dictum of 'make illegal states unrepresentable', we should change the Package type to be a union of pre-2.2 and post-2.2 records, or do something similar.
There are some other cases where we'd want to do this (e.g., no autogen-modules before whichever version that was introduced in), as well.
The text was updated successfully, but these errors were encountered:
An alternative to let Package = < Package2_0 : { ... } | Package2_2 : { ... } | ... > would be to keep Package as it is (a direct translation of PackageDescription) and then implement Package2_0 -> Package and Package2_2 -> Package functions in Dhall, and recommend that this is what users do. That has the advantage that I can try it out today and see if it's horrible or not.
From #98:
There are some other cases where we'd want to do this (e.g., no
autogen-modules
before whichever version that was introduced in), as well.The text was updated successfully, but these errors were encountered: