Skip to content

Commit

Permalink
Make branch support GHC 9.10.
Browse files Browse the repository at this point in the history
  • Loading branch information
j6carey committed Jan 29, 2025
1 parent 37a84b3 commit a3aa098
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion nix/overlays/haskell-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ in {
owner = "awakesecurity";
repo = "proto3-wire";
rev = "2a8e434b1b7686a26c9848cc6906c07389658a04"; # 1.4.4
sha256 = "fGPcpv1AFLbmEg9ZRiBbto3el49pHfPIIxQT6U2mebp=";
sha256 = "92dcADQg7bSD3zGPfLXzyHQndGMKRTFLPt0Pei2ZTws=";
};
in
pkgsNew.haskell.lib.doJailbreak
Expand Down
2 changes: 1 addition & 1 deletion proto3-suite.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ library
safe ==0.3.*,
split,
system-filepath,
template-haskell >=2.17 && <2.22,
template-haskell >=2.17 && <2.23,
text >= 0.2 && <2.2,
text-short >=0.1.3 && <0.2,
time,
Expand Down
14 changes: 12 additions & 2 deletions src/Proto3/Suite/DotProto/Generate/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,12 @@ closedTyFamDecl_ tyFamName famBndrs resultKind eqns =
#else
eqnBndrs
#endif
, feqn_pats = map HsValArg pats
, feqn_pats = map
(HsValArg
#if MIN_VERSION_ghc(9,10,0)
synDef
#endif
) pats
, feqn_fixity = Prefix
, feqn_rhs = rhs
}
Expand All @@ -810,7 +815,12 @@ tyFamInstDecl_ tyFamName bndrs pats rhs = noLocA $ GHC.InstD NoExtField TyFamIns
#else
bndrs
#endif
, feqn_pats = map HsValArg pats
, feqn_pats = map
(HsValArg
#if MIN_VERSION_ghc(9,10,0)
synDef
#endif
) pats
, feqn_fixity = Prefix
, feqn_rhs = rhs
}
Expand Down

0 comments on commit a3aa098

Please sign in to comment.