Skip to content

Commit 71cc7b0

Browse files
committed
Avoid pattern match warning
1 parent a2c339a commit 71cc7b0

File tree

1 file changed

+2
-1
lines changed
  • plugins/hls-fourmolu-plugin/test

1 file changed

+2
-1
lines changed

plugins/hls-fourmolu-plugin/test/Main.hs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module Main
44
) where
55

66
import Data.Aeson
7+
import qualified Data.Aeson.KeyMap as KM
78
import Data.Functor
89
import Ide.Plugin.Config
910
import qualified Ide.Plugin.Fourmolu as Fourmolu
@@ -33,7 +34,7 @@ tests =
3334
goldenWithFourmolu :: Bool -> TestName -> FilePath -> FilePath -> (TextDocumentIdentifier -> Session ()) -> TestTree
3435
goldenWithFourmolu cli title path desc = goldenWithHaskellDocFormatter def fourmoluPlugin "fourmolu" conf title testDataDir path desc "hs"
3536
where
36-
conf = def{plcConfig = (\(Object obj) -> obj) $ object ["external" .= cli]}
37+
conf = def{plcConfig = KM.fromList ["external" .= cli]}
3738

3839
testDataDir :: FilePath
3940
testDataDir = "test" </> "testdata"

0 commit comments

Comments
 (0)