Navigation Menu

Skip to content

mgsloan/hpack

 
 

Repository files navigation

hpack: An alternative format for Haskell packages

Examples

Documentation

Documentation is mostly missing so far, sorry for that!

File globbing

At place where you can specify a list of files you can also use glob patterns. Glob patters and ordinary file names can be freely mixed, e.g.:

extra-source-files:
  - static/*.js
  - static/site.css

Glob patterns are expanded according to the following rules:

  • ? and * are expanded according to POSIX (they match arbitrary characters, except for directory separators)
  • ** is expanded in a zsh-like fashion (matching across directory separators)
  • ?, * and ** do not match a . at the beginning of a file/directory

Vim integration

To run hpack automatically on modifications to package.yaml add the following to your ~/.vimrc:

autocmd BufWritePost package.yaml silent !hpack --silent

About

hpack: An alternative format for Haskell packages

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Haskell 99.3%
  • Shell 0.7%