diff --git a/evm-opcodes.cabal b/evm-opcodes.cabal
--- a/evm-opcodes.cabal
+++ b/evm-opcodes.cabal
@@ -5,7 +5,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           evm-opcodes
-version:        0.3.0
+version:        0.3.1
 synopsis:       Opcode types for Ethereum Virtual Machine (EVM)
 description:    This library provides opcode types for the Ethereum Virtual Machine.
 category:       Ethereum, Finance, Network
@@ -42,7 +42,7 @@
     , cereal ==0.5.*
     , containers >=0.6 && <0.9
     , data-dword ==0.3.*
-    , text >=1.2
+    , text >=1.2 && <2.2
   default-language: Haskell2010
 
 test-suite test
@@ -67,7 +67,7 @@
     , tasty-discover
     , tasty-hedgehog
     , tasty-hspec
-    , text >=1.2
+    , text >=1.2 && <2.2
   default-language: Haskell2010
 
 benchmark bench
@@ -85,5 +85,5 @@
     , data-dword ==0.3.*
     , evm-opcodes
     , tasty-bench
-    , text >=1.2
+    , text >=1.2 && <2.2
   default-language: Haskell2010
diff --git a/src/EVM/Opcode/Labelled.hs b/src/EVM/Opcode/Labelled.hs
--- a/src/EVM/Opcode/Labelled.hs
+++ b/src/EVM/Opcode/Labelled.hs
@@ -23,7 +23,7 @@
   ) where
 
 import Data.Function (fix)
-import Data.List (foldl', group, sort)
+import Data.List (group, sort)
 import Data.Map (Map)
 import qualified Data.Map as Map
 import Data.Maybe (mapMaybe)
