Skip to content

Commit

Permalink
Support template-haskell-2.21.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact authored Oct 8, 2023
1 parent ade2c85 commit 81ab6e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Polysemy/Internal/TH/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ missingEffArgs name = fail $ show
)
where
base = capturableBase name
#if MIN_VERSION_template_haskell(2,17,0)
#if MIN_VERSION_template_haskell(2,21,0)
args = flip PlainTV BndrInvis . mkName <$> ["m", "a"]
#elif MIN_VERSION_template_haskell(2,17,0)
args = flip PlainTV () . mkName <$> ["m", "a"]
#else
args = PlainTV . mkName <$> ["m", "a"]
Expand Down

0 comments on commit 81ab6e5

Please sign in to comment.