Skip to content

Commit

Permalink
Support building with template-haskell-2.22.*
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Mar 14, 2024
1 parent 0ba9530 commit 181fd83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
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).
Expand Down
4 changes: 3 additions & 1 deletion src/Language/Haskell/TH/Syntax/Compat.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 181fd83

Please sign in to comment.