Skip to content

Commit

Permalink
Rust's printRec adds pub to phantom fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bladyjoker committed Jul 10, 2024
1 parent 401f8a9 commit 938f167
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ printRec parentTyN tyArgs (PC.Record fields _) = do
let iTyDefs = indexTyDefs ci
mn <- asks (view $ Print.ctxModule . #moduleName)
let phantomTyArgs = collectPhantomTyArgs iTyDefs mn parentTyN (recFieldTys fields) tyArgs
phantomFields = printPhantomDataField <$> phantomTyArgs
phantomFields = pub . printPhantomDataField <$> phantomTyArgs
if null fields && null phantomTyArgs
then return semi
else do
Expand Down
5 changes: 4 additions & 1 deletion settings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@

index-state = lib.mkOption {
type = lib.types.str;
description = "Hackage index state to use when making a haskell.nix build environment";
description = "Hackage index state to use when making a haskell.nix
build environment";
};

compiler-nix-name = lib.mkOption {
Expand All @@ -50,6 +51,8 @@

tools = [

pkgs.haskellPackages.fourmolu
pkgs.haskellPackages.hlint
pkgs.haskellPackages.apply-refact

pkgs.nil
Expand Down

0 comments on commit 938f167

Please sign in to comment.