{-# LANGUAGE PatternSynonyms #-}
module Development.IDE.LSP.Protocol
( pattern EventFileDiagnostics
) where
import Development.IDE.Types.Diagnostics
import Development.IDE.Types.Location
import Language.Haskell.LSP.Messages
import Language.Haskell.LSP.Types
pattern EventFileDiagnostics :: FilePath -> [Diagnostic] -> FromServerMessage
pattern $mEventFileDiagnostics :: forall r.
FromServerMessage
-> (FilePath -> [Diagnostic] -> r) -> (Void# -> r) -> r
EventFileDiagnostics fp diags <-
NotPublishDiagnostics
(NotificationMessage _ _ (PublishDiagnosticsParams (uriToFilePath' -> Just fp) (List diags)))