lsp-types-2.1.0.0: Haskell library for the Microsoft Language Server Protocol, data types
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.LSP.Protocol.Utils.Misc

Synopsis

Documentation

rdrop :: Int -> [a] -> [a] Source #

makeSingletonFromJSON :: Name -> Name -> [Name] -> Q [Dec] Source #

Given a wrapper and a singleton GADT, construct FromJSON instances for each constructor return type by invoking the FromJSON instance for the wrapper and unwrapping

lspOptions :: Options Source #

Standard options for use when generating JSON instances NOTE: This needs to be in a separate file because of the TH stage restriction

lspOptionsUntagged :: Options Source #

Standard options for use when generating JSON instances for an untagged union

newtype ViaJSON a Source #

Constructors

ViaJSON a 

Instances

Instances details
ToJSON a => Pretty (ViaJSON a) Source # 
Instance details

Defined in Language.LSP.Protocol.Utils.Misc

Methods

pretty :: ViaJSON a -> Doc ann #

prettyList :: [ViaJSON a] -> Doc ann #