dhall-to-cabal v1.1.0.0 Release Notes

Release Date: 2018-06-03 // almost 6 years ago
  • Known Problems

    ๐Ÿš€ Dhall 1.14 is slow to type-check the input to dhall-to-cabal. You may experience a drastic slow-down until Dhall 1.15 is released.

    ๐Ÿ’ฅ Breaking Changes

    • The type of DhallToCabal.license has changed to Dhall.Type (Either SPDX.License Cabal.License) to accomodate Cabal 2.2.

    Other Changes

    Increase upper-bound of base to allow 4.11.

    Increase upper-bound of tasty to allow 1.1.

    Switch to Dhall 1.14.0.

    ๐Ÿ‘€ dhall-to-cabal: Fix tracking which branches are already true or false in conditionals. Dhall expressions with lots of conditions previously produced Cabal files that did not correctly match the requested conditions. See #56, #53 and #55 for more information.

    Thank you to @jneira and @quasicomputational for helping identify and fix this bug.

    ๐Ÿ‘€ cabal-to-dhall: Rewrite conditional handling to avoid hangs with complicated ones. See #54 and linked issues.

    โž• Added a warning to generated .cabal files against hand-editing.

    ๐Ÿ–จ cabal-to-dhall now pretty prints the resulting Dhall.

    The signature of CabalToDhall.cabalToDhall has changed: it now takes the location of the prelude.dhall and types.dhall to import as a parameter.

    โฌ†๏ธ Upgrade to Cabal 2.2. This introduces SPDX license identifiers and Dhall functionality to manipulate them; see <golden-tests/dhall-to-cabal/SPDX.dhall> for a (convoluted) demonstration.

    0๏ธโƒฃ prelude.defaults.Executable has lost its main-is field, as it makes little sense to have an executable without it.

    ๐Ÿ–จ --print-type now omits the lengthy definition of Extension, instead importing it from the prelude. --self-contained is a new switch to disable this behaviour.