packages feed

haskell-lsp-types 0.2.1.0 → 0.2.2.0

raw patch · 3 files changed

+6/−2 lines, 3 filesPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

API changes (from Hackage documentation)

- Language.Haskell.LSP.TH.DataTypesJSON: instance Language.Haskell.LSP.TH.DataTypesJSON.HasRelatedInformation Language.Haskell.LSP.TH.DataTypesJSON.Diagnostic (Language.Haskell.LSP.TH.DataTypesJSON.List Language.Haskell.LSP.TH.DataTypesJSON.DiagnosticRelatedInformation)
+ Language.Haskell.LSP.TH.DataTypesJSON: instance Language.Haskell.LSP.TH.DataTypesJSON.HasRelatedInformation Language.Haskell.LSP.TH.DataTypesJSON.Diagnostic (GHC.Base.Maybe (Language.Haskell.LSP.TH.DataTypesJSON.List Language.Haskell.LSP.TH.DataTypesJSON.DiagnosticRelatedInformation))
- Language.Haskell.LSP.TH.DataTypesJSON: Diagnostic :: Range -> Maybe DiagnosticSeverity -> Maybe Text -> Maybe DiagnosticSource -> Text -> List DiagnosticRelatedInformation -> Diagnostic
+ Language.Haskell.LSP.TH.DataTypesJSON: Diagnostic :: Range -> Maybe DiagnosticSeverity -> Maybe Text -> Maybe DiagnosticSource -> Text -> Maybe (List DiagnosticRelatedInformation) -> Diagnostic
- Language.Haskell.LSP.TH.DataTypesJSON: [$sel:_relatedInformation:Diagnostic] :: Diagnostic -> List DiagnosticRelatedInformation
+ Language.Haskell.LSP.TH.DataTypesJSON: [$sel:_relatedInformation:Diagnostic] :: Diagnostic -> Maybe (List DiagnosticRelatedInformation)

Files

ChangeLog.md view
@@ -1,5 +1,9 @@ # Revision history for haskell-lsp +## 0.2.2.0  -- 2018-05-04++* Make Diagnostic relatedInformation optional, as per the LSP Spec. By @Bubba.+ ## 0.2.1.0  -- 2018-05-02  * Broken out from the haskell-lsp package, to simplify development
haskell-lsp-types.cabal view
@@ -1,5 +1,5 @@ name:                haskell-lsp-types-version:             0.2.1.0+version:             0.2.2.0 synopsis:            Haskell library for the Microsoft Language Server Protocol, data types  description:         An implementation of the types to allow language implementors to
src/Language/Haskell/LSP/TH/DataTypesJSON.hs view
@@ -686,7 +686,7 @@     , _code               :: Maybe Text -- Note: Protocol allows Int too.     , _source             :: Maybe DiagnosticSource     , _message            :: Text-    , _relatedInformation :: List DiagnosticRelatedInformation+    , _relatedInformation :: Maybe (List DiagnosticRelatedInformation)     } deriving (Show, Read, Eq, Ord)  deriveJSON lspOptions ''Diagnostic