Changelog of @hackage/ngx-export-distribution 0.6.0.0

0.6.0.0

  • nhm-tool: add command plan to print the build plan or its derivatives. Command deps is now a synonym for command plan deps.
  • nhm-tool: generate more secure Makefile with variables surrounded by commas in shell parts.

0.5.6.0

  • nhm-tool: Cabal 3.12 generates paths with Project Unit Id for GHC 9.10 which affects the clean rule in generated Makefile.
  • nhm-tool: test if stdout is connected to an ANSI terminal when executing command init -to-stdout with color highlighting.

0.5.5.0

  • Refactor function buildSharedLib in module NgxExport.Distribution.
  • Adjust verbosity levels in nhm-tool based on levels passed in cabal or Setup.hs (-v0 → nothing, -v1 or nothing → -v, other → -vv).
  • nhm-tool: use default directory .hslibs if distDataDir was passed empty.

0.5.4.3

  • nhm-tool: fix bios shell script in generated hie.yaml for environments where /bin/sh is not a link to /bin/bash but rather the classic Bourne Shell or dash like in Ubuntu. More improvements hinted by ShellCheck.

0.5.4.2

  • nhm-tool: use cradle bios in generated hie.yaml. The bios shell script returns an error message with advice to run make env if GHC environment file (technically, a symbolic link to this file) is missing. It also loads extra source files automatically if they follow the GHC naming convention.

0.5.4.1

  • nhm-tool: add a new target make config in generated Makefile: this should make rebuilds faster, introduce variables GHC and CABAL for commands ghc and cabal.

0.5.4.0

  • nhm-tool: command init now generates file hie.yaml for using with haskell-language-server when editing the Haskell source file(s). The generated Makefile skips configuration of the GHC environment if this can be omitted, the GHC environment is not deleted on make clean.

0.5.3.2

  • nhm-tool: actually apply changes from 0.5.3.1, they were not applied due to an oversight.

0.5.3.1

  • nhm-tool: pass option --builddir="$(BUILDDIR)" to command cabal list-bin in generated Makefile. This fixes builds when package ngx-export-distribution is being built inplace and nhm-tool hasn't been explicitly installed.

0.5.3.0

  • nhm-tool: command deps now accepts option -d which expects the builddir where the build plan is located. Command init now generates Makefile which builds Cabal artifacts in directory dist-nhm. Parsing of command-line arguments was refactored.

0.5.2.2

  • nhm-tool: command init generates Makefile which searches nhm-tool via cabal list-bin ngx-export-distribution if the tool cannot be found in known directories. Generated cabal files require cabal-version 2.0 because now they use build-tool-depends: ngx-export-distribution:nhm-tool in the library stanza.

0.5.2.1

  • Fix import modules after update to Cabal 3.10.3.0.

0.5.2.0

  • Docs: suggest using precise direct dependencies at the configure step. This should fix warnings This package indirectly depends on multiple versions of the same package which used to print out very long lists of inconsistencies. Additionally, this seems to speed up builds when there are multiple versions of dependent packages in the Cabal store.
  • nhm-tool: implement the suggestion in nhm-tool init.

0.5.1.3

  • Refactored to avoid using head and tail as it triggers x-partial warnings in GHC 9.8.1.

0.5.1.2

  • Parse ldd outputs of older formats where the separator may occur between the library and the address like in linux-vdso.so.1 => (0x00007fffd33f2000).

0.5.1.1

  • Collect libffi library unconditionally.

0.5.1.0

  • Collect libffi library if it was shipped with GHC.

0.5.0.4

  • nhm-tool: use GHC option -flink-rts only in GHC 9.x.

0.5.0.3

  • nhm-tool: replace dependency on prettyprinter by ansi-terminal.

0.5.0.2

  • nhm-tool: get rid of dependency on package extra and other improvements.

0.5.0.1

  • More detailed help for nhm-tool.

0.5.0.0

  • Build executable nhm-tool to replace utilities hslibdeps and nhm-init.

0.4.1.0

  • Test GHC version to figure out whether to use option -flink-rts in run-time.
  • Note on where to get hslibdeps when build fails due to its unavailability.

0.4.0.0

  • Get verbosity level for all program invocations from configuration and build flags.

0.3.2.4

  • Improved docs.

0.3.2.3

  • Fixed docs on using cabal-plan.

0.3.2.0

  • Added docs on building with dependencies installed by cabal v2-build.

0.3.1.0

  • Use option -flink-rts only with GHC supporting this (GHC 8.10.6 and newer).
  • Archive artifacts using the new option -a of hslibdeps.
  • Added docs on how to use options of hslibdeps directly.

0.3.0.0

  • GHC option -flink-rts was added to the list of default GHC options.
  • Add GHC options $pkg.hs -o $pkg.so when building without option -o specified.
  • More robust naming of paths to build artifacts.

0.2.0.0

  • More robust processing of build and configuration flags.
  • Export several internal functions from the module.

0.1.1.0

  • Support only Cabal versions >= 3.0.0.0.

0.1.0.0

  • Initial version.