Skip to content

Instantly share code, notes, and snippets.



Last active Jul 27, 2020
What would you like to do?
Hasktorch with Nix
# First of all make sure Nix is up and running
# Clone Hasktorch
git clone
cd hasktorch
nix-env -iA cachix -f
cachix use hasktorch
# Option 1: Build examples
nix-build -A hasktorch-examples_cpu
# Run an example application
# Option 2, interactive with Stack
stack --nix ghci
# Option 3 (might be problematic as of 27 July 2020): Launch Jupyter Lab
nix-shell ./nix/jupyter-shell.nix --command "jupyter lab"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.