BSD-3-Clause licensed
Maintained by Phil de Joux
This version can be pinned in stack with:hpack-dhall-0.5.7@sha256:1710f6b4d3d3a3f0c7c22733db6461bdb6bc442405e2b9b2638de26983601fef,10948

Module documentation for 0.5.7

Use hpack phrasing in dhall to write cabal files.

There are two main reasons why you'd use hpack-dhall, convenience and safety.

Get the convenience of hpack. Don't bother to state what can be inferred or defaulted, easing the burden of completing a package description by hand. For example `other-modules` can be inferred by taking the set difference between modules on disk and the set of `exposed-modules`.

Get the safety of dhall's programmable configuration: typed fields, safe imports and functions.

Changes

The latest version of this changelog.

0.5.7 - Bump hpack and test versions

  • Require hpack ^>= 0.35 and pin extra-deps for stack build and tests.

0.5.6 - Relax hpack version upper bound

  • Relax hpack bounds to hpack >= 0.34.7 for stackage build.

0.5.5 - Bump hpack and test versions

  • Require hpack ^>= 0.34.7.
  • Test with GHC 8.8.4, GHC 8.10.7, GHC 9.0.2 and GHC 9.2.2.

0.5.4 - Bump hpack and test versions

  • Require hpack >= 0.34.6.
  • Test with GHC 8.8.4, GHC 8.10.7 and GHC 9.0.1.

0.5.3 - Rewrite the README

  • Rewrite the README, making it shorter and splitting some details about more uses and building into separate docs.
  • Require hpack >= 0.34.4:
    $ dhall-hpack-cabal --version
    -dhall-hpack-cabal-0.5.2
    -hpack-0.34.2
    +dhall-hpack-cabal-0.5.3
    +hpack-0.34.4
    
  • Require base >= 4.13, implying GHC >= 8.8.4.
  • Test with GHC 8.8.4 and 8.10.4.
  • Add files for different stack GHC versions.
    $ stack build --stack-yaml=stack/stack-8.8.4.yaml
    $ stack build --stack-yaml=stack/stack-8.10.4.yaml
    $ stack build --stack-yaml=stack/stack-9.0.1.yaml
    
  • Remove the travis script and update github scripts with:
    - - uses: actions/setup-haskell@v1
    + - uses: haskell/actions/setup@v1
    
    - - uses: actions/cache@v1
    + - uses: actions/cache@v2
    
  • Remove stale nix-related files.

0.5.2 - Consistent Golden Tests

  • Use explicit dependencies to achieve consistent golden tests in all but stack-8.6.3.yaml.

0.5.1 - Minor, bump in hpack version

  • Regenerate golden files for the bump in hpack’s version:
---- This file has been generated from package.yaml by hpack version 0.31.0.
++-- This file has been generated from package.yaml by hpack version 0.31.1.

0.5.0 - Sorted Fields Pretty Printing

  • Sort fields when pretty printing JSON and YAML.
  • Add real world golden tests, using stack and hpack packages.

0.4.0 - Split Executables

  • Add licence and copyright.
  • Rename hpack-dhall to dhall-hpack-cabal.
  • Add dhall-hpack-* executables for showing dhall, json and yaml.