diff --git a/hls-alternate-number-format-plugin.cabal b/hls-alternate-number-format-plugin.cabal
--- a/hls-alternate-number-format-plugin.cabal
+++ b/hls-alternate-number-format-plugin.cabal
@@ -1,6 +1,6 @@
 cabal-version:      2.4
 name:               hls-alternate-number-format-plugin
-version:            2.3.0.0
+version:            2.4.0.0
 synopsis:           Provide Alternate Number Formats plugin for Haskell Language Server
 description:
   Please see the README on GitHub at <https://github.com/haskell/haskell-language-server#readme>
@@ -22,7 +22,6 @@
     location: https://github.com/haskell/haskell-language-server.git
 
 library
-  buildable: True
   exposed-modules:  Ide.Plugin.AlternateNumberFormat, Ide.Plugin.Conversion
   other-modules:    Ide.Plugin.Literals
   hs-source-dirs:   src
@@ -32,10 +31,10 @@
     , base                 >=4.12 && < 5
     , containers
     , extra
-    , ghcide               == 2.3.0.0
+    , ghcide               == 2.4.0.0
     , ghc-boot-th
     , hls-graph
-    , hls-plugin-api       == 2.3.0.0
+    , hls-plugin-api       == 2.4.0.0
     , hie-compat
     , lens
     , lsp                  ^>=2.2.0.0
@@ -53,7 +52,6 @@
     RecordWildCards
 
 test-suite tests
-  buildable: True
   type:             exitcode-stdio-1.0
   default-language: Haskell2010
   hs-source-dirs:   test
@@ -64,7 +62,7 @@
     , base                 >=4.12 && < 5
     , filepath
     , hls-alternate-number-format-plugin
-    , hls-test-utils       == 2.3.0.0
+    , hls-test-utils       == 2.4.0.0
     , lsp
     , QuickCheck
     , regex-tdfa
diff --git a/src/Ide/Plugin/Literals.hs b/src/Ide/Plugin/Literals.hs
--- a/src/Ide/Plugin/Literals.hs
+++ b/src/Ide/Plugin/Literals.hs
@@ -14,6 +14,9 @@
 import           Data.Maybe                    (maybeToList)
 import           Data.Text                     (Text)
 import qualified Data.Text                     as T
+#if __GLASGOW_HASKELL__ >= 908
+import qualified Data.Text.Encoding            as T
+#endif
 import           Development.IDE.GHC.Compat    hiding (getSrcSpan)
 import           Development.IDE.Graph.Classes (NFData (rnf))
 import           Generics.SYB                  (Data, Typeable, everything,
@@ -100,5 +103,9 @@
 
 fromSourceText :: SourceText -> Maybe Text
 fromSourceText = \case
+#if __GLASGOW_HASKELL__ >= 908
+  SourceText s -> Just $ T.decodeUtf8 $ bytesFS s
+#else
   SourceText s -> Just $ T.pack s
+#endif
   NoSourceText -> Nothing
