HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduledhall-1.42.3Haskell2010

Dhall.Package

Create a package.dhall from files and directory contents.

  • 3 types
  • 6 values
  • Packagedhall-1.42.3
  • Exports9
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePackage.hs
datadata Options
#

Options for package creation.

Get the path and the Dhall expression for a package file.

The location of the resulting package file is determined by the first path of the second argument:

  • If it is a directory, it is also the output directory and the package file will be placed there.

  • If it is a file, then the directory that file resides in is the output directory and the package file will be placed there.

All inputs provided as the second argument must be either in the output directory or below it. They are processed depending on whether the path points to a directory or a file:

  • If the path points to a directory, all files with a .dhall extensions in that directory are included in the package.

If you passed Recurse to the this function, then in addition to these files all subdirectories are traversed and a sub-package created for each one. That sub-package will be included in the package too.

  • If the path points to a regular file, it is included in the package unless it is the path of the package file itself.