1+ {-# LANGUAGE CPP #-}
12{-# LANGUAGE OverloadedStrings #-}
23{-# LANGUAGE RecordWildCards #-}
34{-# LANGUAGE ScopedTypeVariables #-}
45{-# LANGUAGE TypeApplications #-}
6+ #if __GLASGOW_HASKELL__ >= 908
7+ {-# OPTIONS_GHC -Wno-x-partial #-}
8+ #endif
59
610module Test.Cardano.Db.Mock.Config (
711 Config (.. ),
@@ -163,7 +167,7 @@ mkMutableDir :: FilePath -> FilePath
163167mkMutableDir testLabel = rootTestDir </> " temp" </> testLabel
164168
165169mkConfigDir :: FilePath -> FilePath
166- mkConfigDir config = " cardano-chain-gen " </> rootTestDir </> config
170+ mkConfigDir config = rootTestDir </> config
167171
168172fingerprintRoot :: FilePath
169173fingerprintRoot = rootTestDir </> " fingerprint"
@@ -255,7 +259,7 @@ withConfig staticDir mutableDir cmdLineArgs config action = do
255259 genCfg <- runOrThrowIO $ runExceptT (readCardanoGenesisConfig config)
256260 let (pInfoDbSync, _) = mkProtocolInfoCardano genCfg []
257261 creds <- mkShelleyCredentials $ cfgDir </> " pools" </> " bulk1.creds"
258- let (pInfoForger, mkForgings) = mkProtocolInfoCardano genCfg [( head creds) ]
262+ let (pInfoForger, mkForgings) = mkProtocolInfoCardano genCfg [head creds]
259263 bracket
260264 (allocateRes mkForgings)
261265 (mapM finalize)
@@ -272,6 +276,8 @@ withConfig staticDir mutableDir cmdLineArgs config action = do
272276 -- _ <- throwIO $ userError "B"
273277 pure forgings'
274278
279+ {-# ANN withConfig ("HLint: ignore Redundant pure" :: String) #-}
280+
275281mkSyncNodeConfig :: FilePath -> CommandLineArgs -> IO SyncNodeConfig
276282mkSyncNodeConfig configFilePath cmdLineArgs =
277283 readSyncNodeConfig $ mkConfigFile configDir configFilename
0 commit comments