diff --git a/squeal-postgresql-ltree.cabal b/squeal-postgresql-ltree.cabal
--- a/squeal-postgresql-ltree.cabal
+++ b/squeal-postgresql-ltree.cabal
@@ -1,17 +1,17 @@
+cabal-version: 2.2
 name: squeal-postgresql-ltree
-version: 0.1.0.0
+version: 0.1.0.1
 synopsis: LTree extension for Squeal
 description: LTree extension for Squeal
 homepage: https://github.com/morphismtech/squeal/ltree
 bug-reports: https://github.com/morphismtech/squeal/issues
-license: BSD3
+license: BSD-3-Clause
 license-file: LICENSE
 author: Eitan Chatav
 maintainer: eitan.chatav@gmail.com
-copyright: Copyright (c) 2021 Morphism, LLC
+copyright: Copyright (c) 2022 Morphism, LLC
 category: Database
 build-type: Simple
-cabal-version: >=1.18
 extra-doc-files: README.md
 
 source-repository head
diff --git a/src/Squeal/PostgreSQL/LTree.hs b/src/Squeal/PostgreSQL/LTree.hs
--- a/src/Squeal/PostgreSQL/LTree.hs
+++ b/src/Squeal/PostgreSQL/LTree.hs
@@ -155,12 +155,12 @@
   => ToPG db LTree where
     toPG = pure . Encoding.text_strict . getLTree
 instance Inline LTree where
-  inline
+  inline (UnsafeLTree x)
     = UnsafeExpression
     . parenthesized
     . (<> " :: ltree")
     . escapeQuotedText
-    . getLTree
+    $ x
 
 {- |
 lquery represents a regular-expression-like pattern for matching ltree values.
@@ -228,12 +228,12 @@
   => ToPG db LQuery where
   toPG = pure . Encoding.text_strict . getLQuery
 instance Inline LQuery where
-  inline
+  inline (UnsafeLQuery x)
     = UnsafeExpression
     . parenthesized
     . (<> " :: lquery")
     . escapeQuotedText
-    . getLQuery
+    $ x
 
 {- |
 ltxtquery represents a full-text-search-like pattern for matching ltree values.
@@ -269,12 +269,12 @@
   => ToPG db LTxtQuery where
   toPG = pure . Encoding.text_strict . getLTxtQuery
 instance Inline LTxtQuery where
-  inline
+  inline (UnsafeLTxtQuery x)
     = UnsafeExpression
     . parenthesized
     . (<> " :: ltxtquery")
     . escapeQuotedText
-    . getLTxtQuery
+    $ x
 
 instance IsString
   (Expression grp lat with db params from (null PGltree)) where
