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

Commit 3779426

Browse files
committed
Update for current ghc-mod master
1 parent 656204c commit 3779426

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

hie-ghc-mod/Haskell/Ide/GhcModPlugin.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import Haskell.Ide.Engine.PluginUtils
1515
import Haskell.Ide.Engine.SemanticTypes
1616
import qualified Language.Haskell.GhcMod as GM
1717
import qualified Language.Haskell.GhcMod.Monad as GM
18+
import qualified Language.Haskell.GhcMod.Types as GM
1819
import System.FilePath
1920
import System.Directory
2021
import qualified Exception as G
@@ -104,7 +105,7 @@ lintCmd = CmdSync $ \_ctxs req -> do
104105
case getParams (IdFile "file" :& RNil) req of
105106
Left err -> return err
106107
Right (ParamFile fileName :& RNil) -> do
107-
fmap T.pack <$> runGhcModCommand fileName GM.lint
108+
fmap T.pack <$> runGhcModCommand fileName (GM.lint GM.defaultLintOpts)
108109
Right _ -> return $ IdeResponseError (IdeError InternalError
109110
"GhcModPlugin.lintCmd: ghc’s exhaustiveness checker is broken" Nothing)
110111

stack.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ packages:
1010
# - ../ghci-ng
1111
- location:
1212
git: https://github.com/kazu-yamamoto/ghc-mod.git
13-
commit: bff86be69f556f80a8dcd9dd42774ab77cb00eba
13+
commit: b9bd4ebf77b22d2d9061d647d7799ddcc7c51228
14+
# commit: bff86be69f556f80a8dcd9dd42774ab77cb00eba
1415
extra-dep: true
1516
extra-deps:
1617
- HaRe-0.8.2.1

0 commit comments

Comments
 (0)