Skip to content

Commit d1e4079

Browse files
committed
WIP ThreadNet: address code style
1 parent cd702ff commit d1e4079

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

ouroboros-consensus-cardano/src/unstable-cardano-testlib/Test/ThreadNet/Infra/ShelleyBasedHardFork.hs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
{-# LANGUAGE InstanceSigs #-}
99
{-# LANGUAGE LambdaCase #-}
1010
{-# LANGUAGE MultiParamTypeClasses #-}
11-
{-# LANGUAGE NamedFieldPuns #-}
1211
{-# LANGUAGE PatternSynonyms #-}
1312
{-# LANGUAGE RankNTypes #-}
1413
{-# LANGUAGE ScopedTypeVariables #-}
@@ -236,19 +235,19 @@ instance
236235

237236
hardForkEraTranslation =
238237
EraTranslation
239-
{ translateLedgerState = PCons translateLedgerState PNil
240-
, translateLedgerTables = PCons translateLedgerTables PNil
238+
{ translateLedgerState = PCons translateLedgerStateInstance PNil
239+
, translateLedgerTables = PCons translateLedgerTablesInstance PNil
241240
, translateChainDepState = PCons translateChainDepStateAcrossShelley PNil
242241
, crossEraForecast = PCons crossEraForecastAcrossShelley PNil
243242
}
244243
where
245-
translateLedgerState ::
244+
translateLedgerStateInstance ::
246245
InPairs.RequiringBoth
247246
WrapLedgerConfig
248247
TranslateLedgerState
249248
(ShelleyBlock proto1 era1)
250249
(ShelleyBlock proto2 era2)
251-
translateLedgerState =
250+
translateLedgerStateInstance =
252251
InPairs.RequireBoth $
253252
\_cfg1 cfg2 ->
254253
HFC.TranslateLedgerState
@@ -262,11 +261,11 @@ instance
262261
. Flip
263262
}
264263

265-
translateLedgerTables ::
264+
translateLedgerTablesInstance ::
266265
TranslateLedgerTables
267266
(ShelleyBlock proto1 era1)
268267
(ShelleyBlock proto2 era2)
269-
translateLedgerTables =
268+
translateLedgerTablesInstance =
270269
HFC.TranslateLedgerTables
271270
{ translateTxInWith = coerce
272271
, translateTxOutWith = SL.upgradeTxOut
@@ -458,9 +457,9 @@ protocolInfoShelleyBasedHardFork
458457
toPartialLedgerConfig1 ::
459458
LedgerConfig (ShelleyBlock proto1 era1) ->
460459
PartialLedgerConfig (ShelleyBlock proto1 era1)
461-
toPartialLedgerConfig1 cfg =
460+
toPartialLedgerConfig1 cfg1 =
462461
ShelleyPartialLedgerConfig
463-
{ shelleyLedgerConfig = cfg
462+
{ shelleyLedgerConfig = cfg1
464463
, shelleyTriggerHardFork = hardForkTrigger
465464
}
466465

@@ -481,9 +480,9 @@ protocolInfoShelleyBasedHardFork
481480
toPartialLedgerConfig2 ::
482481
LedgerConfig (ShelleyBlock proto2 era2) ->
483482
PartialLedgerConfig (ShelleyBlock proto2 era2)
484-
toPartialLedgerConfig2 cfg =
483+
toPartialLedgerConfig2 cfg2 =
485484
ShelleyPartialLedgerConfig
486-
{ shelleyLedgerConfig = cfg
485+
{ shelleyLedgerConfig = cfg2
487486
, shelleyTriggerHardFork = TriggerHardForkNotDuringThisExecution
488487
}
489488

0 commit comments

Comments
 (0)