Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support building with template-haskell-2.22.* #19

Merged
merged 2 commits into from
Mar 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Support building with template-haskell-2.22.*
Fixes #18.
  • Loading branch information
RyanGlScott committed Mar 19, 2024
commit ec7e7cf74ae7d0bee3ac7984bc179c6f085cd080
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
### next [????.??.??]
* Support building with `template-haskell-2.22.*` (GHC 9.10).

### 0.1.4 [2022.07.23]
* Backport the `getPackageRoot` and `makeRelativeToProject` functions
introduced in `template-haskell-2.19.0.0` (GHC 9.4).
4 changes: 3 additions & 1 deletion src/Language/Haskell/TH/Syntax/Compat.hs
Original file line number Diff line number Diff line change
@@ -756,7 +756,9 @@ joinCode = flip bindCode id
-- differ between @template-haskell@ versions as well.
--
-- Levity-polymorphic since /template-haskell-2.16.0.0/.
# if MIN_VERSION_template_haskell(2,17,0)
# if MIN_VERSION_template_haskell(2,22,0)
type Splice = Code :: ((* -> *) -> forall r. TYPE r -> *)
# elif MIN_VERSION_template_haskell(2,17,0)
type Splice = Code :: (forall r. (* -> *) -> TYPE r -> *)
# elif MIN_VERSION_template_haskell(2,16,0)
type Splice m (a :: TYPE r) = m (Syntax.TExp a)