diff --git a/buildwrapper.cabal b/buildwrapper.cabal
--- a/buildwrapper.cabal
+++ b/buildwrapper.cabal
@@ -1,5 +1,5 @@
 name:           buildwrapper
-version:        0.8.8
+version:        0.8.9
 cabal-version:  >= 1.8
 build-type:     Simple
 license:        BSD3
diff --git a/src/Language/Haskell/BuildWrapper/GHC.hs b/src/Language/Haskell/BuildWrapper/GHC.hs
--- a/src/Language/Haskell/BuildWrapper/GHC.hs
+++ b/src/Language/Haskell/BuildWrapper/GHC.hs
@@ -1275,6 +1275,18 @@
 tokenType (ITqQuasiQuote {}) = "TH" -- [Qual.quoter| quote |]
 #endif
 
+-- 7.8 new token types 
+#if __GLASGOW_HASKELL__ >= 708
+tokenType ITjavascriptcallconv = "EK" --  javascript
+tokenType ITrole               = "EK" --  role
+tokenType ITpattern            = "EK" --  pattern
+tokenType ITminimal_prag       = "EK" --  minimal
+tokenType ITopenTExpQuote      = "TH" --  [||
+tokenType ITcloseTExpQuote     = "TH" --  ||]
+tokenType (ITidTyEscape {})    = "TH" --  $$x
+tokenType ITparenTyEscape      = "TH" --  $$(
+#endif
+
 -- | a dot as a FastString
 dotFS :: FastString
 dotFS = fsLit "."
