An open API service indexing awesome lists of open source software.

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

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`.