diff --git a/CHANGES.md b/CHANGES.md
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -1,7 +1,10 @@
 * Hackage: <http://hackage.haskell.org/package/crackNum>
 * GitHub:  <http://github.com/LeventErkok/crackNum/>
 
-* Latest Hackage released version: 3.4, 2023-04-14
+* Latest Hackage released version: 3.5, 2023-04-11
+
+### Version 3.5, 2024-01-11
+  * Resolve compilation issues with GHC 9.8 series
 
 ### Version 3.4, 2023-04-14
   * Fix compilation in previous build
diff --git a/crackNum.cabal b/crackNum.cabal
--- a/crackNum.cabal
+++ b/crackNum.cabal
@@ -1,6 +1,6 @@
 Cabal-version      : 2.2
 Name               : crackNum
-Version            : 3.4
+Version            : 3.5
 Synopsis           : Crack various integer and floating-point data formats
 Description        : Crack IEEE-754 float formats and arbitrary sized words and integers, showing the layout.
                      .
diff --git a/src/CrackNum/Main.hs b/src/CrackNum/Main.hs
--- a/src/CrackNum/Main.hs
+++ b/src/CrackNum/Main.hs
@@ -337,7 +337,7 @@
                         _  -> (v, Just (trim (show s)))
           where bfOpts = allowSubnormal <> rnd (toLibBFRM rm) <> expBits (fromIntegral i) <> precBits (fromIntegral j)
                 (v, s) = bfFromString 10 bfOpts inp
-                trim xs | "[" `isPrefixOf` xs && "]" `isSuffixOf` xs = init (tail xs)
+                trim xs | "[" `isPrefixOf` xs && "]" `isSuffixOf` xs = init (drop 1 xs)
                         | True                                       = xs
 
         note :: Maybe String -> IO ()
