Skip to content

Nix Skeleton Hasktorch project made for easy cloning and forking

License

Notifications You must be signed in to change notification settings

hasktorch/hasktorch-skeleton

Repository files navigation

Hasktorch Skeleton

Similar to the Cardano Skeleton, this repository serves as an example of how a downstream user of both Nix and Hasktorch can set up a development environment.

The Nix shell installs GHC with Hasktorch. When there is a Hasktorch cache in nixpkgs, building Hasktorch will be skipped. Additionally, you can speed up builds by using Cachix.

Steps to Happy Hasktorch Coding

  1. Fork this repo and clone it locally.
  2. Enable the Hasktorch binary cache using Cachix:
    cachix use hasktorch
    This works on both Linux and macOS, reducing build times significantly.
  3. Launch a Nix shell, which includes GHC with Hasktorch and Haskell Language Server (hls):
    nix develop
  4. Install the Haskell Language Server plugin and direnv.

Using IHaskell Notebook

To use ihaskell-notebook, uncomment ihaskell in the `flake.nix and restart the development shell:

nix develop

Then, launch Jupyter Notebook:

ihaskell-notebook

This allows you to use Haskell interactively in a Jupyter environment.

Happy Hasktorch hacking!

About

Nix Skeleton Hasktorch project made for easy cloning and forking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published