https://github.com/pjones/hsutils
Helpful Utilities for Haskell Programming
https://github.com/pjones/hsutils
Last synced: 8 months ago
JSON representation
Helpful Utilities for Haskell Programming
- Host: GitHub
- URL: https://github.com/pjones/hsutils
- Owner: pjones
- License: bsd-2-clause
- Created: 2015-07-02T18:00:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-08T19:35:51.000Z (about 10 years ago)
- Last Synced: 2024-12-26T22:19:01.684Z (about 1 year ago)
- Language: Shell
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Helpful Utilities for Haskell Programming
## Utilities
* `hsbuild`: Runs `cabal` to build a project inside a sandbox
## NixOS/Nixpkgs
### Utilities
* `nix-hs-derivation`: Uses `cabal2nix` to generate a `default.nix` file
* `nix-hs-shell`: Starts a shell with Haskell tools installed after
using `nix-hs-derivation` to create a `default.nix` file
* `nix-hs-build`: Uses `nix-hs-shell` and `hsbuild` to build a
Haskell project
* `nix-hs-multi-build`: Uses `nix-hs-shell` and `hsbuild` to build a
Haskell project once for each defined compiler version
### Options
The `nix-hs-shell` and `nix-hs-build` utilities can be given an
argument to select the appropriate version of GHC. For example:
nix-hs-build --argstr compiler ghc784
Additionally, profiling can be enabled by using `--argstr`:
nix-hs-build --argstr profiling true
### Nix Expressions
* `haskell-cabal.nix`: Allows setting the compiler version and
injecting extra packages into a Haskell build. Used by
`nix-hs-shell` and `nix-hs-build`.