diff --git a/app/Main.hs b/app/Main.hs
--- a/app/Main.hs
+++ b/app/Main.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE CPP #-}
 {-# LANGUAGE NoImplicitPrelude #-}
 {-# LANGUAGE OverloadedStrings #-}
 {-# LANGUAGE TemplateHaskell #-}
@@ -129,9 +130,12 @@
 
   -- And run brick
   let vtyBuilder = Graphics.Vty.CrossPlatform.mkVty Graphics.Vty.Config.defaultConfig
+#if MIN_VERSION_brick(3,1,0)
+  void $ B.customMain (Just vtyBuilder) (Just chan) app st
+#else
   initialVty <- vtyBuilder
-
   void $ B.customMain initialVty vtyBuilder (Just chan) app st
+#endif
 
   where
     -- | Get the local time
diff --git a/bhoogle.cabal b/bhoogle.cabal
--- a/bhoogle.cabal
+++ b/bhoogle.cabal
@@ -1,6 +1,6 @@
 cabal-version:       2.2
 name:                bhoogle
-version:             0.1.4.4
+version:             0.1.4.5
 synopsis:            Simple terminal GUI for local hoogle.
 description:         bhoogle is a terminal GUI layer over local hoogle. It provides search ahead and sub-string filtering in addition to the usual type-search.
 homepage:            https://github.com/andrevdm/bhoogle#readme
@@ -20,20 +20,20 @@
   build-depends:       base >= 4.9.1.0 && <5
                      , verset >= 0.0.1 && < 0.1
                      --protolude
-                     , brick >= 2.1 && < 2.9
+                     , brick >= 2.1 && < 3.2
                      , bytestring >= 0.12.1 && < 0.13
-                     , containers >= 0.6 && < 0.8
+                     , containers >= 0.6 && < 0.9
                      , directory >= 1.3.8 && < 1.4
                      , filepath >= 1.4 && < 1.6
                      , hoogle >= 5.0 && < 5.1
                      , lens >= 5.3.4 && < 5.4
                      , process >= 1.6.2 && < 1.7
-                     , text >= 2.1.1 && < 2.2
-                     , time >= 1.12.2 && < 1.15
+                     , text >= 2.1.2 && < 2.2
+                     , time >= 1.12.2 && < 1.17
                      , typed-process >= 0.2.12 && < 0.3
                      , vector >= 0.13.2 && < 0.14
-                     , vty >= 6.2 && < 6.5
-                     , vty-crossplatform >= 0.4.0 && < 0.5
+                     , vty >= 6.2 && < 6.8
+                     , vty-crossplatform >= 0.4.0 && < 0.6
   default-language:    Haskell2010
 
 source-repository head
