diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,9 @@
 # ChangeLog for yaml-streamly
 
+## 0.12.2
+
+* fix build with aeson >= 2.1.2.0
+
 ## 0.12.1
 
 * fix build with streamly-0.8.1
diff --git a/src/Data/Yaml/Internal.hs b/src/Data/Yaml/Internal.hs
--- a/src/Data/Yaml/Internal.hs
+++ b/src/Data/Yaml/Internal.hs
@@ -44,7 +44,7 @@
 import Control.Applicative ((<|>))
 import Control.Monad.State.Strict
 import Control.Monad.Reader
-import Data.Aeson
+import Data.Aeson hiding (AesonException)
 #if MIN_VERSION_aeson(2,0,0)
 import qualified Data.Aeson.Key as K
 import qualified Data.Aeson.KeyMap as M
diff --git a/yaml-streamly.cabal b/yaml-streamly.cabal
--- a/yaml-streamly.cabal
+++ b/yaml-streamly.cabal
@@ -1,6 +1,6 @@
 cabal-version:      1.12
 name:               yaml-streamly
-version:            0.12.1
+version:            0.12.2
 synopsis:           Support for parsing and rendering YAML documents.
 description:        Rewrite of yaml in streamly
 category:           Data
@@ -72,7 +72,7 @@
     , deepseq
     , directory
     , filepath
-    , libyaml-streamly      >=0.2
+    , libyaml-streamly      >=0.2.1
     , mtl
     , safe-exceptions
     , scientific            >=0.3
@@ -176,7 +176,7 @@
     , directory
     , hspec                 >=1.3
     , HUnit
-    , libyaml-streamly      >=0.2
+    , libyaml-streamly      >=0.2.1
     , mockery
     , raw-strings-qq
     , scientific            >=0.3
