Skip to content

Commit dce30c9

Browse files
authored
Add compatibility with GHC 9.2 (#345)
1 parent ab1aec7 commit dce30c9

File tree

1 file changed

+1
-1
lines changed
  • lsp-types/src/Language/LSP/Types

1 file changed

+1
-1
lines changed

lsp-types/src/Language/LSP/Types/Utils.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ instance FromJSON (SMethod $method) where
3838
makeInst :: Name -> Con -> Q [Dec]
3939
makeInst wrap (GadtC [sConstructor] args t) = do
4040
ns <- replicateM (length args) (newName "x")
41-
let wrappedPat = pure $ ConP wrap [ConP sConstructor (map VarP ns)]
41+
let wrappedPat = conP wrap [conP sConstructor (map varP ns)]
4242
unwrappedE = pure $ foldl' AppE (ConE sConstructor) (map VarE ns)
4343
[d| instance FromJSON $(pure t) where
4444
parseJSON = parseJSON >=> \case

0 commit comments

Comments
 (0)