Skip to content

1.2.0.0

Compare
Choose a tag to compare
@ocharles ocharles released this 05 Jul 10:47
· 60 commits to master since this release
4ccf7db

Breaking API Changes

  • Remove orphan Dhall.Core.Inject instances for [Char] and CompilerFlavor.

  • CabalToDhall.cabalToDhall is now a pure function that accepts a GenericPackageDescription. A new convenience function has been added to CabalToDhall, 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 and cabal-to-dhall now respond to --version.

  • The dhall subdirectory has been reorganised so that things that are not types are not in the types subdirectory. Specifically, dhall/types/Version/v.dhall, all of dhall/types/VersionRange/*.dhall and the operations (i.e., the enumerations LicenseId.dhall and LicenseExceptionId.dhall) from dhall/types/SPDX/*.dhall have been moved to, respectively, dhall/Version/v.dhall, dhall/VersionRange/*.dhall, and dhall/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 and types.dhall is unaffected by this change.

  • prelude.defaults.Package.license is now AllRightsReserved.

  • dhall-to-cabal now maps AllRightsReserved to SPDX.NONE when cabal-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 default cabal-version has been bumped to 2.2.

  • Export prelude.types.Scopes.

Other Changes

  • Bump upper-bounds for base, containers and contravariant. This project can build on GHC 8.6 (though will need --allow-newer for Cabal until this is official released).