We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab1aec7 commit dce30c9Copy full SHA for dce30c9
lsp-types/src/Language/LSP/Types/Utils.hs
@@ -38,7 +38,7 @@ instance FromJSON (SMethod $method) where
38
makeInst :: Name -> Con -> Q [Dec]
39
makeInst wrap (GadtC [sConstructor] args t) = do
40
ns <- replicateM (length args) (newName "x")
41
- let wrappedPat = pure $ ConP wrap [ConP sConstructor (map VarP ns)]
+ let wrappedPat = conP wrap [conP sConstructor (map varP ns)]
42
unwrappedE = pure $ foldl' AppE (ConE sConstructor) (map VarE ns)
43
[d| instance FromJSON $(pure t) where
44
parseJSON = parseJSON >=> \case
0 commit comments