diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,9 @@
 # Changelog for libyaml-streamly
 
+## 0.2.2
+
+* pin streamly to < 0.9.0
+
 ## 0.2.1
 
 * Add benchmarks and NFData instances
diff --git a/libyaml-streamly.cabal b/libyaml-streamly.cabal
--- a/libyaml-streamly.cabal
+++ b/libyaml-streamly.cabal
@@ -1,6 +1,6 @@
-cabal-version:      1.12
+cabal-version:      2.2
 name:               libyaml-streamly
-version:            0.2.1
+version:            0.2.2
 synopsis:           Low-level, streaming YAML interface via streamly.
 description:        Rewrite of libyaml in streamly
 category:           Text
@@ -11,7 +11,7 @@
   Michael Snoyman <michael@snoyman.com>, Anton Ageev <antage@gmail.com>,Kirill Simonov, Julian Ospald <hasufell@posteo.de>
 
 maintainer:         Julian Ospald <hasufell@posteo.de>
-license:            BSD3
+license:            BSD-3-Clause
 license-file:       LICENSE
 build-type:         Simple
 extra-source-files:
@@ -41,6 +41,7 @@
 library
   exposed-modules:  Text.Libyaml
   other-modules:    Paths_libyaml_streamly
+  autogen-modules:  Paths_libyaml_streamly
   hs-source-dirs:   src
   ghc-options:
     -Wall -fspecialise-aggressively -fexpose-all-unfoldings
@@ -53,7 +54,7 @@
     , bytestring       >=0.9.1.4
     , deepseq
     , safe-exceptions
-    , streamly         >=0.8.0
+    , streamly         ^>=0.8.0
 
   if flag(no-unicode)
     cpp-options: -D__NO_UNICODE__
