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.
- Fork this repo and clone it locally.
- Launch a Nix shell with (optionally) CUDA,
hls
, and VS Code,nix develop"
- Install the Haskell Language Server plugin and set the
HIE Variant
toghcide
.
Happy Hasktorch hacking!