Skip to content

Commit

Permalink
eta-reduce
Browse files Browse the repository at this point in the history
  • Loading branch information
moisesackerman-da committed Mar 27, 2024
1 parent b5d1d4c commit cdcf439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/parser/RdrHsSyn.hs
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ mkFlavoredTyData ::
-> [LConDecl GhcPs]
-> HsDeriving GhcPs
-> P (LTyClDecl GhcPs)
mkFlavoredTyData loc new_or_flavored_data cType hdr' ksig data_cons maybe_deriv =
mkTyData loc new_or_data cType hdr ksig data_cons maybe_deriv
mkFlavoredTyData loc new_or_flavored_data cType hdr' =
mkTyData loc new_or_data cType hdr
where
(new_or_data, hdr) = case new_or_flavored_data of
UnflavoredNewType -> (NewType, hdr')
Expand Down

0 comments on commit cdcf439

Please sign in to comment.