Skip to content

Incorporate the specifiedPlainTV compatibility fix for TH 2.17 (#12) #13

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 2 additions & 1 deletion sdl2-gfx.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ library
lifted-base >= 0.2,
monad-control >= 1.0,
sdl2 >= 2.0,
template-haskell,
template-haskell >=2.8 && <3,
template-haskell-compat-v0208 >=0.1.4 && <2,
text,
vector >= 0.10.9.0

Expand Down
3 changes: 2 additions & 1 deletion src/SDL/Raw/Helper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ module SDL.Raw.Helper (liftF) where
import Control.Monad (replicateM)
import Control.Monad.IO.Class (MonadIO, liftIO)
import Language.Haskell.TH
import qualified TemplateHaskell.Compat.V0208 as Compat

-- | Given a name @fname@, a name of a C function @cname@ and the desired
-- Haskell type @ftype@, this function generates:
Expand Down Expand Up @@ -81,7 +82,7 @@ liftType = \case
m <- newName "m"
return $
ForallT
[PlainTV m]
[Compat.specifiedPlainTV m]
[AppT (ConT ''MonadIO) $ VarT m]
(AppT (VarT m) t)
t -> return t
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
resolver: lts-7.18
resolver: lts-21.25
system-ghc: true