Skip to content
/ canica Public

Canica is a Haskell based shadertoy playground.

License

Notifications You must be signed in to change notification settings

piensa/canica

Repository files navigation

canica

Haskell project template optimized for a fully reproducible and friendly development environment. Based on Nix + Flakes + VSCode (HLS) + ormolu autoformatting + Relude as Prelude.

Getting Started

First-time setup:

To run the program with auto-recompile:

  • Press Ctrl+Shift+B in VSCode, or run bin/run (bin/run-via-tmux if you have tmux installed) in terminal, to launch Ghcid running your program.

Open Main.hs, and expect all HLS IDE features like hover-over tooltip to work out of the box. Try changing the source, and expect Ghcid to re-compile and re-run the app in the terminal below.


Renaming the project:

NAME=myproject
git mv canica.cabal ${NAME}.cabal
nix run nixpkgs#sd -- canica ${NAME} * */*
git add . && git commit -m rename
cd .. && mv canica ${NAME} && cd ${NAME}

Tips

  • Run nix flake update to nixpkgs and other flake inputs.

Alternatives

About

Canica is a Haskell based shadertoy playground.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published