1.2.0.0
Breaking API Changes
-
Remove orphan
Dhall.Core.Inject
instances for[Char]
andCompilerFlavor
. -
CabalToDhall.cabalToDhall
is now a pure function that accepts aGenericPackageDescription
. A new convenience function has been added toCabalToDhall
,parseGenericPackageDescriptionThrows
.
Functional Changes
-
os
conditions where the operating system's name was not recognised (e.g.,os(multics)
) were crashing cabal-to-dhall. They now work as expected. -
dhall-to-cabal
andcabal-to-dhall
now respond to--version
. -
The
dhall
subdirectory has been reorganised so that things that are not types are not in thetypes
subdirectory. Specifically,dhall/types/Version/v.dhall
, all ofdhall/types/VersionRange/*.dhall
and the operations (i.e., the enumerationsLicenseId.dhall
andLicenseExceptionId.dhall
) fromdhall/types/SPDX/*.dhall
have been moved to, respectively,dhall/Version/v.dhall
,dhall/VersionRange/*.dhall
, anddhall/SPDX/*.dhall
. In addition, the files have been renamed as appropriate to reflect the name that they are exported from the prelude as; in practice, this means that they have gone from TitleCase to camelCase.Code that only imports
prelude.dhall
andtypes.dhall
is unaffected by this change. -
prelude.defaults.Package.license
is nowAllRightsReserved
. -
dhall-to-cabal
now mapsAllRightsReserved
toSPDX.NONE
whencabal-version
is at least 2.2. -
cabal-to-dhall
will now generate more compact.dhall
files by using defaults. -
The default
build-type
is now omission, to use Cabal 2.2's inference, and the defaultcabal-version
has been bumped to 2.2. -
Export
prelude.types.Scopes
.
Other Changes
- Bump upper-bounds for
base
,containers
andcontravariant
. This project can build on GHC 8.6 (though will need--allow-newer
forCabal
until this is official released).