Skip to content

Commit 78ece04

Browse files
committed
Fix hlint violations
1 parent 7fee8a7 commit 78ece04

File tree

3 files changed

+10
-5
lines changed
  • cardano-chain-gen
  • cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic

3 files changed

+10
-5
lines changed

cardano-chain-gen/src/Cardano/Mock/Forging/Tx/Alonzo.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ addValidityInterval ::
101101
SlotNo ->
102102
Core.Tx era ->
103103
Core.Tx era
104-
addValidityInterval slotNo tx =
105-
set (bodyTxL @era . vldtTxBodyL @era) interval tx
104+
addValidityInterval slotNo =
105+
set (bodyTxL @era . vldtTxBodyL @era) interval
106106
where
107107
interval = ValidityInterval Strict.SNothing (Strict.SJust slotNo)
108108

cardano-chain-gen/test/Test/Cardano/Db/Mock/Config.hs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
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

610
module Test.Cardano.Db.Mock.Config (
711
Config (..),
@@ -163,7 +167,7 @@ mkMutableDir :: FilePath -> FilePath
163167
mkMutableDir testLabel = rootTestDir </> "temp" </> testLabel
164168

165169
mkConfigDir :: FilePath -> FilePath
166-
mkConfigDir config = "cardano-chain-gen" </> rootTestDir </> config
170+
mkConfigDir config = rootTestDir </> config
167171

168172
fingerprintRoot :: FilePath
169173
fingerprintRoot = 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+
275281
mkSyncNodeConfig :: FilePath -> CommandLineArgs -> IO SyncNodeConfig
276282
mkSyncNodeConfig configFilePath cmdLineArgs =
277283
readSyncNodeConfig $ mkConfigFile configDir configFilename

cardano-db-sync/src/Cardano/DbSync/Era/Shelley/Generic/Block.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{-# LANGUAGE FlexibleContexts #-}
44
{-# LANGUAGE RankNTypes #-}
55
{-# LANGUAGE ScopedTypeVariables #-}
6-
{-# LANGUAGE TypeApplications #-}
76
{-# LANGUAGE TypeFamilies #-}
87
{-# LANGUAGE NoImplicitPrelude #-}
98

0 commit comments

Comments
 (0)