diff --git a/tmp-proc-rabbitmq.cabal b/tmp-proc-rabbitmq.cabal
--- a/tmp-proc-rabbitmq.cabal
+++ b/tmp-proc-rabbitmq.cabal
@@ -1,6 +1,6 @@
 cabal-version:      3.0
 name:               tmp-proc-rabbitmq
-version:            0.5.1.0
+version:            0.5.1.1
 synopsis:           Shows how to run RabbitMQ as a tmp proc
 description:
   An example of using tmp-proc to launch dockerized RabbitMQ in integration tests.
@@ -30,7 +30,7 @@
     , amqp        ^>=0.22
     , base        >=4.11     && <5
     , bytestring  >=0.10.8.2 && <0.12
-    , text        ^>=2.0
+    , text        >=1.2.3 && <2.2
     , tmp-proc    >=0.5.1.0  && <0.6.0.0
 
   default-language: Haskell2010
