Skip to content

Commit

Permalink
chore: Improve cabal.project parser error message
Browse files Browse the repository at this point in the history
It also links to #307
  • Loading branch information
srid committed Apr 22, 2024
1 parent a853283 commit e22a3cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nix/modules/project/defaults.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,14 @@ in
haskell-parsers = import ../../haskell-parsers {
inherit pkgs lib;
throwError = msg: config.log.throwError ''
A default value for `packages` cannot be auto-determined:
${msg}
Please specify the `packages` option manually or change your project configuration (cabal.project).
haskell-flake's `cabal.project` parser is limited; see #307.
Please specify the `packages` option manually or modify your
cabal.project file for acceptance by haskell-flake.
'';
};
localPackages = lib.pipe config.projectRoot [
Expand Down

0 comments on commit e22a3cd

Please sign in to comment.