Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit c6e265b

Browse files
committed
Using MonadFunctions.errorm for error logging
1 parent 304d692 commit c6e265b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Haskell/Ide/Engine/Plugin/Ormolu.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Ormolu
1616
import Ormolu.Config (defaultConfig)
1717
import Ormolu.Exception (OrmoluException)
1818
#else
19-
import System.Log.Logger
19+
import Haskell.Ide.Engine.MonadFunctions
2020
#endif
2121

2222
ormoluDescriptor :: PluginId -> PluginDescriptor
@@ -45,9 +45,9 @@ provider contents uri typ _opts =
4545
#else
4646
-- Work in progress
4747
provider :: FormattingProvider
48-
provider contents _uri typ _opts = do
49-
errorM "hie" "This version of HIE does not support Ormolu as a formatter"
48+
provider _contents _uri typ _opts = do
49+
errorm "This version of HIE does not support Ormolu as a formatter"
5050
case typ of
5151
FormatRange _ -> return $ IdeResultFail (IdeError PluginError (pack "Selection formatting for Ormolu is not currently supported.") Null)
5252
FormatText -> return $ IdeResultOk []
53-
#endif
53+
#endif

0 commit comments

Comments
 (0)