diff --git a/Database/Groundhog/TH.hs b/Database/Groundhog/TH.hs
--- a/Database/Groundhog/TH.hs
+++ b/Database/Groundhog/TH.hs
@@ -598,8 +598,13 @@
         , replicate (Y.yamlColumn mark) ' ' ++ "^"
         ]
       _ -> fail $ show err
+#if MIN_VERSION_yaml(0, 10, 0)
+    Right (_, Left err) -> fail err
+    Right (_, Right result') -> lift (result' :: PersistDefinitions)
+#else
     Right (Left err) -> fail err
     Right (Right result') -> lift (result' :: PersistDefinitions)
+#endif
 
 defaultMkEntityDecs :: [THEntityDef] -> Q [Dec]
 defaultMkEntityDecs = fmap concat . mapM (\def -> do
diff --git a/changelog b/changelog
--- a/changelog
+++ b/changelog
@@ -1,3 +1,6 @@
+0.9.0.1
+* Fix yaml dependency
+
 0.9.0
 * Support for GHC 8.4
 
diff --git a/groundhog-th.cabal b/groundhog-th.cabal
--- a/groundhog-th.cabal
+++ b/groundhog-th.cabal
@@ -1,5 +1,5 @@
 name:            groundhog-th
-version:         0.9.0
+version:         0.9.0.1
 license:         BSD3
 license-file:    LICENSE
 author:          Boris Lykah <lykahb@gmail.com>
