diff --git a/morpheus-graphql-code-gen-utils.cabal b/morpheus-graphql-code-gen-utils.cabal
--- a/morpheus-graphql-code-gen-utils.cabal
+++ b/morpheus-graphql-code-gen-utils.cabal
@@ -5,7 +5,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           morpheus-graphql-code-gen-utils
-version:        0.22.0
+version:        0.22.1
 synopsis:       Morpheus GraphQL CLI
 description:    code generator for Morpheus GraphQL
 category:       web, graphql, cli
diff --git a/src/Data/Morpheus/CodeGen/TH.hs b/src/Data/Morpheus/CodeGen/TH.hs
--- a/src/Data/Morpheus/CodeGen/TH.hs
+++ b/src/Data/Morpheus/CodeGen/TH.hs
@@ -137,8 +137,14 @@
 instance (ToName a) => ToCon a Exp where
   toCon = ConE . toName
 
+{- ORMOLU_DISABLE -}
 instance (ToName a) => ToCon a Pat where
-  toCon name = ConP (toName name) []
+#if MIN_VERSION_template_haskell(2,18,0)
+  toCon name = ConP (toName name) [] []
+#else
+  toCon name = ConP (toName name) [] 
+#endif
+{- ORMOLU_ENABLE -}
 
 class ToVar a b where
   toVar :: a -> b
