How do you avoid the right indentation in Main.hs? To run project do one of the following: $ nix run $ cabal run The provided flake has a dev shell you can use with nix shell or an .envrc file if you use Direnv.