Skip to content

Commit

Permalink
Use lamE instead of LamE to simplify and future-proof for GHC 9.10
Browse files Browse the repository at this point in the history
  • Loading branch information
josephcsible authored Mar 19, 2024
1 parent 7802acb commit bfe0e76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Data/Functor/Invariant/TH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,7 @@ foldDataConArgs iClass tvMap ft con = do
mkSimpleLam :: (Exp -> Q Exp) -> Q Exp
mkSimpleLam lam = do
n <- newName "n"
body <- lam (VarE n)
return $ LamE [VarP n] body
lamE [varP n] (lam (VarE n))

-- "Con a1 a2 a3 -> fold [x1 a1, x2 a2, x3 a3]"
--
Expand Down

0 comments on commit bfe0e76

Please sign in to comment.