Skip to content
/ postmap Public
generated from vst/haskell-template-hebele

PostgreSQL Database Introspection, Mapping and Code Generation Tool

License

Notifications You must be signed in to change notification settings

vst/postmap

Repository files navigation

Haskell Project Template

This is an opinionated template for creating Haskell projects. It uses Nix, hpack and cabal.

TODO Provide minimum viable documentation.

Quickstart

Create your repository from this template, clone it on your computer and enter its directory.

Then, run following to configure your project:

bash ./run-template.sh

It will prompt some questions and configure your project according to your answers.

Once it is configured, provision direnv:

direnv allow

And run the big, long build command as given in the next section.

Finally, you can remove the run-template.sh script:

rm run-template.sh

Development

Big, long build command for the impatient:

hpack &&
    direnv reload &&
    fourmolu -i app/ src/ test/ &&
    prettier --write . &&
    find . -iname "*.nix" -not -path "*/nix/sources.nix" -print0 | xargs --null nixpkgs-fmt &&
    hlint app/ src/ test/ &&
    cabal build -O0 &&
    cabal run -O0 haskell-template-hebele -- --version &&
    cabal v1-test &&
    cabal haddock -O0

About

PostgreSQL Database Introspection, Mapping and Code Generation Tool

Resources

License

Stars

Watchers

Forks

Packages

No packages published