1
1
mirror of https://github.com/sol/hpack.git synced 2024-10-04 03:38:00 +03:00
hpack: A modern format for Haskell packages
Go to file
2015-11-05 05:04:45 +08:00
driver Add --silent (close #45) 2015-08-30 09:38:05 +08:00
src/Hpack Don't list other-extensions package.yaml 2015-11-05 04:48:37 +08:00
test aeson 0.10.0 compatibility 2015-09-22 16:45:31 +08:00
.ghci aeson 0.10.0 compatibility 2015-09-22 16:45:31 +08:00
.gitignore Initial commit 2014-11-19 23:06:01 +08:00
.travis.yml Update travis config 2015-04-04 14:53:16 +08:00
hpack.cabal cabal: requiring aeson >= 0.10 for tests, see #53 2015-11-05 05:04:45 +08:00
LICENSE Add LICENSE 2014-12-24 11:59:31 +08:00
package.yaml cabal: requiring aeson >= 0.10 for tests, see #53 2015-11-05 05:04:45 +08:00
README.md Add --silent (close #45) 2015-08-30 09:38:05 +08:00
Setup.lhs Add Setup.lhs 2014-12-24 12:01:07 +08:00

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