@@ -12,7 +12,6 @@
12-- Interface for the psc-ide-server
12-- Interface for the psc-ide-server
13-----------------------------------------------------------------------------
13-----------------------------------------------------------------------------
15−{-# LANGUAGE OverloadedStrings #-}
16{-# LANGUAGE PackageImports #-}
15{-# LANGUAGE PackageImports #-}
17{-# LANGUAGE TemplateHaskell #-}
16{-# LANGUAGE TemplateHaskell #-}
@@ -175,12 +174,12 @@ loadModules moduleNames = do
175 efiles <- traverse readExternFile efPaths
174 efiles <- traverse readExternFile efPaths
176 traverse_ insertExterns efiles
175 traverse_ insertExterns efiles
178− -- We parse all source files, log eventual parse failures if the debug flag
177+ -- We parse all source files, log eventual parse failures and insert the
179− -- was set and insert the succesful parses into the state.
178+ -- successful parses into the state.
180 (failures, allModules) <-
179 (failures, allModules) <-
181 partitionEithers <$> (traverse parseModule =<< findAllSourceFiles)
180 partitionEithers <$> (traverse parseModule =<< findAllSourceFiles)
182 unless (null failures) $
181 unless (null failures) $
183− $(logDebug) ("Failed to parse: " <> show failures)
182+ $(logWarn) ("Failed to parse: " <> show failures)
184 traverse_ insertModule allModules
183 traverse_ insertModule allModules
186 -- Finally we kick off the worker with @async@ and return the number of
185 -- Finally we kick off the worker with @async@ and return the number of