We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2c339a commit 71cc7b0Copy full SHA for 71cc7b0
plugins/hls-fourmolu-plugin/test/Main.hs
@@ -4,6 +4,7 @@ module Main
4
) where
5
6
import Data.Aeson
7
+import qualified Data.Aeson.KeyMap as KM
8
import Data.Functor
9
import Ide.Plugin.Config
10
import qualified Ide.Plugin.Fourmolu as Fourmolu
@@ -33,7 +34,7 @@ tests =
33
34
goldenWithFourmolu :: Bool -> TestName -> FilePath -> FilePath -> (TextDocumentIdentifier -> Session ()) -> TestTree
35
goldenWithFourmolu cli title path desc = goldenWithHaskellDocFormatter def fourmoluPlugin "fourmolu" conf title testDataDir path desc "hs"
36
where
- conf = def{plcConfig = (\(Object obj) -> obj) $ object ["external" .= cli]}
37
+ conf = def{plcConfig = KM.fromList ["external" .= cli]}
38
39
testDataDir :: FilePath
40
testDataDir = "test" </> "testdata"
0 commit comments