@@ -73,7 +73,7 @@ import Data.Time
73import GHC.Generics
73import GHC.Generics
74import System.IO.Unsafe
74import System.IO.Unsafe
75import Numeric.Extra
75import Numeric.Extra
76−
76+import Language.Haskell.LSP.Types
79-- information we stash inside the shakeExtra field
79-- information we stash inside the shakeExtra field
@@ -444,14 +444,13 @@ getDiagnosticsFromStore (StoreItem _ diags) = concatMap SL.fromSortedList $ Map.
445-- | Sets the diagnostics for a file and compilation step
445-- | Sets the diagnostics for a file and compilation step
446-- if you want to clear the diagnostics call this with an empty list
446-- if you want to clear the diagnostics call this with an empty list
447−setStageDiagnostics ::
447+setStageDiagnostics
448− NormalizedFilePath ->
448+ :: NormalizedFilePath
450− -- ^ the time that the file these diagnostics originate from was last edited
449+ -> TextDocumentVersion -- ^ the time that the file these diagnostics originate from was last edited
451− T.Text ->
450+ -> T.Text
452− [LSP.Diagnostic] ->
451+ -> [LSP.Diagnostic]
453− DiagnosticStore ->
452+ -> DiagnosticStore
454− DiagnosticStore
453+ -> DiagnosticStore
455setStageDiagnostics fp timeM stage diags ds =
454setStageDiagnostics fp timeM stage diags ds =
456 updateDiagnostics ds uri timeM diagsBySource
455 updateDiagnostics ds uri timeM diagsBySource