diff --git a/haskell-gi.cabal b/haskell-gi.cabal
--- a/haskell-gi.cabal
+++ b/haskell-gi.cabal
@@ -1,5 +1,5 @@
 name:                haskell-gi
-version:             0.26.1
+version:             0.26.2
 synopsis:            Generate Haskell bindings for GObject Introspection capable libraries
 description:         Generate Haskell bindings for GObject Introspection capable libraries. This includes most notably
                      Gtk+, but many other libraries in the GObject ecosystem provide introspection data too.
diff --git a/lib/Data/GI/CodeGen/ProjectInfo.hs b/lib/Data/GI/CodeGen/ProjectInfo.hs
--- a/lib/Data/GI/CodeGen/ProjectInfo.hs
+++ b/lib/Data/GI/CodeGen/ProjectInfo.hs
@@ -39,7 +39,8 @@
                      "OverloadedStrings", "NegativeLiterals", "ConstraintKinds",
                      "TypeFamilies", "MultiParamTypeClasses", "KindSignatures",
                      "FlexibleInstances", "UndecidableInstances", "DataKinds",
-                     "FlexibleContexts", "UndecidableSuperClasses"]
+                     "FlexibleContexts", "UndecidableSuperClasses",
+                     "TypeOperators"]
 
 -- | Extensions that will be used in some modules, but we do not wish
 -- to turn on by default.
@@ -62,7 +63,7 @@
 standardDeps :: [Text]
 standardDeps = ["bytestring >= 0.10 && < 1",
                 "containers >= 0.5 && < 1",
-                "text >= 1.0 && < 2",
+                "text >= 1.0 && < 3",
                 "transformers >= 0.4 && < 1"]
 
 -- | Under which category in hackage should the generated bindings be listed.
diff --git a/lib/Data/GI/GIR/Repository.hs b/lib/Data/GI/GIR/Repository.hs
--- a/lib/Data/GI/GIR/Repository.hs
+++ b/lib/Data/GI/GIR/Repository.hs
@@ -49,8 +49,13 @@
                             then reverse acc : go ys []
                             else go ys (y : acc)
 
+-- | Return the paths where to look for gir files.
 girDataDirs :: IO [FilePath]
-girDataDirs = getSystemDataDirs "gir-1.0"
+girDataDirs = do
+  sys <- getSystemDataDirs "gir-1.0"
+  -- See https://github.com/haskell-gi/haskell-gi/issues/390
+  let macOS = ["/opt/homebrew/share/gir-1.0"]
+  return (sys ++ macOS)
 
 -- | Construct the GIR search path, possibly looking into the
 -- @HASKELL_GI_GIR_SEARCH_PATH@ environment variable if no explicit
